com.aptana.ide.parsing.matcher
Class AbstractLexemeMatcher

java.lang.Object
  extended by com.aptana.xml.NodeBase
      extended by com.aptana.ide.parsing.matcher.AbstractLexemeMatcher
All Implemented Interfaces:
ILexemeMatcher, INode, java.lang.Comparable
Direct Known Subclasses:
LookaheadMatcher, OptionalMatcher, OrMatcher, ParserMatcher, RuleMatcher, TokenMatcher, UseRuleMatcher, ZeroOrMoreMatcher

public abstract class AbstractLexemeMatcher
extends NodeBase
implements ILexemeMatcher

Author:
Kevin Lindsey

Field Summary
protected  IParseNode result
          result
 
Fields inherited from class com.aptana.xml.NodeBase
EMPTY_STRING
 
Constructor Summary
AbstractLexemeMatcher()
          AbstractLexemeMatcher
 
Method Summary
protected  void accept(Lexeme[] lexemes, int startingIndex, int endingIndex)
          accept
protected  void addAttribute(java.lang.String name, java.lang.String value)
          addAttribute
protected  void addChildParseNode(IParseNode childParseNode)
          addChildNode
abstract  void addChildTypes()
          addChildTypes
protected  void addTypesToMap(IEnumerationMap indexMap)
          addTypesToMap
 java.lang.String getNode()
          getNode
 ParserMatcher getOwningParser()
          getOwningParser
 IParseNode getParseResults()
          getParseResults
protected  void reset()
          reset
 void setNode(java.lang.String node)
          setNode
 
Methods inherited from class com.aptana.xml.NodeBase
addChildType, appendChild, appendText, compareTo, getChild, getChildCount, getColumnNumber, getDocument, getLineNumber, getParent, getText, removeChild, removeChildType, setColumnNumber, setLineNumber, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.aptana.ide.parsing.matcher.ILexemeMatcher
match
 

Field Detail

result

protected IParseNode result
result

Constructor Detail

AbstractLexemeMatcher

public AbstractLexemeMatcher()
AbstractLexemeMatcher

Method Detail

accept

protected void accept(Lexeme[] lexemes,
                      int startingIndex,
                      int endingIndex)
accept

Parameters:
lexemes -
startingIndex -
endingIndex -

addAttribute

protected void addAttribute(java.lang.String name,
                            java.lang.String value)
addAttribute

Parameters:
name -
value -

addChildParseNode

protected void addChildParseNode(IParseNode childParseNode)
addChildNode

Parameters:
childParseNode -

addChildTypes

public abstract void addChildTypes()
addChildTypes


addTypesToMap

protected void addTypesToMap(IEnumerationMap indexMap)
addTypesToMap

Parameters:
indexMap -

reset

protected void reset()
reset


getNode

public java.lang.String getNode()
getNode

Returns:
String

getOwningParser

public ParserMatcher getOwningParser()
getOwningParser

Returns:
ParserElement

getParseResults

public IParseNode getParseResults()
Description copied from interface: ILexemeMatcher
getParseResults

Specified by:
getParseResults in interface ILexemeMatcher
Returns:
IParseNode
See Also:
ILexemeMatcher.getParseResults()

setNode

public void setNode(java.lang.String node)
setNode

Parameters:
node -