Package com.helger.css.handler
Enum ECSSNodeType
- All Implemented Interfaces:
Serializable,Comparable<ECSSNodeType>,java.lang.constant.Constable
Maps the different parser tokens. This enum is only used internally. It was
previously used to map between the 2.1 and the 3.0 parser constants.
- Author:
- Philip Helger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetDump(CSSNode aParserNode, ECSSVersion eVersion) static booleanisErrorNode(CSSNode aParserNode, ECSSVersion eVersion) booleanisNode(CSSNode aParserNode, ECSSVersion eVersion) Check if the passed parser node is ofthistype.static ECSSNodeTypeReturns the enum constant of this type with the specified name.static ECSSNodeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ROOT
-
CHARSET
-
UNKNOWNRULE
-
UNKNOWNRULEPARAMETERLIST
-
UNKNOWNRULEBODY
-
STYLERULE
-
IMPORTRULE
-
PAGERULE
-
MEDIARULE
-
FONTFACERULE
-
SELECTOR
-
STYLEDECLARATIONLIST
-
STYLEDECLARATION
-
NAMESPACEPREFIX
-
ELEMENTNAME
-
HASH
-
CLASS
-
PSEUDO
-
HOST
-
HOSTCONTEXT
-
SLOTTED
-
NEGATION
-
PSEUDO_HAS
-
PSEUDO_IS
-
PSEUDO_WHERE
-
ATTRIB
-
ATTRIBOPERATOR
-
ATTRIBVALUE
-
SELECTORCOMBINATOR
-
NTH
-
PROPERTY
-
IMPORTANT
-
EXPR
-
EXPRTERM
-
EXPROPERATOR
-
URL
-
FUNCTION
-
CALC
-
CALCSUMOPERATOR
-
CALCPRODUCT
-
CALCPRODUCTOPERATOR
-
CALCUNIT
-
LINE_NAMES
-
LINE_NAME
-
MEDIALIST
-
MEDIUM
-
MEDIAQUERY
-
MEDIAMODIFIER
-
MEDIAEXPR
-
MEDIAFEATURE
-
PSEUDOPAGE
-
PAGESELECTOR
-
PAGEMARGINSYMBOL
-
PAGERULEBLOCK
-
KEYFRAMESRULE
-
KEYFRAMESIDENTIFIER
-
KEYFRAMESSELECTOR
-
SINGLEKEYFRAMESELECTOR
-
VIEWPORTRULE
-
NAMESPACERULE
-
NAMESPACERULEPREFIX
-
NAMESPACERULEURL
-
SUPPORTSRULE
-
SUPPORTSCONDITION
-
SUPPORTSCONDITIONOPERATOR
-
SUPPORTSNEGATION
-
SUPPORTSCONDITIONINPARENS
-
ERROR_SKIPTO
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isNode
Check if the passed parser node is ofthistype.- Parameters:
aParserNode- The parser node to be checked.eVersion- The desired version.- Returns:
trueifthisis the type of the passed parser node in the given version
-
getDump
-
isErrorNode
-