Schnittstelle IGlobalVariable
public interface IGlobalVariable
A global variable declared in an evaluation context.
IEvaluationContext.newVariable
can be used to obtain an instance.
- Siehe auch:
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the initializer of this global variable.getName()
Returns the name of this global variable.Returns the fully qualified name of the type of this global variable, or its simple representation if it is a primitive type (int
,boolean
, etc.).
-
Methodendetails
-
getInitializer
String getInitializer()Returns the initializer of this global variable. The syntax for an initializer corresponds to VariableInitializer (JLS2 8.3).- Gibt zurück:
- the initializer expression, or
null
if this global does not have an initializer
-
getName
String getName()Returns the name of this global variable.- Gibt zurück:
- the name of the global variable
-
getTypeName
String getTypeName()Returns the fully qualified name of the type of this global variable, or its simple representation if it is a primitive type (int
,boolean
, etc.).The syntax for a type name corresponds to Type in Field Declaration (JLS2 8.3).
- Gibt zurück:
- the type name
-