|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gjt.sp.jedit.syntax.ParserRuleSet
A set of parser rules.
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 |
public ParserRuleSet(java.lang.String modeName, java.lang.String setName)
Method Detail |
public static ParserRuleSet getStandardRuleSet(byte id)
id
- The token typepublic java.lang.String getModeName()
public java.lang.String getSetName()
public java.lang.String getName()
public java.util.Hashtable getProperties()
public void setProperties(java.util.Hashtable props)
public void resolveImports()
addRuleSet(ParserRuleSet)
.
public void addRuleSet(ParserRuleSet ruleset)
ruleset
- The rulesetpublic void addRule(ParserRule r)
public ParserRule getRules(char ch)
public int getRuleCount()
public int getTerminateChar()
public void setTerminateChar(int atChar)
public boolean getIgnoreCase()
public void setIgnoreCase(boolean b)
public KeywordMap getKeywords()
public void setKeywords(KeywordMap km)
public boolean getHighlightDigits()
public void setHighlightDigits(boolean highlightDigits)
public RE getDigitRegexp()
public void setDigitRegexp(RE digitRE)
public ParserRule getEscapeRule()
public void setEscapeRule(ParserRule escapeRule)
public byte getDefault()
public void setDefault(byte def)
public java.lang.String getNoWordSep()
public void setNoWordSep(java.lang.String noWordSep)
public boolean isBuiltIn()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |