Package com.helger.css.handler
Class CSSHandler
- java.lang.Object
-
- com.helger.css.handler.CSSHandler
-
@Immutable public final class CSSHandler extends Object
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 Modifier and Type Field Description static booleanDEFAULT_USE_SOURCE_LOCATION
-
Method Summary
-
-
-
Field Detail
-
DEFAULT_USE_SOURCE_LOCATION
public static final boolean DEFAULT_USE_SOURCE_LOCATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-