|
||||||||||
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 Node
public void jjtClose()
Node
jjtClose
in interface Node
public void jjtSetParent(Node n)
Node
jjtSetParent
in interface Node
public Node jjtGetParent()
jjtGetParent
in interface Node
public void jjtAddChild(Node n, int i)
Node
jjtAddChild
in interface Node
public Node jjtGetChild(int i)
Node
jjtGetChild
in interface Node
public int jjtGetNumChildren()
Node
jjtGetNumChildren
in interface Node
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String prefix)
public void dump(java.lang.String prefix)
public Token getLastToken()
getLastToken
in interface Node
public void setLastToken(Token token)
setLastToken
in interface Node
public Token getFirstToken()
getFirstToken
in interface Node
public void setFirstToken(Token token)
setFirstToken
in interface Node
public int getStartOffset(org.eclipse.jface.text.IDocument document)
getStartOffset
in interface Node
viewer
- where the node is displayed
Node.getStartOffset()
public int getEndOffset(org.eclipse.jface.text.IDocument document)
getEndOffset
in interface Node
viewer
- where the node is displayedgetGreatestEndOffset
public int getGreatestEndOffset(org.eclipse.jface.text.IDocument document)
getGreatestEndOffset
in interface Node
viewer
- where the node is displayed
Node.getGreatestEndOffset()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void setDocument(org.eclipse.jface.text.IDocument document)
Node
setDocument
in interface Node
public org.eclipse.jface.text.IDocument getDocument()
getDocument
in interface Node
public int getStartOffset()
Node
getStartOffset
in interface Node
public int getEndOffset()
Node
getEndOffset
in interface Node
getGreatestEndOffset
public int getGreatestEndOffset()
Node
getGreatestEndOffset
in interface Node
public java.lang.String getSQLText()
Node
getSQLText
in interface Node
public int getNextTokenOffset()
getNextTokenOffset
in interface Node
public int getNextTokenOffset(org.eclipse.jface.text.IDocument document)
getNextTokenOffset
in interface Node
viewer
- where the node is displayedgetGreatestEndOffset
public Node getPreviousNode()
Node
getPreviousNode
in interface Node
public java.lang.String getText()
public java.lang.Object jjtAccept(ISQLParserVisitor visitor, java.lang.Object data)
jjtAccept
in interface Node
visitor
- 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 |