| Modifier and type | Field and description |
|---|---|
| public static val java.lang.Class<T> | IMMUTABLE_TYPE_ANNOTATIONS
List of the annotations that are known to mark the types as immutable. |
| public static val java.lang.Class<T> | IMMUTABLE_TYPES
List of the well-known immutable types from Java, that are also considered as immutable in SARL. |
| Modifier and type | Action and description |
|---|---|
| protected boolean | hasImmutableAnnotation(LightweightTypeReference)
Replies if the given type is marked with an annotation that makes it immutable. |
| protected boolean | isAlwaysImmutable(LightweightTypeReference)
Replies if the given type is always assumed to be immutable. |
| protected boolean | isAlwaysMutable(LightweightTypeReference)
Replies if the given type is always assumed to be mutable. |
| boolean | isImmutable(LightweightTypeReference) |
| protected boolean | isRegisteredImmutableType(LightweightTypeReference)
Replies if the given type is known as an immutable type. |
| void | setAnnotationLookup(AnnotationLookup)
Change the JVM annotation finder that is used by this immutable type validator. |
public static val IMMUTABLE_TYPE_ANNOTATIONS : java.lang.Class<T>
public static val IMMUTABLE_TYPES : java.lang.Class<T>
new
protected def hasImmutableAnnotation(LightweightTypeReference) : boolean
protected def isAlwaysImmutable(LightweightTypeReference) : boolean
protected def isAlwaysMutable(LightweightTypeReference) : boolean
def isImmutable(LightweightTypeReference) : boolean
protected def isRegisteredImmutableType(LightweightTypeReference) : boolean
def setAnnotationLookup(AnnotationLookup)