public class AstAttributeElement extends AbstractAstNode
AstNode.AbstractVisitor<C,R>, AstNode.Visitor<C,R>| Modifier and Type | Field and Description |
|---|---|
AstSimpleName |
name
The name of this element.
|
AstAttributeValue |
value
The holding value of this element.
|
| Constructor and Description |
|---|
AstAttributeElement(Region region,
AstSimpleName name,
AstAttributeValue value)
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 AstSimpleName name
public final AstAttributeValue value
public AstAttributeElement(Region region, AstSimpleName name, AstAttributeValue value)
region - the region of this node on the enclosing script, or null if unknownname - the namevalue - the holding valueIllegalArgumentException - 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–2019 Asakusa Framework Team. All rights reserved.