Package autumn.lang.compiler.ast.nodes
Class GetFieldExpression
java.lang.Object
autumn.lang.compiler.ast.nodes.GetFieldExpression
- All Implemented Interfaces:
IConstruct,IExpression
An instance of this class is an AST node that represents a field retrieval.
| Property Name | Property Description |
owner | This expression produces the object that has the field. |
name | This is the name of the field to retrieve. |
location | This is the source-location information regarding this construct. |
This file was auto-generated on (Sun May 31 11:54:12 EDT 2015).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IAstVisitor visitor) This method welcomes a visitor that wants to visit this object.copy()This method creates a shallow copy of this object.static GetFieldExpressioncreate(IExpression owner, Name name, SourceLocation location) This method creates a new instance of this class.Getter.getName()Getter.getOwner()Getter.setLocation(SourceLocation value) Setter.Setter.setOwner(IExpression value) Setter.toMap()This method creates a map representation of this struct.toString()
-
Constructor Details
-
GetFieldExpression
public GetFieldExpression()
-
-
Method Details
-
setOwner
Setter.- Parameters:
value- is the new value of propertyowner.- Returns:
- a copy of this object with property
ownerset to value.
-
getOwner
Getter.- Returns:
- the value of property
owner.
-
setName
Setter.- Parameters:
value- is the new value of propertyname.- Returns:
- a copy of this object with property
nameset to value.
-
getName
Getter.- Returns:
- the value of property
name.
-
setLocation
Setter.- Specified by:
setLocationin interfaceIConstruct- Parameters:
value- is the new value of propertylocation.- Returns:
- a copy of this object with property
locationset to value.
-
getLocation
Getter.- Specified by:
getLocationin interfaceIConstruct- Returns:
- the value of property
location.
-
create
This method creates a new instance of this class.- Parameters:
owner- is the value for propertyowner.name- is the value for propertyname.location- is the value for propertylocation.- Returns:
- a new instance of this class.
-
accept
This method welcomes a visitor that wants to visit this object.- Specified by:
acceptin interfaceIConstruct- Parameters:
visitor- is the visitor that is visiting this object.
-
copy
This method creates a shallow copy of this object.- Specified by:
copyin interfaceIConstruct- Returns:
- a shallow copy of this object.
-
toMap
This method creates a map representation of this struct.Each key is the name of a field. Each value is the result of calling the key field's getter.
- Returns:
- a map containing the entries in this struct.
-
toString
-