org.openrdf.query.algebra
Class Regex

java.lang.Object
  extended by org.openrdf.query.algebra.QueryModelNodeBase
      extended by org.openrdf.query.algebra.BinaryValueOperator
          extended by org.openrdf.query.algebra.Regex
All Implemented Interfaces:
Cloneable, QueryModelNode, ValueExpr

public class Regex
extends BinaryValueOperator

Compares the string representation of a value expression to a pattern.


Field Summary
 
Fields inherited from class org.openrdf.query.algebra.BinaryValueOperator
leftArg, rightArg
 
Constructor Summary
Regex()
           
Regex(ValueExpr expr, ValueExpr pattern, ValueExpr flags)
           
 
Method Summary
 Regex clone()
          Returns a (deep) clone of this query model node.
 ValueExpr getArg()
           
 ValueExpr getFlagsArg()
           
 ValueExpr getPatternArg()
           
 void setArg(ValueExpr leftArg)
           
 void setFlagsArg(ValueExpr flags)
           
 void setPatternArg(ValueExpr rightArg)
           
<X extends Exception>
void
visit(QueryModelVisitor<X> visitor)
          Visits this node.
<X extends Exception>
void
visitChildren(QueryModelVisitor<X> visitor)
          Dummy implementation of QueryModelNode.visitChildren(org.openrdf.query.algebra.QueryModelVisitor) that does nothing.
 
Methods inherited from class org.openrdf.query.algebra.BinaryValueOperator
getLeftArg, getRightArg, replaceChildNode, setLeftArg, setRightArg
 
Methods inherited from class org.openrdf.query.algebra.QueryModelNodeBase
getParentNode, getSignature, replaceWith, setParentNode, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openrdf.query.algebra.QueryModelNode
getParentNode, getSignature, replaceWith, setParentNode, toString
 

Constructor Detail

Regex

public Regex()

Regex

public Regex(ValueExpr expr,
             ValueExpr pattern,
             ValueExpr flags)
Method Detail

getArg

public ValueExpr getArg()

setArg

public void setArg(ValueExpr leftArg)

getPatternArg

public ValueExpr getPatternArg()

setPatternArg

public void setPatternArg(ValueExpr rightArg)

setFlagsArg

public void setFlagsArg(ValueExpr flags)

getFlagsArg

public ValueExpr getFlagsArg()

visit

public <X extends Exception> void visit(QueryModelVisitor<X> visitor)
           throws X extends Exception
Description copied from interface: QueryModelNode
Visits this node. The node reports itself to the visitor with the proper runtime type.

Throws:
X extends Exception

visitChildren

public <X extends Exception> void visitChildren(QueryModelVisitor<X> visitor)
                   throws X extends Exception
Description copied from class: QueryModelNodeBase
Dummy implementation of QueryModelNode.visitChildren(org.openrdf.query.algebra.QueryModelVisitor) that does nothing. Subclasses should override this method when they have child nodes.

Specified by:
visitChildren in interface QueryModelNode
Overrides:
visitChildren in class BinaryValueOperator
Throws:
X extends Exception

clone

public Regex clone()
Description copied from interface: QueryModelNode
Returns a (deep) clone of this query model node. This method recursively clones the entire node tree, starting from this nodes.

Specified by:
clone in interface QueryModelNode
Specified by:
clone in interface ValueExpr
Overrides:
clone in class BinaryValueOperator
Returns:
A deep clone of this query model node.


Copyright © 2001-2009 Aduna. All Rights Reserved.