org.gjt.sp.jedit.syntax
Class ParserRule

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

public class ParserRule
extends java.lang.Object

A parser rule.

Version:
$Id: ParserRule.java,v 1.10 2003/01/31 02:19:55 spestov Exp $
Author:
mike dillon, Slava Pestov

Field Summary
 int action
           
static int ACTION_HINTS
           
static int AT_LINE_START
           
static int AT_WHITESPACE_END
           
static int AT_WORD_START
           
 char[] end
           
static int EOL_SPAN
           
static int EXCLUDE_MATCH
           
 char hashChar
           
static int IS_ESCAPE
           
static int MAJOR_ACTIONS
           
static int MARK_FOLLOWING
           
static int MARK_PREVIOUS
           
 ParserRule next
           
static int NO_LINE_BREAK
           
static int NO_WORD_BREAK
           
static int REGEXP
           
static int SEQ
           
static int SPAN
           
 char[] start
           
 RE startRegexp
           
 byte token
           
 
Method Summary
static ParserRule createEOLSpanRule(java.lang.String seq, java.lang.String delegate, byte id, boolean atLineStart, boolean atWhitespaceEnd, boolean atWordStart, boolean excludeMatch)
           
static ParserRule createEscapeRule(java.lang.String seq)
           
static ParserRule createMarkFollowingRule(java.lang.String seq, byte id, boolean atLineStart, boolean atWhitespaceEnd, boolean atWordStart, boolean excludeMatch)
           
static ParserRule createMarkPreviousRule(java.lang.String seq, byte id, boolean atLineStart, boolean atWhitespaceEnd, boolean atWordStart, boolean excludeMatch)
           
static ParserRule createRegexpEOLSpanRule(char hashChar, java.lang.String seq, java.lang.String delegate, byte id, boolean atLineStart, boolean atWhitespaceEnd, boolean atWordStart, boolean excludeMatch, boolean ignoreCase)
           
static ParserRule createRegexpSequenceRule(char hashChar, java.lang.String seq, java.lang.String delegate, byte id, boolean atLineStart, boolean atWhitespaceEnd, boolean atWordStart, boolean ignoreCase)
           
static ParserRule createRegexpSpanRule(char hashChar, java.lang.String begin, java.lang.String end, java.lang.String delegate, byte id, boolean noLineBreak, boolean atLineStart, boolean atWhitespaceEnd, boolean atWordStart, boolean excludeMatch, boolean noWordBreak, boolean ignoreCase)
           
static ParserRule createSequenceRule(java.lang.String seq, java.lang.String delegate, byte id, boolean atLineStart, boolean atWhitespaceEnd, boolean atWordStart)
           
static ParserRule createSpanRule(java.lang.String begin, java.lang.String end, java.lang.String delegate, byte id, boolean noLineBreak, boolean atLineStart, boolean atWhitespaceEnd, boolean atWordStart, boolean excludeMatch, boolean noWordBreak)
           
 ParserRuleSet getDelegateRuleSet(TokenMarker tokenMarker)
          Returns the parser rule set used to highlight text matched by this rule.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAJOR_ACTIONS

public static final int MAJOR_ACTIONS
See Also:
Constant Field Values

SEQ

public static final int SEQ
See Also:
Constant Field Values

SPAN

public static final int SPAN
See Also:
Constant Field Values

MARK_PREVIOUS

public static final int MARK_PREVIOUS
See Also:
Constant Field Values

MARK_FOLLOWING

public static final int MARK_FOLLOWING
See Also:
Constant Field Values

EOL_SPAN

public static final int EOL_SPAN
See Also:
Constant Field Values

ACTION_HINTS

public static final int ACTION_HINTS
See Also:
Constant Field Values

EXCLUDE_MATCH

public static final int EXCLUDE_MATCH
See Also:
Constant Field Values

AT_LINE_START

public static final int AT_LINE_START
See Also:
Constant Field Values

AT_WHITESPACE_END

public static final int AT_WHITESPACE_END
See Also:
Constant Field Values

AT_WORD_START

public static final int AT_WORD_START
See Also:
Constant Field Values

NO_LINE_BREAK

public static final int NO_LINE_BREAK
See Also:
Constant Field Values

NO_WORD_BREAK

public static final int NO_WORD_BREAK
See Also:
Constant Field Values

IS_ESCAPE

public static final int IS_ESCAPE
See Also:
Constant Field Values

REGEXP

public static final int REGEXP
See Also:
Constant Field Values

hashChar

public final char hashChar

start

public final char[] start

startRegexp

public final RE startRegexp

end

public final char[] end

action

public final int action

token

public final byte token

next

public ParserRule next
Method Detail

getDelegateRuleSet

public ParserRuleSet getDelegateRuleSet(TokenMarker tokenMarker)
Returns the parser rule set used to highlight text matched by this rule. Only applicable for SEQ, SPAN, EOL_SPAN, and MARK_FOLLOWING rules.

Parameters:
tokenMarker - The token marker

createSequenceRule

public static final ParserRule createSequenceRule(java.lang.String seq,
                                                  java.lang.String delegate,
                                                  byte id,
                                                  boolean atLineStart,
                                                  boolean atWhitespaceEnd,
                                                  boolean atWordStart)

createRegexpSequenceRule

public static final ParserRule createRegexpSequenceRule(char hashChar,
                                                        java.lang.String seq,
                                                        java.lang.String delegate,
                                                        byte id,
                                                        boolean atLineStart,
                                                        boolean atWhitespaceEnd,
                                                        boolean atWordStart,
                                                        boolean ignoreCase)
                                                 throws REException
REException

createSpanRule

public static final ParserRule createSpanRule(java.lang.String begin,
                                              java.lang.String end,
                                              java.lang.String delegate,
                                              byte id,
                                              boolean noLineBreak,
                                              boolean atLineStart,
                                              boolean atWhitespaceEnd,
                                              boolean atWordStart,
                                              boolean excludeMatch,
                                              boolean noWordBreak)

createRegexpSpanRule

public static final ParserRule createRegexpSpanRule(char hashChar,
                                                    java.lang.String begin,
                                                    java.lang.String end,
                                                    java.lang.String delegate,
                                                    byte id,
                                                    boolean noLineBreak,
                                                    boolean atLineStart,
                                                    boolean atWhitespaceEnd,
                                                    boolean atWordStart,
                                                    boolean excludeMatch,
                                                    boolean noWordBreak,
                                                    boolean ignoreCase)
                                             throws REException
REException

createEOLSpanRule

public static final ParserRule createEOLSpanRule(java.lang.String seq,
                                                 java.lang.String delegate,
                                                 byte id,
                                                 boolean atLineStart,
                                                 boolean atWhitespaceEnd,
                                                 boolean atWordStart,
                                                 boolean excludeMatch)

createRegexpEOLSpanRule

public static final ParserRule createRegexpEOLSpanRule(char hashChar,
                                                       java.lang.String seq,
                                                       java.lang.String delegate,
                                                       byte id,
                                                       boolean atLineStart,
                                                       boolean atWhitespaceEnd,
                                                       boolean atWordStart,
                                                       boolean excludeMatch,
                                                       boolean ignoreCase)
                                                throws REException
REException

createMarkFollowingRule

public static final ParserRule createMarkFollowingRule(java.lang.String seq,
                                                       byte id,
                                                       boolean atLineStart,
                                                       boolean atWhitespaceEnd,
                                                       boolean atWordStart,
                                                       boolean excludeMatch)

createMarkPreviousRule

public static final ParserRule createMarkPreviousRule(java.lang.String seq,
                                                      byte id,
                                                      boolean atLineStart,
                                                      boolean atWhitespaceEnd,
                                                      boolean atWordStart,
                                                      boolean excludeMatch)

createEscapeRule

public static final ParserRule createEscapeRule(java.lang.String seq)