Package org.drools.drl.ast.descr
Class FieldConstraintDescr
java.lang.Object
org.drools.drl.ast.descr.BaseDescr
org.drools.drl.ast.descr.FieldConstraintDescr
- All Implemented Interfaces:
Externalizable,Serializable,Namespaceable
This represents a literal node in the rule language. This is
a constraint on a single field of a pattern.
The "text" contains the content, which may also be an enumeration.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRestriction(RestrictionDescr restriction) voidvoidsetResource(Resource resource) toString()voidMethods inherited from class org.drools.drl.ast.descr.BaseDescr
accept, copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, isNegated, negate, positionAsString, replaceVariable, setEndCharacter, setEndLocation, setLocation, setNamespace, setStartCharacter, setText
-
Constructor Details
-
FieldConstraintDescr
public FieldConstraintDescr() -
FieldConstraintDescr
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classBaseDescr- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classBaseDescr- Throws:
IOException
-
getFieldName
-
addRestriction
-
getRestrictions
-
getRestriction
-
setResource
- Overrides:
setResourcein classBaseDescr
-
toString
-