com.aptana.ide.lexer.matcher
Class MatcherMap

java.lang.Object
  extended by com.aptana.ide.lexer.matcher.MatcherMap

public class MatcherMap
extends java.lang.Object

Author:
Kevin Lindsey

Constructor Summary
MatcherMap()
          MatcherMap
 
Method Summary
 void addCharacterMatcher(char c, ITextMatcher matcher)
          addMatcher
 void addDigitMatcher(ITextMatcher matcher)
          addDigitMatcher
 void addLetterMatcher(ITextMatcher matcher)
          addLetterMatcher
 void addNegatedCharacterMatcher(char c, ITextMatcher matcher)
          addNegatedCharacterMatcher
 void addNegatedDigitMatcher(ITextMatcher matcher)
          addNegatedDigitMatcher
 void addNegatedLetterMatcher(ITextMatcher matcher)
          addNegatedLetterMatcher
 void addNegatedWhitespaceMatcher(ITextMatcher matcher)
          addNegatedWhitespaceMatcher
 void addUncategorizedMatcher(ITextMatcher matcher)
          addUncategorizedMatcher
 void addWhitespaceMatcher(ITextMatcher matcher)
          addWhitespaceMatcher
 ITextMatcher[] getMatchers(char c)
          getMatchers
 ITextMatcher[] getUncategorizedMatchers()
          getUncategorizedMatchers
 boolean hasUncategorizedMatchers()
          hasUncategorizedMatchers
 void setSealed()
          setSealed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatcherMap

public MatcherMap()
MatcherMap

Method Detail

addCharacterMatcher

public void addCharacterMatcher(char c,
                                ITextMatcher matcher)
addMatcher

Parameters:
c -
matcher -

addDigitMatcher

public void addDigitMatcher(ITextMatcher matcher)
addDigitMatcher

Parameters:
matcher -

addLetterMatcher

public void addLetterMatcher(ITextMatcher matcher)
addLetterMatcher

Parameters:
matcher -

addNegatedCharacterMatcher

public void addNegatedCharacterMatcher(char c,
                                       ITextMatcher matcher)
addNegatedCharacterMatcher

Parameters:
c -
matcher -

addNegatedDigitMatcher

public void addNegatedDigitMatcher(ITextMatcher matcher)
addNegatedDigitMatcher

Parameters:
matcher -

addNegatedLetterMatcher

public void addNegatedLetterMatcher(ITextMatcher matcher)
addNegatedLetterMatcher

Parameters:
matcher -

addNegatedWhitespaceMatcher

public void addNegatedWhitespaceMatcher(ITextMatcher matcher)
addNegatedWhitespaceMatcher

Parameters:
matcher -

addUncategorizedMatcher

public void addUncategorizedMatcher(ITextMatcher matcher)
addUncategorizedMatcher

Parameters:
matcher -

addWhitespaceMatcher

public void addWhitespaceMatcher(ITextMatcher matcher)
addWhitespaceMatcher

Parameters:
matcher -

getMatchers

public ITextMatcher[] getMatchers(char c)
getMatchers

Parameters:
c -
Returns:
IMatcher[]

getUncategorizedMatchers

public ITextMatcher[] getUncategorizedMatchers()
getUncategorizedMatchers

Returns:
IMatcher[]

hasUncategorizedMatchers

public boolean hasUncategorizedMatchers()
hasUncategorizedMatchers

Returns:
Returns true if this map included matchers that couldn't determine their first characters

setSealed

public void setSealed()
setSealed