orc.ast.extended.expression
Class Dot
java.lang.Object
orc.ast.extended.expression.Expression
orc.ast.extended.expression.Dot
- All Implemented Interfaces:
- ASTNode, Locatable, Located
public class Dot
- extends Expression
A dot expression (e.g "C.put(4)").
This is interpreted as a chain of calls:
C(`put`)(4)
where `put` is a special Field object.
- Author:
- dkitchin
Constructor Summary |
Dot(Expression target,
java.lang.String field)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
target
public Expression target
field
public java.lang.String field
Dot
public Dot(Expression target,
java.lang.String field)
simplify
public Expression simplify()
throws CompilationException
- Description copied from class:
Expression
- Simplify an expression which occurs in a call (non-nested) position.
- Specified by:
simplify
in class Expression
- Returns:
- The simplified expression
- Throws:
CompilationException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
accept
public <E> E accept(Visitor<E> visitor)