- All Superinterfaces:
BooleanCondition
- All Known Subinterfaces:
MediaFeature,MediaFeaturePredicate
A predicate in a boolean expression from a Media Query.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.sf.carte.doc.style.css.BooleanCondition
BooleanCondition.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intConstant for media feature predicates.static final intConstant for media type (name) predicates. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get a name associated with this predicate.intAn number indicative of the predicate type.Methods inherited from interface io.sf.carte.doc.style.css.BooleanCondition
addCondition, appendMinifiedText, appendText, getNestedCondition, getParentCondition, getSubConditions, getType, replaceLast, setParentCondition
-
Field Details
-
MEDIA_TYPE
static final int MEDIA_TYPEConstant for media type (name) predicates.- See Also:
-
MEDIA_FEATURE
static final int MEDIA_FEATUREConstant for media feature predicates.You can cast predicates of this type to
MediaFeature.- See Also:
-
-
Method Details
-
getName
String getName()Get a name associated with this predicate.Examples:
screen,width.- Returns:
- the name of o medium or media feature.
-
getPredicateType
int getPredicateType()An number indicative of the predicate type.- Returns:
- the predicate type,
MEDIA_TYPEfor media names andMEDIA_FEATUREfor media features.
-