|
|||||||||||
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
This class represents a node in the intermediate representation (AST) used by the query compiler. It provides - line info - column info - type info (JavaType instance): the semantic analysis calculates the type of an expression and adds this info to each node.
Field Summary | |
protected int |
column
The column info |
protected int |
line
The line info |
protected JavaType |
typeInfo
The type info |
Fields inherited from class antlr.CommonAST |
|
Fields inherited from class antlr.BaseAST |
down, right |
Constructor Summary | |
JDOQLAST()
|
|
JDOQLAST(int type,
java.lang.String text,
JavaType typeInfo)
|
|
JDOQLAST(JDOQLAST ast)
|
Method Summary | |
protected java.lang.Object |
clone()
Creates and returns a copy of this object. |
int |
getColumn()
|
int |
getLine()
|
JavaType |
getTypeInfo()
|
void |
initialize(antlr.collections.AST _ast)
|
void |
initialize(int type,
java.lang.String text,
JavaType typeInfo)
|
void |
initialize(antlr.Token t)
|
void |
setColumn(int column)
|
void |
setLine(int line)
|
void |
setTypeInfo(JavaType typeInfo)
|
java.lang.String |
toString()
Returns a string representation of this JDOQLAST. |
java.lang.String |
treeToString()
Returns a string representation of this JDOQLAST including all child nodes. |
private void |
treeToString(int indent,
java.lang.StringBuffer repr)
|
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 |
Field Detail |
protected int line
protected int column
protected transient JavaType typeInfo
Constructor Detail |
public JDOQLAST()
public JDOQLAST(int type, java.lang.String text, JavaType typeInfo)
public JDOQLAST(JDOQLAST ast)
Method Detail |
public void initialize(antlr.Token t)
initialize
in interface antlr.collections.AST
public void initialize(int type, java.lang.String text, JavaType typeInfo)
public void initialize(antlr.collections.AST _ast)
initialize
in interface antlr.collections.AST
public void setLine(int line)
public int getLine()
getLine
in interface antlr.collections.AST
public void setColumn(int column)
public int getColumn()
getColumn
in interface antlr.collections.AST
public void setTypeInfo(JavaType typeInfo)
public JavaType getTypeInfo()
public java.lang.String toString()
toString
in interface antlr.collections.AST
public java.lang.String treeToString()
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
private void treeToString(int indent, java.lang.StringBuffer repr)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |