Class SPathParser
- java.lang.Object
-
- org.apache.taglibs.standard.extra.spath.SPathParser
-
- All Implemented Interfaces:
SPathParserConstants
public class SPathParser extends Object implements SPathParserConstants
-
-
Field Summary
Fields Modifier and Type Field Description Tokenjj_ntbooleanlookingAheadTokentokenSPathParserTokenManagertoken_source-
Fields inherited from interface org.apache.taglibs.standard.extra.spath.SPathParserConstants
AT, COLON, COMBINING_CHAR, DASH, DEFAULT, DIGIT, DOT, END_BRACKET, EOF, EQUALS, EXTENDER, LETTER, LITERAL, NCNAME, NCNAMECHAR, NSWILDCARD, QNAME, SLASH, STAR, START_BRACKET, tokenImage, UNDERSCORE
-
-
Constructor Summary
Constructors Constructor Description SPathParser(InputStream stream)SPathParser(Reader stream)SPathParser(String x)SPathParser(SPathParserTokenManager tm)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AbsolutePathabsolutePath()PredicateattributePredicate()voiddisable_tracing()voidenable_tracing()Pathexpression()ParseExceptiongenerateParseException()TokengetNextToken()TokengetToken(int index)static voidmain(String[] args)Simple command-line parser interface, primarily for testing.StringnameTest()Predicatepredicate()voidReInit(InputStream stream)voidReInit(Reader stream)voidReInit(SPathParserTokenManager tm)RelativePathrelativePath()Stepstep()
-
-
-
Field Detail
-
token_source
public SPathParserTokenManager token_source
-
token
public Token token
-
jj_nt
public Token jj_nt
-
lookingAhead
public boolean lookingAhead
-
-
Constructor Detail
-
SPathParser
public SPathParser(String x)
-
SPathParser
public SPathParser(InputStream stream)
-
SPathParser
public SPathParser(Reader stream)
-
SPathParser
public SPathParser(SPathParserTokenManager tm)
-
-
Method Detail
-
main
public static void main(String[] args) throws ParseException
Simple command-line parser interface, primarily for testing.- Throws:
ParseException
-
expression
public final Path expression() throws ParseException
- Throws:
ParseException
-
absolutePath
public final AbsolutePath absolutePath() throws ParseException
- Throws:
ParseException
-
relativePath
public final RelativePath relativePath() throws ParseException
- Throws:
ParseException
-
step
public final Step step() throws ParseException
- Throws:
ParseException
-
nameTest
public final String nameTest() throws ParseException
- Throws:
ParseException
-
predicate
public final Predicate predicate() throws ParseException
- Throws:
ParseException
-
attributePredicate
public final Predicate attributePredicate() throws ParseException
- Throws:
ParseException
-
ReInit
public void ReInit(InputStream stream)
-
ReInit
public void ReInit(Reader stream)
-
ReInit
public void ReInit(SPathParserTokenManager tm)
-
getNextToken
public final Token getNextToken()
-
getToken
public final Token getToken(int index)
-
generateParseException
public final ParseException generateParseException()
-
enable_tracing
public final void enable_tracing()
-
disable_tracing
public final void disable_tracing()
-
-