Package io.sf.carte.doc.style.css
Interface MediaQueryPredicate
- 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
Modifier and TypeFieldDescriptionstatic final int
Constant for media feature predicates.static final int
Constant for media type (name) predicates. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get a name associated with this predicate.int
An 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_TYPE
for media names andMEDIA_FEATURE
for media features.
-