Class StaticMethodAccess
- java.lang.Object
-
- jadex.rules.parser.conditions.javagrammar.Expression
-
- jadex.rules.parser.conditions.javagrammar.StaticMethodAccess
-
public class StaticMethodAccess extends Expression
Invoke a static method.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringnameThe name of the method.protected Expression[]parametervaluesThe parameter value expressions.protected OAVJavaTypetypeThe object type.
-
Constructor Summary
Constructors Constructor Description StaticMethodAccess(OAVJavaType type, java.lang.String name, Expression[] parametervalues)Create a new method access.
-
Method Summary
All 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 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).OAVJavaTypegetType()Get the object type.inthashCode()Get the hash code of this unary expression.java.lang.StringtoString()Get a string representation of this method access.
-
-
-
Field Detail
-
type
protected OAVJavaType type
The object type.
-
name
protected java.lang.String name
The name of the method.
-
parametervalues
protected Expression[] parametervalues
The parameter value expressions.
-
-
Constructor Detail
-
StaticMethodAccess
public StaticMethodAccess(OAVJavaType type, java.lang.String name, Expression[] parametervalues)
Create a new method access.- Parameters:
type- The object type.name- The method name.parametervalues- Expressions for the parameter values (if any).
-
-
Method Detail
-
containsVariable
public boolean containsVariable(Variable var)
Test if a variable is contained in the expression.- Specified by:
containsVariablein classExpression- Parameters:
var- The variable.- Returns:
- True, when the variable is contained.
-
getType
public OAVJavaType getType()
Get the object type.
-
getName
public java.lang.String getName()
Get the name of the method.
-
getParameterValues
public Expression[] getParameterValues()
Get the parameter values expressions (if any).
-
toString
public java.lang.String toString()
Get a string representation of this method access.- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
Test if this method access is equal to some object.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Get the hash code of this unary expression.- Overrides:
hashCodein classjava.lang.Object
-
-