Class CssMixinDefinitionNode
java.lang.Object
com.google.common.css.compiler.ast.CssNode
com.google.common.css.compiler.ast.CssNodesListNode<CssValueNode>
com.google.common.css.compiler.ast.CssAtRuleNode
com.google.common.css.compiler.ast.CssMixinDefinitionNode
- All Implemented Interfaces:
Locatable
A node representing a mixin definition.
A mixin definition defines parameterized declarations that can be inserted with a mixin. For example:
@defmixin gradient(POS, HSL1, HSL2, HSL3, COLOR) {
background-color: COLOR;
background-image:
-webkit-linear-gradient(POS, hsl(HSL1, HSL2, HSL3), COLOR);
}
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.css.compiler.ast.CssAtRuleNode
CssAtRuleNode.Type -
Field Summary
Fields inherited from class com.google.common.css.compiler.ast.CssNodesListNode
children -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new mixin definition node that is a deep copy of the given node.CssMixinDefinitionNode(String name, CssFunctionArgumentsNode arguments, CssDeclarationBlockNode declarations, SourceCodeLocation location) -
Method Summary
Modifier and TypeMethodDescriptiondeepCopy()getBlock()Subclasses should overridegetBlockto return a more specific subclass ofCssAbstractBlockNode.Methods inherited from class com.google.common.css.compiler.ast.CssAtRuleNode
getName, getParameters, getParametersCount, getType, setParameters, toStringMethods inherited from class com.google.common.css.compiler.ast.CssNodesListNode
addChildToBack, childIterable, getChildAt, getChildIterator, getChildren, getLastChild, getSourceCodeLocation, isEmpty, isEnclosedWithBraces, numChildren, replaceChildAtMethods inherited from class com.google.common.css.compiler.ast.CssNode
ancestors, appendComment, deepCopyNodes, equals, getComments, getParent, getShouldBeFlipped, getVisitController, hasComment, hashCode, inFunArgs, setComments, setShouldBeFlipped, setSourceCodeLocation
-
Constructor Details
-
CssMixinDefinitionNode
public CssMixinDefinitionNode(String name, CssFunctionArgumentsNode arguments, CssDeclarationBlockNode declarations, SourceCodeLocation location) -
CssMixinDefinitionNode
Creates a new mixin definition node that is a deep copy of the given node.- Parameters:
node- node
-
-
Method Details
-
deepCopy
-
getDefinitionName
-
getArguments
-
getBlock
Description copied from class:CssAtRuleNodeSubclasses should overridegetBlockto return a more specific subclass ofCssAbstractBlockNode.- Overrides:
getBlockin classCssAtRuleNode
-