com.aptana.ide.editor.html.parsing.nodes
Class HTMLParseNodeFactory

java.lang.Object
  extended by com.aptana.ide.parsing.nodes.ParseNodeFactory
      extended by com.aptana.ide.editor.html.parsing.nodes.HTMLParseNodeFactory
All Implemented Interfaces:
IParseNodeFactory

public class HTMLParseNodeFactory
extends ParseNodeFactory

Author:
Kevin Lindsey

Field Summary
 
Fields inherited from class com.aptana.ide.parsing.nodes.ParseNodeFactory
_owningParseState
 
Constructor Summary
HTMLParseNodeFactory(IParseState owningParseState)
           
 
Method Summary
 IParseNode createParseNode(int nodeType, Lexeme startingLexeme)
          Create a new instance of a parse node of the given type
 IParseNode createRootNode()
          Create a root node for this language.
 
Methods inherited from class com.aptana.ide.parsing.nodes.ParseNodeFactory
getOwningParseState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLParseNodeFactory

public HTMLParseNodeFactory(IParseState owningParseState)
Parameters:
owningParseState -
Method Detail

createParseNode

public IParseNode createParseNode(int nodeType,
                                  Lexeme startingLexeme)
Description copied from interface: IParseNodeFactory
Create a new instance of a parse node of the given type

Parameters:
nodeType - The unique integer value of the type of node to create. Typically, string overloaded version of this method will calculate the node type index and call this method.
startingLexeme - The lexeme that starts this node
Returns:
Returns the resulting parse node
See Also:
IParseNodeFactory.createParseNode(int, com.aptana.ide.lexer.Lexeme)

createRootNode

public IParseNode createRootNode()
Description copied from interface: IParseNodeFactory
Create a root node for this language. Note that some languages can be nested in other languages, so this node would not be the root of the entire tree, but only the root for the transition into a new language.

Specified by:
createRootNode in interface IParseNodeFactory
Overrides:
createRootNode in class ParseNodeFactory
Returns:
IParseNode
See Also:
ParseNodeFactory.createRootNode()