|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectast.ASTNode
ast.Expr
ast.DispatchExpr
public class DispatchExpr
The DispatchExpr class represents a dispatch expression. It contains a reference expression (refExpr), a method name (methodName, and a list of actual parameter expressions (actualList).
ASTNode,
Expr| Field Summary | |
|---|---|
protected ExprList |
actualList
The list of actual parameter expressions |
protected java.lang.String |
methodName
The name of the method |
protected Expr |
refExpr
The reference expression (produces the object to dispatch on) |
| Fields inherited from class ast.ASTNode |
|---|
charNum, lineNum, lineStr |
| Constructor Summary | |
|---|---|
DispatchExpr(int lineNum,
Expr refExpr,
java.lang.String methodName,
ExprList actualList)
DispatchExpr constructor |
|
| Method Summary | |
|---|---|
java.lang.Object |
accept(Visitor v)
Visitor method |
ExprList |
getActualList()
Get the list of actual parameter expressions |
java.lang.String |
getMethodName()
Get the method name |
Expr |
getRefExpr()
Get the reference expression |
| Methods inherited from class ast.Expr |
|---|
getExprType, setExprType |
| Methods inherited from class ast.ASTNode |
|---|
getLineNum |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Expr refExpr
protected java.lang.String methodName
protected ExprList actualList
| Constructor Detail |
|---|
public DispatchExpr(int lineNum,
Expr refExpr,
java.lang.String methodName,
ExprList actualList)
lineNum - source line number corresponding to this AST noderefExpr - reference expression (produces the object to dispatch on)methodName - the name of the methodactualList - list of actual parameter expressions| Method Detail |
|---|
public Expr getRefExpr()
public java.lang.String getMethodName()
public ExprList getActualList()
public java.lang.Object accept(Visitor v)
accept in class Exprv - visitor object
Visitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||