Class MethodAccess
- java.lang.Object
- 
- jadex.rules.parser.conditions.javagrammar.Suffix
- 
- jadex.rules.parser.conditions.javagrammar.MethodAccess
 
 
- 
 public class MethodAccess extends Suffix Invoke a method on an object.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringnameThe name of the method.protected Expression[]parametervaluesThe parameter value expressions.
 - 
Constructor SummaryConstructors Constructor Description MethodAccess(java.lang.String name, Expression[] parametervalues)Create a new method access.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsVariable(Variable var)Test if a variable is contained in the suffix.booleanequals(java.lang.Object o)Test if this method access is equal to some object.java.lang.StringgetName()Get the name of the method.Expression[]getParameterValues()Get the parameter values expressions (if any).inthashCode()Get the hash code of this unary expression.java.lang.StringtoString()Get a string representation of this method access.
 
- 
- 
- 
Field Detail- 
nameprotected java.lang.String name The name of the method.
 - 
parametervaluesprotected Expression[] parametervalues The parameter value expressions.
 
- 
 - 
Constructor Detail- 
MethodAccesspublic MethodAccess(java.lang.String name, Expression[] parametervalues)Create a new method access.- Parameters:
- name- The method name.
- parametervalues- Expressions for the parameter values (if any).
 
 
- 
 - 
Method Detail- 
containsVariablepublic boolean containsVariable(Variable var) Test if a variable is contained in the suffix.- Specified by:
- containsVariablein class- Suffix
- Parameters:
- var- The variable.
- Returns:
- True, when the variable is contained.
 
 - 
getNamepublic java.lang.String getName() Get the name of the method.
 - 
getParameterValuespublic Expression[] getParameterValues() Get the parameter values expressions (if any).
 - 
toStringpublic java.lang.String toString() Get a string representation of this method access.- Overrides:
- toStringin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object o) Test if this method access is equal to some object.- Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() Get the hash code of this unary expression.- Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-