com.aptana.ide.editor.html.parsing
Class HTMLParseState

java.lang.Object
  extended by com.aptana.ide.parsing.ParseStateChild
      extended by com.aptana.ide.editor.html.parsing.HTMLParseState
All Implemented Interfaces:
IParseState

public class HTMLParseState
extends ParseStateChild

Author:
Kevin Lindsey

Constructor Summary
HTMLParseState()
          Create a new instance of HTMLParseState
HTMLParseState(IParseState parent)
          Create a new instance of HTMLParseState
 
Method Summary
protected  IParseNodeFactory createParseNodeFactory()
          createParseNodeFactory
 int getCloseTagType(java.lang.String tagName)
          getCloseTagType
 int getDocumentType()
          getDocumentType
 java.lang.String getPubId()
          getPubId
 java.lang.String getRootElement()
          getRootElement
 java.lang.String getSystem()
          getSystem
 boolean isEmptyTagType(java.lang.String tagName)
          isEmptyTagType
 void setEditState(java.lang.String source, java.lang.String insertedSource, int offset, int removeLength)
          Setup this parse state with the next edit to the source document
 
Methods inherited from class com.aptana.ide.parsing.ParseStateChild
addChildState, addCommentRegion, clearCommentRegions, getChildren, getCommentRegions, getFileIndex, getInsertedText, getLanguage, getLexemeList, getParent, getParseNodeFactory, getParseResults, getParseState, getParseTime, getRemoveLength, getRoot, getSource, getStartingOffset, getUpdatedProperties, onAfterParse, onBeforeParse, removeChildState, reset, setFileIndex, setParseResults, setParseTime, toString, unloadFromEnvironment, updateLexemeList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HTMLParseState

public HTMLParseState()
Create a new instance of HTMLParseState


HTMLParseState

public HTMLParseState(IParseState parent)
Create a new instance of HTMLParseState

Parameters:
parent - The parent IParseState
Method Detail

getDocumentType

public int getDocumentType()
getDocumentType

Returns:
int;

getRootElement

public java.lang.String getRootElement()
getRootElement

Returns:
String

getPubId

public java.lang.String getPubId()
getPubId

Returns:
String

getSystem

public java.lang.String getSystem()
getSystem

Returns:
String

createParseNodeFactory

protected IParseNodeFactory createParseNodeFactory()
Description copied from class: ParseStateChild
createParseNodeFactory

Overrides:
createParseNodeFactory in class ParseStateChild
Returns:
IParseNodeFactory
See Also:
ParseStateChild.createParseNodeFactory()

getCloseTagType

public int getCloseTagType(java.lang.String tagName)
getCloseTagType

Parameters:
tagName -
Returns:
close tag type

isEmptyTagType

public boolean isEmptyTagType(java.lang.String tagName)
isEmptyTagType

Parameters:
tagName -
Returns:
empty tag type

setEditState

public void setEditState(java.lang.String source,
                         java.lang.String insertedSource,
                         int offset,
                         int removeLength)
Description copied from interface: IParseState
Setup this parse state with the next edit to the source document

Specified by:
setEditState in interface IParseState
Overrides:
setEditState in class ParseStateChild
Parameters:
source - The entire source of the document after this edit has been applied
insertedSource - The new text inserted into the document
offset - The offset where this edit occurred
removeLength - The number of characters to remove before inserting the insertedSource
See Also:
ParseStateChild.setEditState(java.lang.String, java.lang.String, int, int)