public class AstPropertyDefinition extends AbstractAstNode
Modifier and Type | Class and Description |
---|---|
static class |
AstPropertyDefinition.PropertyKind
Represents a kind of property.
|
AstNode.AbstractVisitor<C,R>, AstNode.Visitor<C,R>
Modifier and Type | Field and Description |
---|---|
List<AstAttribute> |
attributes
The attributes of the defining property.
|
AstDescription |
description
The description of the defining property, or
null if is omitted. |
AstAttributeValue |
expression
The value of the defining property.
|
AstSimpleName |
name
The name of the defining property.
|
AstType |
type
The type of the defining property.
|
Constructor and Description |
---|
AstPropertyDefinition(Region region,
AstDescription description,
List<AstAttribute> attributes,
AstSimpleName name,
AstType type)
Creates and returns a new instance.
|
AstPropertyDefinition(Region region,
AstDescription description,
List<AstAttribute> attributes,
AstSimpleName name,
AstType type,
AstAttributeValue expression)
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) |
AstPropertyDefinition.PropertyKind |
getPropertyKind()
Returns the inferred kind of this property definition.
|
Region |
getRegion()
Returns the region of this node.
|
int |
hashCode() |
public final AstDescription description
null
if is omitted.public final List<AstAttribute> attributes
public final AstSimpleName name
public final AstType type
public final AstAttributeValue expression
public AstPropertyDefinition(Region region, AstDescription description, List<AstAttribute> attributes, AstSimpleName name, AstType type)
region
- the region of this node on the enclosing script, or null
if unknowndescription
- the description of this property, or null
if is omittedattributes
- the attributes of this propertyname
- the nametype
- the typeIllegalArgumentException
- if some parameters were null
public AstPropertyDefinition(Region region, AstDescription description, List<AstAttribute> attributes, AstSimpleName name, AstType type, AstAttributeValue expression)
region
- the region of this node on the enclosing script, or null
if unknowndescription
- the description of this property, or null
if is omittedattributes
- the attributes of this propertyname
- the nametype
- the type, or null
if it is not definedexpression
- the property expression, or null
if it is not definedIllegalArgumentException
- if some parameters were null
public AstPropertyDefinition.PropertyKind getPropertyKind()
public Region getRegion()
AstNode
null
if unknownpublic <C,R> R accept(C context, AstNode.Visitor<C,R> visitor)
AstNode
C
- type of visitor contextR
- type of visitor resultcontext
- the visitor contextvisitor
- the visitor to call backCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.