org.gjt.sp.jedit.syntax
Class ParserRuleSet

java.lang.Object
  |
  +--org.gjt.sp.jedit.syntax.ParserRuleSet

public class ParserRuleSet
extends java.lang.Object

A set of parser rules.

Version:
$Id: ParserRuleSet.java,v 1.20 2003/02/23 04:05:21 spestov Exp $
Author:
mike dillon

Constructor Summary
ParserRuleSet(java.lang.String name, Mode mode)
           
 
Method Summary
 void addRule(ParserRule r)
           
 byte getDefault()
           
 RE getDigitRegexp()
           
 ParserRule getEscapeRule()
           
 boolean getHighlightDigits()
           
 boolean getIgnoreCase()
           
 KeywordMap getKeywords()
           
 Mode getMode()
           
 java.lang.String getName()
           
 java.lang.String getNoWordSep()
           
 java.util.Hashtable getProperties()
           
 int getRuleCount()
           
 ParserRule getRules(char ch)
           
static ParserRuleSet getStandardRuleSet(byte id)
          Returns a parser rule set that highlights everything with the specified token type.
 int getTerminateChar()
           
 void setDefault(byte def)
           
 void setDigitRegexp(RE digitRE)
           
 void setEscapeRule(ParserRule escapeRule)
           
 void setHighlightDigits(boolean highlightDigits)
           
 void setIgnoreCase(boolean b)
           
 void setKeywords(KeywordMap km)
           
 void setNoWordSep(java.lang.String noWordSep)
           
 void setProperties(java.util.Hashtable props)
           
 void setTerminateChar(int atChar)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParserRuleSet

public ParserRuleSet(java.lang.String name,
                     Mode mode)
Method Detail

getStandardRuleSet

public static ParserRuleSet getStandardRuleSet(byte id)
Returns a parser rule set that highlights everything with the specified token type.

Parameters:
id - The token type

getName

public java.lang.String getName()

getMode

public Mode getMode()

getProperties

public java.util.Hashtable getProperties()

setProperties

public void setProperties(java.util.Hashtable props)

addRule

public void addRule(ParserRule r)

getRules

public ParserRule getRules(char ch)

getRuleCount

public int getRuleCount()

getTerminateChar

public int getTerminateChar()

setTerminateChar

public void setTerminateChar(int atChar)

getIgnoreCase

public boolean getIgnoreCase()

setIgnoreCase

public void setIgnoreCase(boolean b)

getKeywords

public KeywordMap getKeywords()

setKeywords

public void setKeywords(KeywordMap km)

getHighlightDigits

public boolean getHighlightDigits()

setHighlightDigits

public void setHighlightDigits(boolean highlightDigits)

getDigitRegexp

public RE getDigitRegexp()

setDigitRegexp

public void setDigitRegexp(RE digitRE)

getEscapeRule

public ParserRule getEscapeRule()

setEscapeRule

public void setEscapeRule(ParserRule escapeRule)

getDefault

public byte getDefault()

setDefault

public void setDefault(byte def)

getNoWordSep

public java.lang.String getNoWordSep()

setNoWordSep

public void setNoWordSep(java.lang.String noWordSep)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object