|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectantlr.BaseAST
antlr.CommonAST
org.apache.jdo.impl.jdoql.jdoqlc.JDOQLAST
org.apache.jdo.impl.jdoql.tree.NodeImpl
org.apache.jdo.impl.jdoql.tree.Expr
org.apache.jdo.impl.jdoql.tree.MethodCallExpr
This node represents a method call expression.
Examples of method call expressions are
ContainsCallExpression
, IsEmptyCallExpression
,
EndsWithCallExpression
and
StartsWithCallExpression
.
Field Summary | |
(package private) Expression[] |
args
|
Fields inherited from class org.apache.jdo.impl.jdoql.tree.NodeImpl |
children, clazz, msg, object, parent |
Fields inherited from class org.apache.jdo.impl.jdoql.jdoqlc.JDOQLAST |
column, line, typeInfo |
Fields inherited from class antlr.CommonAST |
|
Fields inherited from class antlr.BaseAST |
down, right |
Constructor Summary | |
|
MethodCallExpr()
The noarg constructor is needed for ANTLR support and deserialization. |
(package private) |
MethodCallExpr(int tokenType,
java.lang.String tokenName,
java.lang.Class clazz,
Expression target,
Expression[] args)
This constructor is called by specialized nodes. |
Method Summary | |
protected java.lang.Object |
clone()
Creates and returns a copy of this object. |
Expression[] |
getArguments()
Returns the argument array of this method call. |
java.lang.String |
getMethodName()
Returns the method name. |
Expression |
getTarget()
Returns the target expression of this method call. |
Methods inherited from class org.apache.jdo.impl.jdoql.tree.NodeImpl |
arrive, ASTToChildren, getChildren, getJavaClass, getObject, getParent, getTokenType, leave, setChildren, setObject, setParent, toString, walkNextChild |
Methods inherited from class org.apache.jdo.impl.jdoql.jdoqlc.JDOQLAST |
getColumn, getLine, getTypeInfo, initialize, initialize, initialize, setColumn, setLine, setTypeInfo, treeToString |
Methods inherited from class antlr.CommonAST |
getText, getType, initialize, setText, setType |
Methods inherited from class antlr.BaseAST |
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jdo.jdoql.tree.Node |
arrive, getChildren, getJavaClass, getObject, getParent, getTokenType, leave, setObject, setParent, walkNextChild |
Field Detail |
Expression[] args
Constructor Detail |
public MethodCallExpr()
setChildren
optionally.
MethodCallExpr(int tokenType, java.lang.String tokenName, java.lang.Class clazz, Expression target, Expression[] args)
setChildren
in order to initialize the node's
child expr
.
tokenType
- the token tpyetokenName
- the name of this nodeclazz
- the Java type of this nodetarget
- the target expression of this method callargs
- the arguments of this method callMethod Detail |
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class NodeImpl
java.lang.CloneNotSupportedException
- thrown by super.clone()
public Expression getTarget()
ThisExpression
or an instance of an arbitrary other
Expression
, e.g. FieldAccessExpression
.
getTarget
in interface MethodCallExpression
public java.lang.String getMethodName()
getMethodName
in interface MethodCallExpression
public Expression[] getArguments()
getArguments
in interface MethodCallExpression
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |