|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.sqltools.sql.parser.ast.SimpleNode
public class SimpleNode
Base implementation of Node.
| Constructor Summary | |
|---|---|
SimpleNode(int i)
|
|
SimpleNode(SQLParser p,
int i)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
acceptChildren(ISQLParserVisitor visitor,
java.lang.Object data)
Accepts the visitor for all children. |
void |
dump(java.lang.String prefix)
|
boolean |
equals(java.lang.Object obj)
|
boolean |
exists()
|
org.eclipse.jface.text.IDocument |
getDocument()
|
int |
getEndOffset()
Before you call this method, make sure setDocument has been called. |
int |
getEndOffset(org.eclipse.jface.text.IDocument document)
|
Token |
getFirstToken()
|
int |
getGreatestEndOffset()
this method differs with getEndOffset in that it takes the trailing spaces into account. |
int |
getGreatestEndOffset(org.eclipse.jface.text.IDocument document)
this method differs with getEndOffset in that it takes the trailing spaces into account |
Token |
getLastToken()
|
int |
getNextTokenOffset()
|
int |
getNextTokenOffset(org.eclipse.jface.text.IDocument document)
Get the next token offset |
Node |
getPreviousNode()
Gets previous node |
java.lang.String |
getSQLText()
Before you call this method, make sure setDocument has been called. |
int |
getStartOffset()
Before you call this method, make sure setDocument has been called. |
int |
getStartOffset(org.eclipse.jface.text.IDocument document)
The concrete implementation for this method has be removed into Thoken.java. |
java.lang.String |
getText()
Returns the node text by concatenate tokens with white spaces. |
java.lang.Object |
jjtAccept(ISQLParserVisitor visitor,
java.lang.Object data)
Accepts the visitor. |
void |
jjtAddChild(Node n,
int i)
This method tells the node to add its argument to the node's list of children. |
void |
jjtClose()
This method is called after all the child nodes have been added. |
Node |
jjtGetChild(int i)
This method returns a child node. |
int |
jjtGetNumChildren()
Return the number of children the node has. |
Node |
jjtGetParent()
|
void |
jjtOpen()
This method is called after the node has been made the current node. |
void |
jjtSetParent(Node n)
This pair of methods are used to inform the node of its parent. |
void |
setDocument(org.eclipse.jface.text.IDocument document)
Associate this Node with the IDocument |
void |
setFirstToken(Token token)
|
void |
setLastToken(Token token)
|
java.lang.String |
toString()
|
java.lang.String |
toString(java.lang.String prefix)
|
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleNode(int i)
public SimpleNode(SQLParser p,
int i)
| Method Detail |
|---|
public void jjtOpen()
Node
jjtOpen in interface Nodepublic void jjtClose()
Node
jjtClose in interface Nodepublic void jjtSetParent(Node n)
Node
jjtSetParent in interface Nodepublic Node jjtGetParent()
jjtGetParent in interface Node
public void jjtAddChild(Node n,
int i)
Node
jjtAddChild in interface Nodepublic Node jjtGetChild(int i)
Node
jjtGetChild in interface Nodepublic int jjtGetNumChildren()
Node
jjtGetNumChildren in interface Nodepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(java.lang.String prefix)
public void dump(java.lang.String prefix)
public Token getLastToken()
getLastToken in interface Nodepublic void setLastToken(Token token)
setLastToken in interface Nodepublic Token getFirstToken()
getFirstToken in interface Nodepublic void setFirstToken(Token token)
setFirstToken in interface Nodepublic int getStartOffset(org.eclipse.jface.text.IDocument document)
getStartOffset in interface Nodeviewer - where the node is displayed
Node.getStartOffset()public int getEndOffset(org.eclipse.jface.text.IDocument document)
getEndOffset in interface Nodeviewer - where the node is displayedgetGreatestEndOffsetpublic int getGreatestEndOffset(org.eclipse.jface.text.IDocument document)
getGreatestEndOffset in interface Nodeviewer - where the node is displayed
Node.getGreatestEndOffset()public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void setDocument(org.eclipse.jface.text.IDocument document)
Node
setDocument in interface Nodepublic org.eclipse.jface.text.IDocument getDocument()
getDocument in interface Nodepublic int getStartOffset()
Node
getStartOffset in interface Nodepublic int getEndOffset()
Node
getEndOffset in interface NodegetGreatestEndOffsetpublic int getGreatestEndOffset()
Node
getGreatestEndOffset in interface Nodepublic java.lang.String getSQLText()
Node
getSQLText in interface Nodepublic int getNextTokenOffset()
getNextTokenOffset in interface Nodepublic int getNextTokenOffset(org.eclipse.jface.text.IDocument document)
getNextTokenOffset in interface Nodeviewer - where the node is displayedgetGreatestEndOffsetpublic Node getPreviousNode()
Node
getPreviousNode in interface Nodepublic java.lang.String getText()
public java.lang.Object jjtAccept(ISQLParserVisitor visitor,
java.lang.Object data)
jjtAccept in interface Nodevisitor - the visitor to be accepteddata - accessorial data
public java.lang.Object acceptChildren(ISQLParserVisitor visitor,
java.lang.Object data)
public boolean exists()
exists in interface Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||