org.overlord.sramp.common.query.xpath.visitors
Class XPathSerializationVisitor

java.lang.Object
  extended by org.overlord.sramp.common.query.xpath.visitors.XPathSerializationVisitor
All Implemented Interfaces:
XPathVisitor

public class XPathSerializationVisitor
extends Object
implements XPathVisitor

Visitor used to serialize a query to a string.

Author:
eric.wittmann@redhat.com

Constructor Summary
XPathSerializationVisitor()
          Default constructor.
 
Method Summary
 String getXPath()
          Returns the x-path created by this visitor.
 void reset()
          Resets the visitor back to an empty state.
 void visit(AndExpr node)
          Visits a specific x-path node.
 void visit(Argument node)
          Visits a specific x-path node.
 void visit(ArtifactSet node)
          Visits a specific x-path node.
 void visit(EqualityExpr node)
          Visits a specific x-path node.
 void visit(Expr node)
          Visits a specific x-path node.
 void visit(ForwardPropertyStep node)
          Visits a specific x-path node.
 void visit(FunctionCall node)
          Visits a specific x-path node.
 void visit(LocationPath node)
          Visits a specific x-path node.
 void visit(OrExpr node)
          Visits a specific x-path node.
 void visit(Predicate node)
          Visits a specific x-path node.
 void visit(PrimaryExpr node)
          Visits a specific x-path node.
 void visit(Query node)
          Visits a specific x-path node.
 void visit(RelationshipPath node)
          Visits a specific x-path node.
 void visit(SubartifactSet node)
          Visits a specific x-path node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathSerializationVisitor

public XPathSerializationVisitor()
Default constructor.

Method Detail

reset

public void reset()
Resets the visitor back to an empty state.


getXPath

public String getXPath()
Returns the x-path created by this visitor.


visit

public void visit(AndExpr node)
Description copied from interface: XPathVisitor
Visits a specific x-path node.

Specified by:
visit in interface XPathVisitor
See Also:
XPathVisitor.visit(org.overlord.sramp.common.query.xpath.ast.AndExpr)

visit

public void visit(Argument node)
Description copied from interface: XPathVisitor
Visits a specific x-path node.

Specified by:
visit in interface XPathVisitor
See Also:
XPathVisitor.visit(org.overlord.sramp.common.query.xpath.ast.Argument)

visit

public void visit(ArtifactSet node)
Description copied from interface: XPathVisitor
Visits a specific x-path node.

Specified by:
visit in interface XPathVisitor
See Also:
XPathVisitor.visit(org.overlord.sramp.common.query.xpath.ast.ArtifactSet)

visit

public void visit(EqualityExpr node)
Description copied from interface: XPathVisitor
Visits a specific x-path node.

Specified by:
visit in interface XPathVisitor
See Also:
XPathVisitor.visit(org.overlord.sramp.common.query.xpath.ast.EqualityExpr)

visit

public void visit(Expr node)
Description copied from interface: XPathVisitor
Visits a specific x-path node.

Specified by:
visit in interface XPathVisitor
See Also:
XPathVisitor.visit(org.overlord.sramp.common.query.xpath.ast.Expr)

visit

public void visit(ForwardPropertyStep node)
Description copied from interface: XPathVisitor
Visits a specific x-path node.

Specified by:
visit in interface XPathVisitor
See Also:
XPathVisitor.visit(org.overlord.sramp.common.query.xpath.ast.ForwardPropertyStep)

visit

public void visit(FunctionCall node)
Description copied from interface: XPathVisitor
Visits a specific x-path node.

Specified by:
visit in interface XPathVisitor
See Also:
XPathVisitor.visit(org.overlord.sramp.common.query.xpath.ast.FunctionCall)

visit

public void visit(LocationPath node)
Description copied from interface: XPathVisitor
Visits a specific x-path node.

Specified by:
visit in interface XPathVisitor
See Also:
XPathVisitor.visit(org.overlord.sramp.common.query.xpath.ast.LocationPath)

visit

public void visit(OrExpr node)
Description copied from interface: XPathVisitor
Visits a specific x-path node.

Specified by:
visit in interface XPathVisitor
See Also:
XPathVisitor.visit(org.overlord.sramp.common.query.xpath.ast.OrExpr)

visit

public void visit(Predicate node)
Description copied from interface: XPathVisitor
Visits a specific x-path node.

Specified by:
visit in interface XPathVisitor
See Also:
XPathVisitor.visit(org.overlord.sramp.common.query.xpath.ast.Predicate)

visit

public void visit(PrimaryExpr node)
Description copied from interface: XPathVisitor
Visits a specific x-path node.

Specified by:
visit in interface XPathVisitor
See Also:
XPathVisitor.visit(org.overlord.sramp.common.query.xpath.ast.PrimaryExpr)

visit

public void visit(Query node)
Description copied from interface: XPathVisitor
Visits a specific x-path node.

Specified by:
visit in interface XPathVisitor
See Also:
XPathVisitor.visit(org.overlord.sramp.common.query.xpath.ast.Query)

visit

public void visit(RelationshipPath node)
Description copied from interface: XPathVisitor
Visits a specific x-path node.

Specified by:
visit in interface XPathVisitor
See Also:
XPathVisitor.visit(org.overlord.sramp.common.query.xpath.ast.RelationshipPath)

visit

public void visit(SubartifactSet node)
Description copied from interface: XPathVisitor
Visits a specific x-path node.

Specified by:
visit in interface XPathVisitor
See Also:
XPathVisitor.visit(org.overlord.sramp.common.query.xpath.ast.SubartifactSet)


Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.