public final class SelectorExpression extends ValueExpressionBase
| Modifier and Type | Field and Description |
|---|---|
ValueExpression |
base |
static int |
precedence |
Selector[] |
sels |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
void |
accept(ASTVisitorOld visitor)
Accept visitor for a visit.
|
void |
acceptChildren(ASTVisitor visitor)
Accept visitor for a visit to the children of this node.
|
static SelectorExpression |
construct(ValueExpression base,
Selector[] sels)
Selection of an object component.
|
static SelectorExpression |
construct(ValueExpression base,
java.util.Vector<Selector> sels)
Selection of an object component.
|
TypeExpression |
getBaseType()
Get type of base expression.
|
int |
getPrecedence()
Get precedence value of the expression operator
(higher precedence value means higher binding power)
|
void |
setBaseType(TypeExpression btype)
Set type of base expression.
|
accept, accept, print, printCore, toString, toStringCoreequals, getClass, hashCode, notify, notifyAll, wait, wait, waitprint, printCore, toString, toStringCorepublic static final int precedence
public final ValueExpression base
public final Selector[] sels
public static SelectorExpression construct(ValueExpression base, java.util.Vector<Selector> sels)
base - the object expression.sels - the selector sequence.public static SelectorExpression construct(ValueExpression base, Selector[] sels)
base - the object expression.sels - the selector sequence.public void setBaseType(TypeExpression btype)
btype - the type of the base expression.public TypeExpression getBaseType()
public void accept(ASTVisitorOld visitor)
accept in interface ASTaccept in class ASTProgramBasevisitor - the visitor who is accepted by this node.public void accept(ASTVisitor visitor)
accept in interface ASTaccept in class ValueExpressionBasevisitor - the visitor who is accepted by this node.public void acceptChildren(ASTVisitor visitor)
acceptChildren in interface ASTacceptChildren in class ASTBasevisitor - the visitor who is accepted by the children of this node.public int getPrecedence()