|
|||||||||||
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
org.apache.jdo.impl.jdoql.tree.StartsWithCallExpr
This node represents the method call expression
String.startsWith
. Children of this node are a target
expression (e.g. a FieldAccessExpression
) and the method
argument which is an arbitrary expression.
Field Summary |
Fields inherited from class org.apache.jdo.impl.jdoql.tree.MethodCallExpr |
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 | |
|
StartsWithCallExpr()
The noarg constructor is needed for ANTLR support and deserialization. |
(package private) |
StartsWithCallExpr(Expression target,
Expression arg)
This constructor is called by the query tree instance. |
(package private) |
StartsWithCallExpr(Expression target,
Expression[] args)
This constructor is called by the query tree instance. |
|
StartsWithCallExpr(antlr.Token token)
The noarg constructor is needed for ANTLR support. |
Method Summary | |
void |
arrive(NodeVisitor visitor)
Delegates to the argument visitor . |
java.lang.Object |
leave(NodeVisitor visitor,
java.lang.Object[] results)
Delegates to the argument visitor . |
boolean |
walkNextChild(NodeVisitor visitor,
java.lang.Object resultOfPreviousChild,
int indexOfNextChild)
Delegates to the argument visitor . |
Methods inherited from class org.apache.jdo.impl.jdoql.tree.MethodCallExpr |
clone, getArguments, getMethodName, getTarget |
Methods inherited from class org.apache.jdo.impl.jdoql.tree.NodeImpl |
ASTToChildren, getChildren, getJavaClass, getObject, getParent, getTokenType, setChildren, setObject, setParent, toString |
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.MethodCallExpression |
getArguments, getMethodName, getTarget |
Methods inherited from interface org.apache.jdo.jdoql.tree.Node |
getChildren, getJavaClass, getObject, getParent, getTokenType, setObject, setParent |
Constructor Detail |
public StartsWithCallExpr()
setChildren
optionally.
public StartsWithCallExpr(antlr.Token token)
setChildren
optionally.
StartsWithCallExpr(Expression target, Expression[] args)
target
- the target expression of this method callargs
- the arguments of this method call
JDOQueryException
- if the result type of target is not a string or
the length of args is not equal 1StartsWithCallExpr(Expression target, Expression arg)
target
- the target expression of this method callarg
- the argument of this method callMethod Detail |
public void arrive(NodeVisitor visitor)
visitor
.
arrive
in interface Node
arrive
in class NodeImpl
visitor
- the node visitorpublic java.lang.Object leave(NodeVisitor visitor, java.lang.Object[] results)
visitor
.
leave
in interface Node
leave
in class NodeImpl
visitor
- the node visitorresults
- the result array
public boolean walkNextChild(NodeVisitor visitor, java.lang.Object resultOfPreviousChild, int indexOfNextChild)
visitor
.
walkNextChild
in interface Node
walkNextChild
in class NodeImpl
visitor
- the node visitorresultOfPreviousChild
- the result computed by leaving the
previous child nodeindexOfNextChild
- the index in the children array of the
next child to walk
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |