Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.23 2003/06/05 00:01:49 spestov Exp $
Author:
  mike dillon

Constructor Summary
`ParserRuleSet(java.lang.String modeName, java.lang.String setName)`

Method Summary
`void` | `addRule(ParserRule r)`
`void` | `addRuleSet(ParserRuleSet ruleset)` Adds all rules contained in the given ruleset.
`byte` | `getDefault()`
`RE` | `getDigitRegexp()`
`ParserRule` | `getEscapeRule()`
`boolean` | `getHighlightDigits()`
`boolean` | `getIgnoreCase()`
`KeywordMap` | `getKeywords()`
`java.lang.String` | `getModeName()`
`java.lang.String` | `getName()`
`java.lang.String` | `getNoWordSep()`
`java.util.Hashtable` | `getProperties()`
`int` | `getRuleCount()`
`ParserRule` | `getRules(char ch)`
`java.lang.String` | `getSetName()`
`static ParserRuleSet` | `getStandardRuleSet(byte id)` Returns a parser rule set that highlights everything with the specified token type.
`int` | `getTerminateChar()`
`boolean` | `isBuiltIn()` Returns if this is a built-in ruleset.
`void` | `resolveImports()` Resolves all rulesets added with `addRuleSet(ParserRuleSet)`.
`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 modeName,
                         java.lang.String setName)

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

### getModeName

    public java.lang.String getModeName()

### getSetName

    public java.lang.String getSetName()

### getName

    public java.lang.String getName()

### getProperties

    public java.util.Hashtable getProperties()

### setProperties

    public void setProperties(java.util.Hashtable props)

### resolveImports

    public void resolveImports()

  Resolves all rulesets added with `addRuleSet(ParserRuleSet)`.

  Since:
    jEdit 4.2pre3

### addRuleSet

    public void addRuleSet(ParserRuleSet ruleset)

  Adds all rules contained in the given ruleset.

  Parameters:
    `ruleset` - The ruleset
  Since:
    jEdit 4.2pre3

### 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)

### isBuiltIn

    public boolean isBuiltIn()

  Returns if this is a built-in ruleset.

  Since:
    jEdit 4.2pre1

### toString

    public java.lang.String toString()

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD