io.sarl.lang.sarl.actionprototype
Class ActionPrototype
All Superinterfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<T>
class ActionPrototype
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable, java.lang.Comparable<T>
Definition of the prototype of an action (name+parameters).
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Property Summary
Modifier and type Property and description
java.lang.String actionName
Replies the name of the action for this prototype.
ActionParameterTypes parametersTypes
Replies the types of the formal parameters.
Constructor Summary
Constructor and description
new(String,ActionParameterTypes,boolean)
Constructor.
Action Summary
Modifier and type Action and description
ActionPrototype clone
int compareTo(ActionPrototype)
boolean equals(Object)
java.lang.String getActionName
Replies the name of the action for this prototype.
ActionParameterTypes getParametersTypes
Replies the types of the formal parameters.
int hashCode
java.lang.String toActionId
Replies the string that permits to identify the action prototype according to the Java variable name.
java.lang.String toString
Property Details
actionName
val actionName : java.lang.String
Replies the name of the action for this prototype.

This property is an alias for the action: getActionName

Returns:
the name.
parametersTypes
val parametersTypes : ActionParameterTypes
Replies the types of the formal parameters.

This property is an alias for the action: getParametersTypes

Returns:
the name.
Constructor Details
new(String,ActionParameterTypes,boolean)
new(String,ActionParameterTypes,boolean)
Constructor.
Parameters:
function - name of the function for which this signature is created.
signature - description of the parameters of the function.
isRaw - indicates if the prototype is raw (without type parameter) or not (with type parameters).
Action Details
clone
def clone : ActionPrototype
compareTo(ActionPrototype)
def compareTo(ActionPrototype) : int
equals(Object)
def equals(Object) : boolean
getActionName
def getActionName : java.lang.String
Replies the name of the action for this prototype.
Returns:
the name.
getParametersTypes
def getParametersTypes : ActionParameterTypes
Replies the types of the formal parameters.
Returns:
the name.
hashCode
def hashCode : int
toActionId
def toActionId : java.lang.String
Replies the string that permits to identify the action prototype according to the Java variable name.
Returns:
the identifier.
toString
def toString : java.lang.String