org.drools.lang.descr
Class ExprConstraintDescr
java.lang.Object
org.drools.lang.descr.BaseDescr
org.drools.lang.descr.ExprConstraintDescr
- All Implemented Interfaces:
- Externalizable, Serializable
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 |
getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getStartCharacter, getText, readExternal, setEndCharacter, setEndLocation, setLocation, 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-2013 JBoss Inc.. All Rights Reserved.