org.drools.lang.descr
Class ExprConstraintDescr
java.lang.Object
org.drools.lang.descr.BaseDescr
org.drools.lang.descr.ExprConstraintDescr
- All Implemented Interfaces:
- Externalizable, Serializable, Namespaceable
public class ExprConstraintDescr
- extends BaseDescr
This represents a constraint in a pattern defined by an arbitrary
expression. The constraint can be any valid java/mvel expression.
- See Also:
- Serialized Form
Methods inherited from class org.drools.lang.descr.BaseDescr |
copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, positionAsString, readExternal, setEndCharacter, setEndLocation, setLocation, setNamespace, setResource, setStartCharacter, setText, writeExternal |
ExprConstraintDescr
public ExprConstraintDescr()
ExprConstraintDescr
public ExprConstraintDescr(String expr)
setExpression
public void setExpression(String expr)
getExpression
public String getExpression()
getType
public ExprConstraintDescr.Type getType()
- Returns:
- the type
setType
public void setType(ExprConstraintDescr.Type type)
- 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
public String toString()
- Overrides:
toString
in class Object
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.