org.overlord.sramp.common.query.xpath.ast
Class PrimaryExpr
java.lang.Object
org.overlord.sramp.common.query.xpath.ast.AbstractXPathNode
org.overlord.sramp.common.query.xpath.ast.PrimaryExpr
public class PrimaryExpr
- extends AbstractXPathNode
Models a primary expression.
PrimaryExpr ::= Literal
| Number
| '$' PropertyQName
- Author:
- eric.wittmann@redhat.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrimaryExpr
public PrimaryExpr()
- Default constructor.
getLiteral
public String getLiteral()
- Returns:
- the literal
setLiteral
public void setLiteral(String literal)
- Parameters:
literal - the literal to set
getNumber
public Number getNumber()
- Returns:
- the number
setNumber
public void setNumber(Number number)
- Parameters:
number - the number to set
getPropertyQName
public QName getPropertyQName()
- Returns:
- the propertyQName
setPropertyQName
public void setPropertyQName(QName propertyQName)
- Parameters:
propertyQName - the propertyQName to set
accept
public void accept(XPathVisitor visitor)
- Description copied from class:
AbstractXPathNode
- Accepts a visitor.
- Specified by:
accept in class AbstractXPathNode
- See Also:
AbstractXPathNode.accept(org.overlord.sramp.common.query.xpath.visitors.XPathVisitor)
Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.