public class OXPathParser extends Object implements OXPathParserTreeConstants, OXPathParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
protected JJTOXPathParserState |
jjtree |
Token |
token
Current token.
|
OXPathParserTokenManager |
token_source
Generated Token Manager.
|
JJTBINARYOPEXPR, JJTEXPRESSION, jjtNodeName, JJTOXPATHACTIONPATH, JJTOXPATHEXTRACTIONMARKER, JJTOXPATHKLEENESTARPATH, JJTOXPATHNODETESTOP, JJTRELATIVEOXPATHLOCATIONPATH, JJTSIMPLEOXPATHSTEPPATH, JJTVOID, JJTXPATHFUNCTIONCALL, JJTXPATHLITERAL, JJTXPATHNUMBER, JJTXPATHPATHEXPR, JJTXPATHPREDICATE, JJTXPATHPRIMARYEXPR, JJTXPATHUNARYEXPR
ACTION, AMPERSAND_URL, ANCESTOR, ANCESTORORSELF, AND, ANY_FIELD, APOSTROPHE_URL, AT, AT_URL, ATTRIBUTE, AXIS, BEGIN_BOUNDED_KLEENE_STAR_PRED, BEGIN_EXTRACT_MARK, BEGIN_KLEENE_STAR, BEGIN_URL_IN_PATH, BEGIN_USER_ACTION, BOOLEAN, CEILING, CHECK, CHILD, CLICK, CLICKWITHCHANGE, CLOSE_BRACKET, CLOSE_CURLY, CLOSE_PARAN, CLOSE_PARAN_URL, COLON, COMMA, COMMA_URL, COMMENT, CONCAT, CONTAINS, CONTAINSFUNC, COUNT, CURRENTURL, DBLCLICK, DEFAULT, DESCENDANT, DESCENDANTORSELF, DESCENDENT_OR_SELF_SHORT, DIGIT, DIGITS, DIV, DOC_BEGIN, DOLLAR, DOLLAR_URL, DOMPROPERTY, DOUBLE_QUOTE_STRING_PATH, END_EXTRACT_MARK, END_URL, END_URL_IN_PATH, ENDLINE, ENTERFRAME, EOF, EQUALS, EQUALS_DEFAULT, EQUALS_URL, EXCLAIMATION_URL, FALSE, FIELD, FLOOR, FOCUS, FOLLOWING, FOLLOWINGSIBLING, GREATER, GREATERTE, HASH, ID, IN_DOUBLE_QUOTE_STRING_PATH, IN_PATH_OP, IN_SINGLE_QUOTE_STRING_PATH, IN_URL, INNERHTML, ISINVISIBLE, ISVISIBLE, JAROWRINKLER, LANG, LAST, LESS, LESSTE, LOCALNAME, LOWER_ALPHA, MATCHES, MINUS, MINUS_FUNC, MINUS_URL, MOD, MOUSEDOWN, MOUSEENTER, MOUSEMOVE, MOUSEOUT, MOUSEOVER, MOUSEUP, MOVETOFRAME, MOVETOHREF, MULTIPLY, NAME, NAMESPACE, NAMESPACEURI, NAMESTARTCHAR, NCNAME, NEGATIVE, NEWLINE, NEXTCLICK, NOBACK, NODE, NORMALIZESPACE, NOT, NOTEQUAL, NOW, NUMBER, NUMBERFUNC, OPEN_BRACKET, OPEN_CURLY, OPEN_OPTIONAL, OPEN_PARAN, OPEN_PARAN_URL, OR, OUTERHTML, PAGECONTENT, PARENT, PARENT_SHORT, PERCENT_URL, PERIOD, PERIOD_OP, PERIOD_URL, PLUS, PLUS_FUNC, PLUS_URL, POSITION, PRECEDING, PRECEDINGSIBLING, PRESSENTER, PROCESSING_INSTRUCTION, PROTOCOL, QUALIFYURL, QUESTION_URL, QUOTE_URL, REPLACE, ROUND, SAVEPAGE, SCREENSHOT, SELECTTEXT, SELF, SINGLE_QUOTE_STRING_PATH, SLASH, SLASH_URL, SPACE, STAR_URL, STARTSWITH, STRING, STRINGJOIN, STYLE, SUBMIT, SUBSTRING, SUBSTRINGAFTER, SUBSTRINGAFTERREVERSE, SUBSTRINGBEFORE, SUBSTRINGBEFOREREVERSE, SUBSTRINGLENGTH, SUBSTRINGREVERSE, SUM, TAB, TEXT, tokenImage, TOXML, TRANSLATE, TRUE, UNCHECK, UNDERSCORE_URL, UNION, UNTIL, UPPER_ALPHA, URIFY, VARIABLE, WAIT, WHEEL, WILDCARD, WORD_TEST
Constructor and Description |
---|
OXPathParser() |
OXPathParser(InputStream stream)
Constructor with InputStream.
|
OXPathParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
OXPathParser(OXPathParserTokenManager tm)
Constructor with generated Token Manager.
|
OXPathParser(Reader stream)
Constructor.
|
protected JJTOXPathParserState jjtree
public OXPathParserTokenManager token_source
public Token token
public Token jj_nt
public OXPathParser()
public OXPathParser(InputStream stream)
public OXPathParser(InputStream stream, String encoding)
public OXPathParser(Reader stream)
public OXPathParser(OXPathParserTokenManager tm)
public static void main(String[] args)
public static Node getJJTree(String inputfile) throws OXPathException
OXPathException
public static Node getJJTreeFromString(String in) throws OXPathException
OXPathException
public static Node getJJTreeFromReader(Reader in) throws OXPathException
OXPathException
public static Node safeGetChild(Node parent, int index) throws OXPathException
OXPathException
public static boolean isSafeChild(Node parent, int index)
public static boolean hasDescendantOrSelfByName(Node parent, String name) throws OXPathException
OXPathException
public static boolean hasActionOnMainPath(Node node)
public static Node getChildByName(Node parent, String name) throws OXPathException
OXPathException
public static int test(String tester)
public final Node Expression() throws ParseException
ParseException
public final String Letter() throws ParseException
ParseException
public final String URLName() throws ParseException
ParseException
public final String SupportedProtocols() throws ParseException
ParseException
public final String HostPort() throws ParseException
ParseException
public final String Host() throws ParseException
ParseException
public final String HostName() throws ParseException
ParseException
public final String URLIAlpha() throws ParseException
ParseException
public final String URLXAlphas() throws ParseException
ParseException
public final String URLXAlpha() throws ParseException
ParseException
public final String URLSafe() throws ParseException
ParseException
public final String URLExtra() throws ParseException
ParseException
public final String URLEscape() throws ParseException
ParseException
public final String HostNumber() throws ParseException
ParseException
public final int Digits() throws ParseException
ParseException
public final int Port() throws ParseException
ParseException
public final String URLPath() throws ParseException
ParseException
public final String URLSegment() throws ParseException
ParseException
public final String URLSearch() throws ParseException
ParseException
public final void OXPathPathSegment() throws ParseException
ParseException
public final void RelativeOXPathLocationPath() throws ParseException
ParseException
public final void SimpleOXPathStepTail(MyLocationPath previous) throws ParseException
ParseException
public final void SimpleOXPathDOSStepPath(MyLocationPath previous) throws ParseException
ParseException
public final void ComplexOXPathStepPath() throws ParseException
ParseException
public final void DescendantOrSelfShort() throws ParseException
ParseException
public final void OXPathKleeneStarPath() throws ParseException
ParseException
public final ArrayList<Integer> OXPathKleeneStarPredicate() throws ParseException
ParseException
public final int OXPathKleeneStarPredicateArg() throws ParseException
ParseException
public final void OXPathActionPath() throws ParseException
ParseException
public final void RelativeOXPathLocationTail() throws ParseException
ParseException
public final void SimpleOXPathStepPath(MyLocationPath previousLocationPath) throws ParseException
ParseException
public final Step FullStep() throws ParseException
ParseException
public final void OXPathPostStepList() throws ParseException
ParseException
public final void OXPathPostStepListOrPredicate() throws ParseException
ParseException
public final Axis OXPathAxisSpecifier() throws ParseException
ParseException
public final Axis XPathForwardAxisName() throws ParseException
ParseException
public final Axis XPathBackwardAxisName() throws ParseException
ParseException
public final Axis OXPathAxisName() throws ParseException
ParseException
public final Axis XPathAbbreviatedAxisSpecifier() throws ParseException
ParseException
public final NodeTest XPathNodeTest() throws ParseException
ParseException
public final NodeTest OXPathNodeTest() throws ParseException
ParseException
public final void OXPathNodeTestOp(MyLocationPath previous) throws ParseException
ParseException
public final Selector OXPathNodeTestOper() throws ParseException
ParseException
public final XPathNameTest XPathNameTest() throws ParseException
ParseException
public final String XPathLiteral(boolean node) throws ParseException
ParseException
public final void XPathPredicate(MyLocationPath previousLocationPath) throws ParseException
ParseException
public final void OXPathOptionalPredicate() throws ParseException
ParseException
public final Action OXPathAction() throws ParseException
ParseException
public final Action OXPathURLAction() throws ParseException
ParseException
public final Action OXPathUserAction() throws ParseException
ParseException
public final void OXPathActionPred(Action a) throws ParseException
ParseException
public final void OXPathActionPredList(Action a) throws ParseException
ParseException
public final long OXPathActionWaitPred() throws ParseException
ParseException
public final void OXPathAbsoluteActionSignal() throws ParseException
ParseException
public final Action GroundedOXPathActionPosition() throws ParseException
ParseException
public final Action GroundedOXPathActionExplicit() throws ParseException
ParseException
public final Action OXPathActionKeyword() throws ParseException
ParseException
public final Action OXPathActionVariable() throws ParseException
ParseException
public final void OXPathExtractionMarker() throws ParseException
ParseException
public final String OXPathExtractionName() throws ParseException
ParseException
public final void OXPathExtractionValue() throws ParseException
ParseException
public final void XPathExpr() throws ParseException
ParseException
public final void XPathOrExpr() throws ParseException
ParseException
public final void XPathAndExpr() throws ParseException
ParseException
public final void XPathEqualityExpr() throws ParseException
ParseException
public final EqualityExprOp XPathEqualityExprOp() throws ParseException
ParseException
public final void XPathRelationalExpr() throws ParseException
ParseException
public final RelationalExprOp XPathRelationalExprOp() throws ParseException
ParseException
public final void XPathAdditiveExpr() throws ParseException
ParseException
public final AdditiveExprOp AdditiveExprOp() throws ParseException
ParseException
public final void XPathMultiplicativeExpr() throws ParseException
ParseException
public final MultiplicativeExprOp MultiplicativeExprOp() throws ParseException
ParseException
public final void XPathUnaryExpr() throws ParseException
ParseException
public final void XPathUnaryExprOp() throws ParseException
ParseException
public final void XPathPrimaryExpr() throws ParseException
ParseException
public final double XPathNumber() throws ParseException
ParseException
public final void XPathFunctionCall() throws ParseException
ParseException
public final XPathFunction XPathFunctionCallName() throws ParseException
ParseException
public final XPathFunction XPathUserFunctionCallName() throws ParseException
ParseException
public final void XPathArgument() throws ParseException
ParseException
public final void XPathUnionExpr() throws ParseException
ParseException
public final void XPathPathExpr() throws ParseException
ParseException
public final void AbbreviatedAbsoluteOXPathLocationPath() throws ParseException
ParseException
public final Step AbbreviatedStep() throws ParseException
ParseException
public final Step AbbreviatedSelfStep() throws ParseException
ParseException
public final Step AbbreviatedParentStep() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(OXPathParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2020 OXPath Team. All rights reserved.