Class GetFieldExpression

java.lang.Object
autumn.lang.compiler.ast.nodes.GetFieldExpression
All Implemented Interfaces:
IConstruct, IExpression

public final class GetFieldExpression extends Object implements 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 Details

    • GetFieldExpression

      public GetFieldExpression()
  • Method Details

    • setOwner

      public GetFieldExpression setOwner(IExpression value)
      Setter.
      Parameters:
      value - is the new value of property owner.
      Returns:
      a copy of this object with property owner set to value.
    • getOwner

      public IExpression getOwner()
      Getter.
      Returns:
      the value of property owner.
    • setName

      public GetFieldExpression setName(Name value)
      Setter.
      Parameters:
      value - is the new value of property name.
      Returns:
      a copy of this object with property name set to value.
    • getName

      public Name getName()
      Getter.
      Returns:
      the value of property name.
    • setLocation

      public GetFieldExpression setLocation(SourceLocation value)
      Setter.
      Specified by:
      setLocation in interface IConstruct
      Parameters:
      value - is the new value of property location.
      Returns:
      a copy of this object with property location set to value.
    • getLocation

      public SourceLocation getLocation()
      Getter.
      Specified by:
      getLocation in interface IConstruct
      Returns:
      the value of property location.
    • create

      public static GetFieldExpression create(IExpression owner, Name name, SourceLocation location)
      This method creates a new instance of this class.
      Parameters:
      owner - is the value for property owner.
      name - is the value for property name.
      location - is the value for property location.
      Returns:
      a new instance of this class.
    • accept

      public void accept(IAstVisitor visitor)
      This method welcomes a visitor that wants to visit this object.
      Specified by:
      accept in interface IConstruct
      Parameters:
      visitor - is the visitor that is visiting this object.
    • copy

      public GetFieldExpression copy()
      This method creates a shallow copy of this object.
      Specified by:
      copy in interface IConstruct
      Returns:
      a shallow copy of this object.
    • toMap

      public Map<String,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

      public String toString()
      Overrides:
      toString in class Object