public static class ConditionFactory.PseudoClassCondition extends java.lang.Object implements Condition
Condition.Context, Condition.ToTagConvertable
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.reflect.Method |
method |
(package private) boolean |
not |
Modifier | Constructor and Description |
---|---|
protected |
PseudoClassCondition(java.lang.reflect.Method method,
boolean not) |
Modifier and Type | Method and Description |
---|---|
boolean |
applies(Environment e)
Checks if the condition applies in the given MapCSS
Environment . |
static ConditionFactory.PseudoClassCondition |
createPseudoClassCondition(java.lang.String id,
boolean not,
Condition.Context context)
Create a new pseudo class condition
|
protected static java.lang.reflect.Method |
getMethod(java.lang.String id) |
java.lang.String |
toString() |
protected PseudoClassCondition(java.lang.reflect.Method method, boolean not)
public static ConditionFactory.PseudoClassCondition createPseudoClassCondition(java.lang.String id, boolean not, Condition.Context context)
id
- The id of the pseudo classnot
- true
to invert the conditioncontext
- The context the class is found in.protected static java.lang.reflect.Method getMethod(java.lang.String id)
public boolean applies(Environment e)
Condition
Environment
.public java.lang.String toString()
toString
in class java.lang.Object