|
||||||||||
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
public class 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 org.apache.jdo.model.java.JavaType |
typeInfo
The type info |
Fields inherited from class antlr.BaseAST |
---|
down, right |
Constructor Summary | |
---|---|
JDOQLAST()
|
|
JDOQLAST(int type,
java.lang.String text,
org.apache.jdo.model.java.JavaType typeInfo)
|
|
JDOQLAST(JDOQLAST ast)
|
Method Summary | |
---|---|
protected java.lang.Object |
clone()
Creates and returns a copy of this object. |
int |
getColumn()
|
int |
getLine()
|
org.apache.jdo.model.java.JavaType |
getTypeInfo()
|
void |
initialize(antlr.collections.AST _ast)
|
void |
initialize(int type,
java.lang.String text,
org.apache.jdo.model.java.JavaType typeInfo)
|
void |
initialize(antlr.Token t)
|
void |
setColumn(int column)
|
void |
setLine(int line)
|
void |
setTypeInfo(org.apache.jdo.model.java.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. |
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 org.apache.jdo.model.java.JavaType typeInfo
Constructor Detail |
---|
public JDOQLAST()
public JDOQLAST(int type, java.lang.String text, org.apache.jdo.model.java.JavaType typeInfo)
public JDOQLAST(JDOQLAST ast)
Method Detail |
---|
public void initialize(antlr.Token t)
initialize
in interface antlr.collections.AST
initialize
in class antlr.CommonAST
public void initialize(int type, java.lang.String text, org.apache.jdo.model.java.JavaType typeInfo)
public void initialize(antlr.collections.AST _ast)
initialize
in interface antlr.collections.AST
initialize
in class antlr.CommonAST
public void setLine(int line)
public int getLine()
getLine
in interface antlr.collections.AST
getLine
in class antlr.BaseAST
public void setColumn(int column)
public int getColumn()
getColumn
in interface antlr.collections.AST
getColumn
in class antlr.BaseAST
public void setTypeInfo(org.apache.jdo.model.java.JavaType typeInfo)
public org.apache.jdo.model.java.JavaType getTypeInfo()
public java.lang.String toString()
toString
in interface antlr.collections.AST
toString
in class antlr.BaseAST
public java.lang.String treeToString()
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |