com.bea.document.internal.pattern
Class PatternParser
java.lang.Object
com.bea.document.internal.pattern.PatternParser
- public class PatternParser
- extends Object
EOF
public static final int EOF
- See Also:
- Constant Field Values
SPACE
public static final int SPACE
- See Also:
- Constant Field Values
PIPE
public static final int PIPE
- See Also:
- Constant Field Values
PERIOD
public static final int PERIOD
- See Also:
- Constant Field Values
OPEN_PAREN
public static final int OPEN_PAREN
- See Also:
- Constant Field Values
CLOSE_PAREN
public static final int CLOSE_PAREN
- See Also:
- Constant Field Values
QUESTION_MARK
public static final int QUESTION_MARK
- See Also:
- Constant Field Values
ASTERISK
public static final int ASTERISK
- See Also:
- Constant Field Values
PLUS_SIGN
public static final int PLUS_SIGN
- See Also:
- Constant Field Values
COMMA
public static final int COMMA
- See Also:
- Constant Field Values
OPEN_CURLY_BRACE
public static final int OPEN_CURLY_BRACE
- See Also:
- Constant Field Values
CLOSE_CURLY_BRACE
public static final int CLOSE_CURLY_BRACE
- See Also:
- Constant Field Values
OPEN_BRACKET
public static final int OPEN_BRACKET
- See Also:
- Constant Field Values
CLOSE_BRACKET
public static final int CLOSE_BRACKET
- See Also:
- Constant Field Values
MINUS_SIGN
public static final int MINUS_SIGN
- See Also:
- Constant Field Values
CARET
public static final int CARET
- See Also:
- Constant Field Values
ESCAPE_N
public static final int ESCAPE_N
- See Also:
- Constant Field Values
ESCAPE_R
public static final int ESCAPE_R
- See Also:
- Constant Field Values
ESCAPE_T
public static final int ESCAPE_T
- See Also:
- Constant Field Values
ESCAPE_BACKSLASH
public static final int ESCAPE_BACKSLASH
- See Also:
- Constant Field Values
ESCAPE_PIPE
public static final int ESCAPE_PIPE
- See Also:
- Constant Field Values
ESCAPE_PERIOD
public static final int ESCAPE_PERIOD
- See Also:
- Constant Field Values
ESCAPE_MINUS_SIGN
public static final int ESCAPE_MINUS_SIGN
- See Also:
- Constant Field Values
ESCAPE_CARET
public static final int ESCAPE_CARET
- See Also:
- Constant Field Values
ESCAPE_QUESTION_MARK
public static final int ESCAPE_QUESTION_MARK
- See Also:
- Constant Field Values
ESCAPE_ASTERISK
public static final int ESCAPE_ASTERISK
- See Also:
- Constant Field Values
ESCAPE_PLUS_SIGN
public static final int ESCAPE_PLUS_SIGN
- See Also:
- Constant Field Values
ESCAPE_OPEN_CURLY_BRACE
public static final int ESCAPE_OPEN_CURLY_BRACE
- See Also:
- Constant Field Values
ESCAPE_CLOSE_CURLY_BRACE
public static final int ESCAPE_CLOSE_CURLY_BRACE
- See Also:
- Constant Field Values
ESCAPE_OPEN_PAREN
public static final int ESCAPE_OPEN_PAREN
- See Also:
- Constant Field Values
ESCAPE_CLOSE_PAREN
public static final int ESCAPE_CLOSE_PAREN
- See Also:
- Constant Field Values
ESCAPE_OPEN_BRACKET
public static final int ESCAPE_OPEN_BRACKET
- See Also:
- Constant Field Values
ESCAPE_CLOSE_BRACKET
public static final int ESCAPE_CLOSE_BRACKET
- See Also:
- Constant Field Values
MCE_s
public static final int MCE_s
- See Also:
- Constant Field Values
MCE_S
public static final int MCE_S
- See Also:
- Constant Field Values
MCE_i
public static final int MCE_i
- See Also:
- Constant Field Values
MCE_I
public static final int MCE_I
- See Also:
- Constant Field Values
MCE_c
public static final int MCE_c
- See Also:
- Constant Field Values
MCE_C
public static final int MCE_C
- See Also:
- Constant Field Values
MCE_d
public static final int MCE_d
- See Also:
- Constant Field Values
MCE_D
public static final int MCE_D
- See Also:
- Constant Field Values
MCE_w
public static final int MCE_w
- See Also:
- Constant Field Values
MCE_W
public static final int MCE_W
- See Also:
- Constant Field Values
OPEN_CATEGORY_ESCAPE
public static final int OPEN_CATEGORY_ESCAPE
- See Also:
- Constant Field Values
OPEN_NEGATIVE_CATEGORY_ESCAPE
public static final int OPEN_NEGATIVE_CATEGORY_ESCAPE
- See Also:
- Constant Field Values
META_CHARACTER
public static final int META_CHARACTER
- See Also:
- Constant Field Values
NOT_CARET_MINUS_BRACKETS_OR_BACKSLASH
public static final int NOT_CARET_MINUS_BRACKETS_OR_BACKSLASH
- See Also:
- Constant Field Values
NORMAL_CHARACTER
public static final int NORMAL_CHARACTER
- See Also:
- Constant Field Values
NON_NEGATIVE_INTEGER
public static final int NON_NEGATIVE_INTEGER
- See Also:
- Constant Field Values
BOUND_SEPARATOR
public static final int BOUND_SEPARATOR
- See Also:
- Constant Field Values
CLOSE_QUANTIFIER
public static final int CLOSE_QUANTIFIER
- See Also:
- Constant Field Values
CEP_L
public static final int CEP_L
- See Also:
- Constant Field Values
CEP_Lu
public static final int CEP_Lu
- See Also:
- Constant Field Values
CEP_Ll
public static final int CEP_Ll
- See Also:
- Constant Field Values
CEP_Lt
public static final int CEP_Lt
- See Also:
- Constant Field Values
CEP_Lm
public static final int CEP_Lm
- See Also:
- Constant Field Values
CEP_Lo
public static final int CEP_Lo
- See Also:
- Constant Field Values
CEP_M
public static final int CEP_M
- See Also:
- Constant Field Values
CEP_Mn
public static final int CEP_Mn
- See Also:
- Constant Field Values
CEP_Mc
public static final int CEP_Mc
- See Also:
- Constant Field Values
CEP_Me
public static final int CEP_Me
- See Also:
- Constant Field Values
CEP_N
public static final int CEP_N
- See Also:
- Constant Field Values
CEP_Nd
public static final int CEP_Nd
- See Also:
- Constant Field Values
CEP_Nl
public static final int CEP_Nl
- See Also:
- Constant Field Values
CEP_No
public static final int CEP_No
- See Also:
- Constant Field Values
CEP_P
public static final int CEP_P
- See Also:
- Constant Field Values
CEP_Pc
public static final int CEP_Pc
- See Also:
- Constant Field Values
CEP_Pd
public static final int CEP_Pd
- See Also:
- Constant Field Values
CEP_Ps
public static final int CEP_Ps
- See Also:
- Constant Field Values
CEP_Pe
public static final int CEP_Pe
- See Also:
- Constant Field Values
CEP_Pi
public static final int CEP_Pi
- See Also:
- Constant Field Values
CEP_Pf
public static final int CEP_Pf
- See Also:
- Constant Field Values
CEP_Po
public static final int CEP_Po
- See Also:
- Constant Field Values
CEP_Z
public static final int CEP_Z
- See Also:
- Constant Field Values
CEP_Zs
public static final int CEP_Zs
- See Also:
- Constant Field Values
CEP_Zl
public static final int CEP_Zl
- See Also:
- Constant Field Values
CEP_Zp
public static final int CEP_Zp
- See Also:
- Constant Field Values
CEP_S
public static final int CEP_S
- See Also:
- Constant Field Values
CEP_Sm
public static final int CEP_Sm
- See Also:
- Constant Field Values
CEP_Sc
public static final int CEP_Sc
- See Also:
- Constant Field Values
CEP_Sk
public static final int CEP_Sk
- See Also:
- Constant Field Values
CEP_So
public static final int CEP_So
- See Also:
- Constant Field Values
CEP_C
public static final int CEP_C
- See Also:
- Constant Field Values
CEP_Cc
public static final int CEP_Cc
- See Also:
- Constant Field Values
CEP_Cf
public static final int CEP_Cf
- See Also:
- Constant Field Values
CEP_Co
public static final int CEP_Co
- See Also:
- Constant Field Values
CEP_Cn
public static final int CEP_Cn
- See Also:
- Constant Field Values
CEP_Is_BLOCK
public static final int CEP_Is_BLOCK
- See Also:
- Constant Field Values
CLOSE_CATEGORY_ESCAPE
public static final int CLOSE_CATEGORY_ESCAPE
- See Also:
- Constant Field Values
__jjV_2C
public static final int __jjV_2C
- See Also:
- Constant Field Values
__jjV_aB
public static final int __jjV_aB
- See Also:
- Constant Field Values
__jjV_2D
public static final int __jjV_2D
- See Also:
- Constant Field Values
__jjV_oB
public static final int __jjV_oB
- See Also:
- Constant Field Values
__jjV_iB
public static final int __jjV_iB
- See Also:
- Constant Field Values
__jjV_jB
public static final int __jjV_jB
- See Also:
- Constant Field Values
__jjV_5B
public static final int __jjV_5B
- See Also:
- Constant Field Values
__jjV_kB
public static final int __jjV_kB
- See Also:
- Constant Field Values
__jjV_lB
public static final int __jjV_lB
- See Also:
- Constant Field Values
__jjV_mB
public static final int __jjV_mB
- See Also:
- Constant Field Values
__jjV_1D
public static final int __jjV_1D
- See Also:
- Constant Field Values
__jjV_3D
public static final int __jjV_3D
- See Also:
- Constant Field Values
__jjV_1C
public static final int __jjV_1C
- See Also:
- Constant Field Values
__jjV_3C
public static final int __jjV_3C
- See Also:
- Constant Field Values
__jjV_nB
public static final int __jjV_nB
- See Also:
- Constant Field Values
__jjV_4C
public static final int __jjV_4C
- See Also:
- Constant Field Values
DEFAULT
public static final int DEFAULT
- See Also:
- Constant Field Values
QUANTIFIER
public static final int QUANTIFIER
- See Also:
- Constant Field Values
CATEGORY_ESCAPE_PROPERTY
public static final int CATEGORY_ESCAPE_PROPERTY
- See Also:
- Constant Field Values
tokenImage
public static final String[] tokenImage
__jjstate
public com.metamata.parse.ParserState __jjstate
__jjstaticstate
public static com.metamata.parse.ParserState __jjstaticstate
PatternParser
public PatternParser()
PatternParser
public PatternParser(InputStream input)
PatternParser
public PatternParser(Reader input)
PatternParser
public PatternParser(com.metamata.parse.Scanner scanner)
createNewScanner
public static com.metamata.parse.Scanner createNewScanner(Reader input)
createNewScanner
public static com.metamata.parse.Scanner createNewScanner(InputStream input)
createNewScanner
public static com.metamata.parse.Scanner createNewScanner()
initializeParser
public void initializeParser()
initializeParser
public void initializeParser(InputStream input)
initializeParser
public void initializeParser(Reader input)
initializeParser
public void initializeParser(com.metamata.parse.Scanner scanner)
initializeStaticParser
public static void initializeStaticParser()
initializeStaticParser
public static void initializeStaticParser(InputStream input)
initializeStaticParser
public static void initializeStaticParser(Reader input)
initializeStaticParser
public static void initializeStaticParser(com.metamata.parse.Scanner scanner)
getNextToken
public com.metamata.parse.Token getNextToken()
getToken
public com.metamata.parse.Token getToken(int index)
getNextStaticParserToken
public static com.metamata.parse.Token getNextStaticParserToken()
getStaticParserToken
public static com.metamata.parse.Token getStaticParserToken(int index)
lookingAhead
public boolean lookingAhead()
staticLookingAhead
public static boolean staticLookingAhead()
lookAheadPassed
public static void lookAheadPassed()
lookAheadFailed
public static void lookAheadFailed()
main
public static void main(String[] args)
throws com.metamata.parse.ParseException
- Throws:
com.metamata.parse.ParseException
getPatternInfo
public PatternInfo getPatternInfo()
setDebugEntry
public void setDebugEntry(boolean newValue)
setDebugFound
public void setDebugFound(boolean newValue)
regularExpression
public com.bea.document.internal.pattern.RegularExpression regularExpression()
throws com.metamata.parse.ParseException
- Throws:
com.metamata.parse.ParseException
branch
public com.bea.document.internal.pattern.Branch branch()
throws com.metamata.parse.ParseException
- Throws:
com.metamata.parse.ParseException
piece
public com.bea.document.internal.pattern.Piece piece()
throws com.metamata.parse.ParseException
- Throws:
com.metamata.parse.ParseException
atom
public com.bea.document.internal.pattern.Atom atom()
throws com.metamata.parse.ParseException
- Throws:
com.metamata.parse.ParseException
normalCharacter
public com.bea.document.internal.pattern.NormalCharacter normalCharacter()
throws com.metamata.parse.ParseException
- Throws:
com.metamata.parse.ParseException
characterClass
public com.bea.document.internal.pattern.CharacterClass characterClass()
throws com.metamata.parse.ParseException
- Throws:
com.metamata.parse.ParseException
characterClassEscape
public com.bea.document.internal.pattern.CharacterClassEscape characterClassEscape()
throws com.metamata.parse.ParseException
- Throws:
com.metamata.parse.ParseException
characterClassExpression
public com.bea.document.internal.pattern.CharacterClassExpression characterClassExpression()
throws com.metamata.parse.ParseException
- Throws:
com.metamata.parse.ParseException
characterGroup
public com.bea.document.internal.pattern.CharacterGroup characterGroup()
throws com.metamata.parse.ParseException
- Throws:
com.metamata.parse.ParseException
positiveCharacterGroup
public com.bea.document.internal.pattern.PositiveCharacterGroup positiveCharacterGroup()
throws com.metamata.parse.ParseException
- Throws:
com.metamata.parse.ParseException
negativeCharacterGroup
public com.bea.document.internal.pattern.NegativeCharacterGroup negativeCharacterGroup()
throws com.metamata.parse.ParseException
- Throws:
com.metamata.parse.ParseException
characterRange
public com.bea.document.internal.pattern.CharacterRange characterRange()
throws com.metamata.parse.ParseException
- Throws:
com.metamata.parse.ParseException
characterRangeEndPoint
public String characterRangeEndPoint()
throws com.metamata.parse.ParseException
- Throws:
com.metamata.parse.ParseException
singleCharacterEscape
public com.bea.document.internal.pattern.SingleCharacterEscape singleCharacterEscape()
throws com.metamata.parse.ParseException
- Throws:
com.metamata.parse.ParseException
multiCharacterEscape
public com.bea.document.internal.pattern.MultiCharacterEscape multiCharacterEscape()
throws com.metamata.parse.ParseException
- Throws:
com.metamata.parse.ParseException
categoryEscape
public com.bea.document.internal.pattern.CategoryEscape categoryEscape()
throws com.metamata.parse.ParseException
- Throws:
com.metamata.parse.ParseException
categoryEscapeProperty
public String categoryEscapeProperty()
throws com.metamata.parse.ParseException
- Throws:
com.metamata.parse.ParseException
quantifier
public com.bea.document.internal.pattern.Quantifier quantifier()
throws com.metamata.parse.ParseException
- Throws:
com.metamata.parse.ParseException
rangeQuantifier
public com.bea.document.internal.pattern.Quantifier rangeQuantifier()
throws com.metamata.parse.ParseException
- Throws:
com.metamata.parse.ParseException