Class VariableImpl
java.lang.Object
fr.inria.rules.integraal.model.logicalElements.impl.VariableImpl
- All Implemented Interfaces:
fr.inria.rules.dlgpemodel.api.elems.ITerm, fr.inria.rules.dlgpemodel.api.elems.IVariable, fr.inria.rules.dlgpemodel.api.sentences.IPrintable, Standardizable, Substitutable<Term>, Term, Variable
- Direct Known Subclasses:
FreshVariableImpl
-
Field Summary
Fields inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
WRITER -
Constructor Summary
ConstructorsConstructorDescriptionVariableImpl(String label) Constructor using a labelVariableImpl(String label, boolean anonymous) Creates a variable with an explicit anonymity flag. -
Method Summary
Modifier and TypeMethodDescriptionapplySubstitution(Substitution substitution, boolean evaluate) Applies a substitution to this term.booleangetName()inthashCode()booleanlabel()Returns the textual representation of this term.toString()Methods inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
toDLGPEMethods inherited from interface Standardizable
toStandardFormMethods inherited from interface Term
applySubstitution, isConstant, isEvaluableFunction, isFrozen, isFunctionalTerm, isGround, isLiteralMethods inherited from interface Variable
isVariable, toStandardForm
-
Constructor Details
-
VariableImpl
Constructor using a label- Parameters:
label- string representation of the variable
-
VariableImpl
Creates a variable with an explicit anonymity flag.- Parameters:
label- the variable labelanonymous- whether this variable should be considered anonymous
-
-
Method Details
-
label
-
hashCode
-
equals
-
toString
-
applySubstitution
Description copied from interface:TermApplies a substitution to this term.- Specified by:
applySubstitutionin interfaceSubstitutable<Term>- Specified by:
applySubstitutionin interfaceTerm- Specified by:
applySubstitutionin interfaceVariable- Parameters:
substitution- the substitution to applyevaluate- whether nested evaluable functions should be evaluated- Returns:
- the substituted term
-
getName
- Specified by:
getNamein interfacefr.inria.rules.dlgpemodel.api.elems.IVariable
-
isAnonymous
public boolean isAnonymous()- Specified by:
isAnonymousin interfacefr.inria.rules.dlgpemodel.api.elems.IVariable
-