public class PrintVisitor extends OXPathVisitorGenericAdaptor<Object,String>
String
objects that are encoded as AST
trees.Constructor and Description |
---|
PrintVisitor() |
PrintVisitor(boolean followList,
boolean rewriteOXPathShortcutIntoPlainXpath)
Empty constructor
|
Modifier and Type | Method and Description |
---|---|
static String |
encaseXpathString(String input) |
String |
visitNode(ASTBinaryOpExpr node,
Object data)
Constructs the
String representation of the subtree rooted at node |
String |
visitNode(ASTExpression node,
Object data)
Constructs the
String representation of the subtree rooted at node |
String |
visitNode(ASTOXPathActionPath node,
Object data)
Constructs the
String representation of the subtree rooted at node |
String |
visitNode(ASTOXPathExtractionMarker node,
Object data)
Constructs the
String representation of the subtree rooted at node |
String |
visitNode(ASTOXPathKleeneStarPath node,
Object data)
Constructs the
String representation of the subtree rooted at node |
String |
visitNode(ASTOXPathNodeTestOp node,
Object data)
Constructs the
String representation of the subtree rooted at node |
String |
visitNode(ASTRelativeOXPathLocationPath node,
Object data)
Constructs the
String representation of the subtree rooted at node |
String |
visitNode(ASTSimpleOXPathStepPath node,
Object data)
Constructs the
String representation of the subtree rooted at node |
String |
visitNode(ASTXPathFunctionCall node,
Object data)
Constructs the
String representation of the subtree rooted at node |
String |
visitNode(ASTXPathLiteral node,
Object data)
Constructs the
String representation of the subtree rooted at node |
String |
visitNode(ASTXPathNumber node,
Object data)
Constructs the
String representation of the subtree rooted at node |
String |
visitNode(ASTXPathPathExpr node,
Object data)
Constructs the
String representation of the subtree rooted at node |
String |
visitNode(ASTXPathPredicate node,
Object data)
Constructs the
String representation of the subtree rooted at node |
String |
visitNode(ASTXPathPrimaryExpr node,
Object data)
Constructs the
String representation of the subtree rooted at node |
String |
visitNode(ASTXPathUnaryExpr node,
Object data)
Constructs the
String representation of the subtree rooted at node |
String |
visitNode(CustomSimpleNode node,
Object data) |
String |
visitNode(SimpleNode node,
Object data)
Constructs the
String representation of the subtree rooted at node |
public static final String SLASH
public PrintVisitor(boolean followList, boolean rewriteOXPathShortcutIntoPlainXpath)
public PrintVisitor()
public String visitNode(CustomSimpleNode node, Object data) throws OXPathException
visitNode
in class OXPathVisitorGenericAdaptor<Object,String>
OXPathException
public String visitNode(SimpleNode node, Object data) throws OXPathException
String
representation of the subtree rooted at node
visitNode
in class OXPathVisitorGenericAdaptor<Object,String>
node
- the subtree root the visitor printsdata
- not used in this visitorString
representation of the expression subtree as determined by the visitorOXPathException
public String visitNode(ASTExpression node, Object data) throws OXPathException
String
representation of the subtree rooted at node
visitNode
in class OXPathVisitorGenericAdaptor<Object,String>
node
- the subtree root the visitor printsdata
- not used in this visitorString
representation of the expression subtree as determined by the visitorOXPathException
public String visitNode(ASTRelativeOXPathLocationPath node, Object data) throws OXPathException
String
representation of the subtree rooted at node
visitNode
in class OXPathVisitorGenericAdaptor<Object,String>
node
- the subtree root the visitor printsdata
- not used in this visitorString
representation of the expression subtree as determined by the visitorOXPathException
public String visitNode(ASTSimpleOXPathStepPath node, Object data) throws OXPathException
String
representation of the subtree rooted at node
visitNode
in class OXPathVisitorGenericAdaptor<Object,String>
node
- the subtree root the visitor printsdata
- not used in this visitorString
representation of the expression subtree as determined by the visitorOXPathException
public String visitNode(ASTOXPathKleeneStarPath node, Object data) throws OXPathException
String
representation of the subtree rooted at node
visitNode
in class OXPathVisitorGenericAdaptor<Object,String>
node
- the subtree root the visitor printsdata
- not used in this visitorString
representation of the expression subtree as determined by the visitorOXPathException
public String visitNode(ASTOXPathActionPath node, Object data) throws OXPathException
String
representation of the subtree rooted at node
visitNode
in class OXPathVisitorGenericAdaptor<Object,String>
node
- the subtree root the visitor printsdata
- not used in this visitorString
representation of the expression subtree as determined by the visitorOXPathException
public String visitNode(ASTOXPathNodeTestOp node, Object data) throws OXPathException
String
representation of the subtree rooted at node
visitNode
in class OXPathVisitorGenericAdaptor<Object,String>
node
- the subtree root the visitor printsdata
- not used in this visitorString
representation of the expression subtree as determined by the visitorOXPathException
public String visitNode(ASTXPathLiteral node, Object data) throws OXPathException
String
representation of the subtree rooted at node
visitNode
in class OXPathVisitorGenericAdaptor<Object,String>
node
- the subtree root the visitor printsdata
- not used in this visitorString
representation of the expression subtree as determined by the visitorOXPathException
public String visitNode(ASTXPathPredicate node, Object data) throws OXPathException
String
representation of the subtree rooted at node
visitNode
in class OXPathVisitorGenericAdaptor<Object,String>
node
- the subtree root the visitor printsdata
- not used in this visitorString
representation of the expression subtree as determined by the visitorOXPathException
public String visitNode(ASTOXPathExtractionMarker node, Object data) throws OXPathException
String
representation of the subtree rooted at node
visitNode
in class OXPathVisitorGenericAdaptor<Object,String>
node
- the subtree root the visitor printsdata
- not used in this visitorString
representation of the expression subtree as determined by the visitorOXPathException
public String visitNode(ASTBinaryOpExpr node, Object data) throws OXPathException
String
representation of the subtree rooted at node
visitNode
in class OXPathVisitorGenericAdaptor<Object,String>
node
- the subtree root the visitor printsdata
- not used in this visitorString
representation of the expression subtree as determined by the visitorOXPathException
public String visitNode(ASTXPathUnaryExpr node, Object data) throws OXPathException
String
representation of the subtree rooted at node
visitNode
in class OXPathVisitorGenericAdaptor<Object,String>
node
- the subtree root the visitor printsdata
- not used in this visitorString
representation of the expression subtree as determined by the visitorOXPathException
public String visitNode(ASTXPathPrimaryExpr node, Object data) throws OXPathException
String
representation of the subtree rooted at node
visitNode
in class OXPathVisitorGenericAdaptor<Object,String>
node
- the subtree root the visitor printsdata
- not used in this visitorString
representation of the expression subtree as determined by the visitorOXPathException
public String visitNode(ASTXPathNumber node, Object data) throws OXPathException
String
representation of the subtree rooted at node
visitNode
in class OXPathVisitorGenericAdaptor<Object,String>
node
- the subtree root the visitor printsdata
- not used in this visitorString
representation of the expression subtree as determined by the visitorOXPathException
public String visitNode(ASTXPathFunctionCall node, Object data) throws OXPathException
String
representation of the subtree rooted at node
visitNode
in class OXPathVisitorGenericAdaptor<Object,String>
node
- the subtree root the visitor printsdata
- not used in this visitorString
representation of the expression subtree as determined by the visitorOXPathException
public String visitNode(ASTXPathPathExpr node, Object data) throws OXPathException
String
representation of the subtree rooted at node
visitNode
in class OXPathVisitorGenericAdaptor<Object,String>
node
- the subtree root the visitor printsdata
- not used in this visitorString
representation of the expression subtree as determined by the visitorOXPathException
Copyright © 2020 OXPath Team. All rights reserved.