|
||||||||||
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.IdentifierExpr
org.apache.jdo.impl.jdoql.tree.StaticFieldAccessExpr
public final class StaticFieldAccessExpr
This node represents a static field access expression.
It inherits from FieldAccessExpr
.
Static Field access expressions have exactly one child, the target expression.
That target expression is an identifier expression.
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 | |
---|---|
StaticFieldAccessExpr()
The noarg constructor is needed for ANTLR support and deserialization. |
|
StaticFieldAccessExpr(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 |
getFieldValue(javax.jdo.PersistenceManager pm)
Returns the value of the field corresponding with this static field access expression. |
java.lang.String |
getName()
Returns the name of the accessed field. |
java.lang.Object |
leave(NodeVisitor visitor,
java.lang.Object[] results)
Delegates to the argument visitor . |
void |
setName(java.lang.String fieldName)
Sets the name of the accessed field. |
Methods inherited from class org.apache.jdo.impl.jdoql.tree.IdentifierExpr |
---|
getTypeName |
Methods inherited from class org.apache.jdo.impl.jdoql.tree.NodeImpl |
---|
clone, getChildren, getJavaClass, getObject, getParent, getTokenType, 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.IdentifierExpression |
---|
getTypeName |
Methods inherited from interface org.apache.jdo.jdoql.tree.Node |
---|
getChildren, getJavaClass, getObject, getParent, getTokenType, setObject, setParent, walkNextChild |
Constructor Detail |
---|
public StaticFieldAccessExpr()
setChildren
optionally.
public StaticFieldAccessExpr(antlr.Token token)
setChildren
optionally.
Method Detail |
---|
public java.lang.String getName()
getName
in interface IdentifierExpression
getName
in class IdentifierExpr
public void setName(java.lang.String fieldName)
fieldName
- the field namepublic java.lang.Object getFieldValue(javax.jdo.PersistenceManager pm)
getFieldValue
in interface StaticFieldAccessExpression
pm
- the persistence manager of the query
JDOQueryException
- if access to the corresponding field of this
expression is deniedpublic void arrive(NodeVisitor visitor)
visitor
.
arrive
in interface Node
arrive
in class IdentifierExpr
visitor
- the node visitorpublic java.lang.Object leave(NodeVisitor visitor, java.lang.Object[] results)
visitor
.
leave
in interface Node
leave
in class IdentifierExpr
visitor
- the node visitorresults
- the result array
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |