org.apache.jdo.impl.jdoql.tree
Class MethodCallExpr

java.lang.Object
  extended byantlr.BaseAST
      extended byantlr.CommonAST
          extended byorg.apache.jdo.impl.jdoql.jdoqlc.JDOQLAST
              extended byorg.apache.jdo.impl.jdoql.tree.NodeImpl
                  extended byorg.apache.jdo.impl.jdoql.tree.Expr
                      extended byorg.apache.jdo.impl.jdoql.tree.MethodCallExpr
All Implemented Interfaces:
antlr.collections.AST, java.lang.Cloneable, Expression, MethodCallExpression, Node, java.io.Serializable
Direct Known Subclasses:
ContainsCallExpr, EndsWithCallExpr, IsEmptyCallExpr, StartsWithCallExpr

public abstract class MethodCallExpr
extends Expr
implements MethodCallExpression

This node represents a method call expression. Examples of method call expressions are ContainsCallExpression, IsEmptyCallExpression, EndsWithCallExpression and StartsWithCallExpression.

Author:
Michael Watzek
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.jdo.impl.jdoql.jdoqlc.JDOQLAST
column, line, typeInfo
 
Fields inherited from class antlr.BaseAST
down, right
 
Constructor Summary
MethodCallExpr()
          The noarg constructor is needed for ANTLR support and deserialization.
 
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, getChildren, getJavaClass, getObject, getParent, getTokenType, leave, 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
 

Constructor Detail

MethodCallExpr

public MethodCallExpr()
The noarg constructor is needed for ANTLR support and deserialization. The caller must make sure to set the ANTLR tree structure himself or, call setChildren optionally.

Method Detail

clone

protected java.lang.Object clone()
                          throws java.lang.CloneNotSupportedException
Creates and returns a copy of this object.

Overrides:
clone in class NodeImpl
Returns:
the copy
Throws:
java.lang.CloneNotSupportedException - thrown by super.clone()

getTarget

public Expression getTarget()
Returns the target expression of this method call. The target expression can be an instance of ThisExpression or an instance of an arbitrary other Expression, e.g. FieldAccessExpression.

Specified by:
getTarget in interface MethodCallExpression
Returns:
the target expression

getMethodName

public java.lang.String getMethodName()
Returns the method name.

Specified by:
getMethodName in interface MethodCallExpression
Returns:
the method name

getArguments

public Expression[] getArguments()
Returns the argument array of this method call.

Specified by:
getArguments in interface MethodCallExpression
Returns:
the argument array


Copyright © 2005 Apache Software Foundation. All Rights Reserved.