io.sarl.lang.sarl.actionprototype
Class ActionParameterTypes
All Superinterfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<T>, java.lang.Iterable<T>, java.util.Collection<E>, java.util.List<E>, java.util.RandomAccess, org.eclipse.emf.common.util.EList<E>
class ActionParameterTypes
extends java.lang.Object
implements java.lang.Comparable<T>
A definition of the types of the formal parameters of an action.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Constructor Summary
Constructor and description
new(String)
Parse the given string and create a signature.
new(boolean,int)
Constructor.
Action Summary
Modifier and type Action and description
ActionParameterTypes clone
int compareTo(ActionParameterTypes)
boolean equals(Object)
int hashCode
boolean isVarArg
Replies if this signature has a variatic parameter.
boolean isVoid
Replies if this signature is for Void.
ActionPrototype toActionPrototype(String)
Replies the action prototype associate to this list of parameters.
ActionPrototype toRawActionPrototype(String)
Replies the action prototype associate to this list of parameters with the type parameters.
java.lang.String toString
java.lang.String toString(boolean)
Replies the string representation of this list of parameters.
Constructor Details
new(String)
new(String)
Parse the given string and create a signature.

The format of the text is the same as the one replied by toString().
Parameters:
text - the text that contains the signature to parse.
new(boolean,int)
new(boolean,int)
Constructor.
Parameters:
isVarArgs - indicates if this signature has the varargs flag.
initialCapacity - initial capacity of the array.
Action Details
clone
def clone : ActionParameterTypes
compareTo(ActionParameterTypes)
def compareTo(ActionParameterTypes) : int
equals(Object)
def equals(Object) : boolean
hashCode
def hashCode : int
isVarArg
def isVarArg : boolean
Replies if this signature has a variatic parameter.
Returns:
true if the last element is variatic.
isVoid
def isVoid : boolean
Replies if this signature is for Void.
Returns:
true if the signature is for Void.
toActionPrototype(String)
def toActionPrototype(String) : ActionPrototype
Replies the action prototype associate to this list of parameters.
Parameters:
actionName - the id of the action.
Returns:
the action key.
toRawActionPrototype(String)
def toRawActionPrototype(String) : ActionPrototype
Replies the action prototype associate to this list of parameters with the type parameters.
Parameters:
actionName - the id of the action.
Returns:
the action key without the type parameters.
toString
def toString : java.lang.String
toString(boolean)
def toString(boolean) : java.lang.String
Replies the string representation of this list of parameters.
Parameters:
isRaw - indicates if the output should be raw (without type parameters) or not (with type parameters).
Returns:
the string representation of the parameter list.