Package org.drools.drl.parser.impl
Class Operator
java.lang.Object
org.drools.drl.parser.impl.Operator
- All Implemented Interfaces:
Externalizable,Serializable,Operator
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OperatoraddOperatorToRegistry(String operatorId, boolean isNegated) Creates a new Operator instance for the given parameters, adds it to the registry and return itstatic OperatordetermineOperator(String operatorId, boolean isNegated) Returns the operator instance for the given parametersbooleanstatic Collection<Operator>inthashCode()booleanvoidtoString()void
-
Constructor Details
-
Operator
public Operator()
-
-
Method Details
-
addOperatorToRegistry
Creates a new Operator instance for the given parameters, adds it to the registry and return it- Parameters:
operatorId- the identification symbol of the operatorisNegated- true if it is negated- Returns:
- the newly created operator
-
getAllOperators
-
determineOperator
Returns the operator instance for the given parameters- Parameters:
operatorId- the identification symbol of the operatorisNegated- true if it is negated- Returns:
- the operator in case it exists
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
toString
-
getOperatorString
- Specified by:
getOperatorStringin interfaceOperator
-
isNegated
public boolean isNegated() -
hashCode
public int hashCode() -
equals
-