public class AstAttribute extends AbstractAstNode
AstNode.AbstractVisitor<C,R>, AstNode.Visitor<C,R>| Modifier and Type | Field and Description |
|---|---|
List<AstAttributeElement> |
elements
Sub elements of this attribute.
|
AstName |
name
The name of this attribute.
|
| Constructor and Description |
|---|
AstAttribute(Region region,
AstName name,
AstAttributeElement... elements)
Creates and returns a new instance.
|
AstAttribute(Region region,
AstName name,
List<AstAttributeElement> elements)
Creates and returns a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
<C,R> R |
accept(C context,
AstNode.Visitor<C,R> visitor)
Accepts and calls back the visitor.
|
boolean |
equals(Object obj) |
Region |
getRegion()
Returns the region of this node.
|
int |
hashCode() |
public final AstName name
public final List<AstAttributeElement> elements
public AstAttribute(Region region, AstName name, List<AstAttributeElement> elements)
region - the region of this node on the enclosing script, or null if unknownname - the name of this attributeelements - sub-elements of this attributeIllegalArgumentException - if some parameters were nullpublic AstAttribute(Region region, AstName name, AstAttributeElement... elements)
region - the region of this node on the enclosing script, or null if unknownname - the name of this attributeelements - sub-elements of this attributeIllegalArgumentException - if some parameters were nullpublic Region getRegion()
AstNodenull if unknownpublic <C,R> R accept(C context,
AstNode.Visitor<C,R> visitor)
AstNodeC - type of visitor contextR - type of visitor resultcontext - the visitor contextvisitor - the visitor to call backCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.