Package org.drools.drl.ast.descr
Class ExprConstraintDescr
java.lang.Object
org.drools.drl.ast.descr.BaseDescr
org.drools.drl.ast.descr.ExprConstraintDescr
- All Implemented Interfaces:
Externalizable,Serializable,ExpressionDescr,Namespaceable
This represents a constraint in a pattern defined by an arbitrary
expression. The constraint can be any valid java/mvel expression.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetType()negate()voidsetExpression(String expr) voidsetPosition(int position) voidtoString()Methods inherited from class org.drools.drl.ast.descr.BaseDescr
accept, copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, isNegated, positionAsString, readExternal, replaceVariable, setEndCharacter, setEndLocation, setLocation, setNamespace, setResource, setStartCharacter, setText, writeExternal
-
Constructor Details
-
ExprConstraintDescr
public ExprConstraintDescr() -
ExprConstraintDescr
-
-
Method Details
-
setExpression
-
getExpression
- Specified by:
getExpressionin interfaceExpressionDescr
-
getType
- Returns:
- the type
-
setType
- Parameters:
type- the type to set
-
getPosition
public int getPosition()- Returns:
- the position
-
setPosition
public void setPosition(int position) - Parameters:
position- the position to set
-
toString
-
negate
-