|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IParseNode
| Method Summary | |
|---|---|
void |
appendChild(IParseNode child)
Adds a child to the node. |
java.lang.String |
getAttribute(java.lang.String attributeName)
getAttributeValue |
IParseNodeAttribute |
getAttributeNode(java.lang.String attributeName)
getAttributeNode |
IParseNodeAttribute[] |
getAttributes()
getAttributes |
IParseNode |
getChild(int index)
Gets the child at the specified index |
int |
getChildCount()
Gets the number of children the node has. |
int |
getChildIndex()
Gets the index of this node in relation to its siblings. |
IParseNode[] |
getChildren()
Gets the children of the node. |
Lexeme |
getEndingLexeme()
Gets the ending lexeme of the node. |
java.lang.String |
getLanguage()
Gets the language of the node. |
java.lang.String |
getName()
Gets the name of the node, if any. |
IParseNode |
getNodeAtOffset(int offset)
Find the node that contains the given offset. |
IParseNode |
getParent()
Gets the parent of the node. |
java.lang.String |
getSource()
Gets the source code representation of this node and its descendants |
void |
getSource(SourceWriter writer)
getSource |
Lexeme |
getStartingLexeme()
Gets the starting lexeme of the node. |
java.lang.String |
getText()
Gets this node's text value. |
int |
getTypeIndex()
Gets the node index type |
java.lang.String |
getXML()
Gets the xml representation of this node and its descendants |
void |
getXML(SourceWriter writer)
getXML |
boolean |
hasAttribute(java.lang.String attributeName)
hasAttribute |
boolean |
hasAttributes()
hasAttributes |
boolean |
hasChildren()
Determine if this node has any child nodes |
void |
setAttribute(java.lang.String name,
java.lang.String value)
setAttributeValue |
void |
setEndingLexeme(Lexeme endLexeme)
Sets the ending lexeme of the node. |
void |
setName(java.lang.String name)
Sets the name of the node. |
| Methods inherited from interface com.aptana.ide.lexer.IRange |
|---|
containsOffset, getEndingOffset, getLength, getStartingOffset, isEmpty |
| Method Detail |
|---|
void appendChild(IParseNode child)
child - java.lang.String getAttribute(java.lang.String attributeName)
attributeName -
IParseNodeAttribute getAttributeNode(java.lang.String attributeName)
attributeName -
IParseNodeAttribute[] getAttributes()
IParseNode getChild(int index)
index - The index of the child to retrieve
int getChildCount()
int getChildIndex()
IParseNode[] getChildren()
Lexeme getEndingLexeme()
java.lang.String getLanguage()
java.lang.String getName()
IParseNode getNodeAtOffset(int offset)
offset - The offset within the source files
IParseNode getParent()
java.lang.String getSource()
void getSource(SourceWriter writer)
writer - Lexeme getStartingLexeme()
java.lang.String getText()
int getTypeIndex()
java.lang.String getXML()
void getXML(SourceWriter writer)
writer - boolean hasAttribute(java.lang.String attributeName)
attributeName -
boolean hasAttributes()
boolean hasChildren()
void setAttribute(java.lang.String name,
java.lang.String value)
name - value - void setEndingLexeme(Lexeme endLexeme)
endLexeme - void setName(java.lang.String name)
name -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||