Package com.helger.css.handler
Class CSSHandler
java.lang.Object
com.helger.css.handler.CSSHandler
This class is the entry point for converting AST nodes from the parser to
domain objects. This class is only used internally.
- Author:
- Philip Helger
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CascadingStyleSheetreadCascadingStyleSheetFromNode(ECSSVersion eVersion, CSSNode aNode) Deprecated.static CascadingStyleSheetreadCascadingStyleSheetFromNode(ECSSVersion eVersion, CSSNode aNode, ICSSInterpretErrorHandler aErrorHandler) Deprecated.static CascadingStyleSheetreadCascadingStyleSheetFromNode(ECSSVersion eVersion, ICSSInterpretErrorHandler aErrorHandler, boolean bUseSourceLocation, CSSNode aNode) Create aCascadingStyleSheetobject from a parsed object.static CSSDeclarationListreadDeclarationListFromNode(ECSSVersion eVersion, CSSNode aNode) Deprecated.static CSSDeclarationListreadDeclarationListFromNode(ECSSVersion eVersion, CSSNode aNode, ICSSInterpretErrorHandler aErrorHandler) Deprecated.static CSSDeclarationListreadDeclarationListFromNode(ECSSVersion eVersion, ICSSInterpretErrorHandler aErrorHandler, boolean bUseSourceLocation, CSSNode aNode) Create aCSSDeclarationListobject from a parsed object.
-
Field Details
-
DEFAULT_USE_SOURCE_LOCATION
public static final boolean DEFAULT_USE_SOURCE_LOCATION- See Also:
-
-
Method Details
-
readCascadingStyleSheetFromNode
@Nonnull @Deprecated public static CascadingStyleSheet readCascadingStyleSheetFromNode(@Nonnull ECSSVersion eVersion, @Nonnull CSSNode aNode) Deprecated.Create aCascadingStyleSheetobject from a parsed object.- Parameters:
eVersion- The CSS version to use. May not benull.aNode- The parsed CSS object to read. May not benull.- Returns:
- Never
null.
-
readCascadingStyleSheetFromNode
@Nonnull @Deprecated public static CascadingStyleSheet readCascadingStyleSheetFromNode(@Nonnull ECSSVersion eVersion, @Nonnull CSSNode aNode, @Nonnull ICSSInterpretErrorHandler aErrorHandler) Deprecated.Create aCascadingStyleSheetobject from a parsed object.- Parameters:
eVersion- The CSS version to use. May not benull.aNode- The parsed CSS object to read. May not benull.aErrorHandler- The error handler to be used. May not benull.- Returns:
- Never
null. - Since:
- 5.0.2
-
readCascadingStyleSheetFromNode
@Nonnull public static CascadingStyleSheet readCascadingStyleSheetFromNode(@Nonnull ECSSVersion eVersion, @Nonnull ICSSInterpretErrorHandler aErrorHandler, boolean bUseSourceLocation, @Nonnull CSSNode aNode) Create aCascadingStyleSheetobject from a parsed object.- Parameters:
eVersion- The CSS version to use. May not benull.aErrorHandler- The error handler to be used. May not benull.bUseSourceLocation-trueto keep the source location,falseto ignore the source location. Disabling the source location may be a performance improvement.aNode- The parsed CSS object to read. May not benull.- Returns:
- Never
null. - Since:
- 6.1.3
-
readDeclarationListFromNode
@Nonnull @Deprecated public static CSSDeclarationList readDeclarationListFromNode(@Nonnull ECSSVersion eVersion, @Nonnull CSSNode aNode) Deprecated.Create aCSSDeclarationListobject from a parsed object.- Parameters:
eVersion- The CSS version to use. May not benull.aNode- The parsed CSS object to read. May not benull.- Returns:
- Never
null.
-
readDeclarationListFromNode
@Deprecated @Nonnull public static CSSDeclarationList readDeclarationListFromNode(@Nonnull ECSSVersion eVersion, @Nonnull CSSNode aNode, @Nonnull ICSSInterpretErrorHandler aErrorHandler) Deprecated.Create aCSSDeclarationListobject from a parsed object.- Parameters:
eVersion- The CSS version to use. May not benull.aNode- The parsed CSS object to read. May not benull.aErrorHandler- The error handler to be used. May not benull.- Returns:
- Never
null. - Since:
- 5.0.2
-
readDeclarationListFromNode
@Nonnull public static CSSDeclarationList readDeclarationListFromNode(@Nonnull ECSSVersion eVersion, @Nonnull ICSSInterpretErrorHandler aErrorHandler, boolean bUseSourceLocation, @Nonnull CSSNode aNode) Create aCSSDeclarationListobject from a parsed object.- Parameters:
eVersion- The CSS version to use. May not benull.aErrorHandler- The error handler to be used. May not benull.bUseSourceLocation-trueto keep the source location,falseto ignore the source location. Disabling the source location may be a performance improvement.aNode- The parsed CSS object to read. May not benull.- Returns:
- Never
null. - Since:
- 6.1.3
-
readCascadingStyleSheetFromNode(ECSSVersion, ICSSInterpretErrorHandler, boolean, CSSNode)instead