Class CssMixinNode
- 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.CssMixinNode
-
- All Implemented Interfaces:
Locatable
public class CssMixinNode extends CssAtRuleNode
A node representing a mixin.Mixins can be used in places where declarations are expected. They are replaced by the corresponding mixin definition. For example:
@mixin gradient(top, 0%, 80%, 70%, #BADA55)
-
-
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
Constructors Constructor Description CssMixinNode(CssMixinNode node)Creates a new mixin node that is a deep copy of the given node.CssMixinNode(java.lang.String definitionName, CssFunctionArgumentsNode args, SourceCodeLocation location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CssMixinNodedeepCopy()CssFunctionArgumentsNodegetArguments()Returns the arguments belonging to this mixin as a node.java.lang.StringgetDefinitionName()-
Methods inherited from class com.google.common.css.compiler.ast.CssAtRuleNode
getBlock, getName, getParameters, getParametersCount, getType, setParameters, toString
-
Methods inherited from class com.google.common.css.compiler.ast.CssNodesListNode
addChildToBack, childIterable, getChildAt, getChildIterator, getChildren, getLastChild, getSourceCodeLocation, isEmpty, isEnclosedWithBraces, numChildren, replaceChildAt
-
Methods 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 Detail
-
CssMixinNode
public CssMixinNode(java.lang.String definitionName, CssFunctionArgumentsNode args, SourceCodeLocation location)
-
CssMixinNode
public CssMixinNode(CssMixinNode node)
Creates a new mixin node that is a deep copy of the given node.- Parameters:
node- node
-
-
Method Detail
-
deepCopy
public CssMixinNode deepCopy()
-
getDefinitionName
public java.lang.String getDefinitionName()
-
getArguments
public CssFunctionArgumentsNode getArguments()
Returns the arguments belonging to this mixin as a node.
-
-