Class ExistentialDeclaration
- java.lang.Object
- 
- jadex.rules.parser.conditions.javagrammar.Expression
- 
- jadex.rules.parser.conditions.javagrammar.ExistentialDeclaration
 
 
- 
 public class ExistentialDeclaration extends Expression Demand the existence of an object and bind an instance to a variable.
- 
- 
Field SummaryFields Modifier and Type Field Description protected OAVObjectTypetypeThe object type.protected VariablevariableThe variable.
 - 
Constructor SummaryConstructors Constructor Description ExistentialDeclaration(OAVObjectType type, Variable variable)Create a new existential declaration.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsVariable(Variable var)Test if a variable is contained in the expression.booleanequals(java.lang.Object o)Test if this object is equal to some object.OAVObjectTypegetType()Get the object type.VariablegetVariable()Get the variable.inthashCode()Get the hash code.java.lang.StringtoString()Get a string representation of this existential declaration.
 
- 
- 
- 
Field Detail- 
typeprotected OAVObjectType type The object type.
 - 
variableprotected Variable variable The variable.
 
- 
 - 
Constructor Detail- 
ExistentialDeclarationpublic ExistentialDeclaration(OAVObjectType type, Variable variable) Create a new existential declaration.- Parameters:
- type- The object type.
- variable- The variable.
 
 
- 
 - 
Method Detail- 
containsVariablepublic boolean containsVariable(Variable var) Test if a variable is contained in the expression.- Specified by:
- containsVariablein class- Expression
- Parameters:
- var- The variable.
- Returns:
- True, when the variable is contained.
 
 - 
getVariablepublic Variable getVariable() Get the variable.
 - 
getTypepublic OAVObjectType getType() Get the object type.
 - 
toStringpublic java.lang.String toString() Get a string representation of this existential declaration.- Overrides:
- toStringin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object o) Test if this object is equal to some object.- Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() Get the hash code.- Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-