com.aptana.ide.parsing.matcher
Class OptionalMatcher

java.lang.Object
  extended by com.aptana.xml.NodeBase
      extended by com.aptana.ide.parsing.matcher.AbstractLexemeMatcher
          extended by com.aptana.ide.parsing.matcher.OptionalMatcher
All Implemented Interfaces:
ILexemeMatcher, INode, java.lang.Comparable

public class OptionalMatcher
extends AbstractLexemeMatcher

Author:
Kevin Lindsey

Field Summary
 
Fields inherited from class com.aptana.ide.parsing.matcher.AbstractLexemeMatcher
result
 
Fields inherited from class com.aptana.xml.NodeBase
EMPTY_STRING
 
Constructor Summary
OptionalMatcher()
          OptionalMatcher
 
Method Summary
 void addChildTypes()
          addChildTypes
 int match(Lexeme[] lexemes, int offset, int eofOffset)
          match
 
Methods inherited from class com.aptana.ide.parsing.matcher.AbstractLexemeMatcher
accept, addAttribute, addChildParseNode, addTypesToMap, getNode, getOwningParser, getParseResults, reset, 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
 

Constructor Detail

OptionalMatcher

public OptionalMatcher()
OptionalMatcher

Method Detail

addChildTypes

public void addChildTypes()
Description copied from class: AbstractLexemeMatcher
addChildTypes

Specified by:
addChildTypes in class AbstractLexemeMatcher
See Also:
AbstractLexemeMatcher.addChildTypes()

match

public int match(Lexeme[] lexemes,
                 int offset,
                 int eofOffset)
Description copied from interface: ILexemeMatcher
match

Returns:
Returns the offset where the match ended or -1 if no match occurred
See Also:
ILexemeMatcher.match(com.aptana.ide.lexer.Lexeme[], int, int)