io.sarl.lang.core.annotation
Annotation SarlElementType
All Superinterfaces:
java.lang.annotation.Annotation
@java.lang.annotation.Target(TYPE)
@java.lang.annotation.Retention(RUNTIME)
abstract annotation SarlElementType
implements java.lang.annotation.Annotation
Annotation for marking a JvmElement with the specific type of SARL element.

This annotation is attached to the JvmElements that represent SARL specific type declarations, e.g. agent, behavior, etc.

This annotation is usually used for simulating quickly the "A instanceof B", wheree A is a JvmElement (not an Xbase element), and B is a Xbase type.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
core
Since:
0.6
Action Summary
Modifier and type Action and description
abstract int value
Replies the SARL type.
Action Details
value
def value : int
Replies the SARL type.

The replies value is the ID of the ECore type, e.g. SarlPackage::SARL_AGENT and SarlPackage::SARL_BEHAVIOR.
Returns:
the SARL element type