public interface Variable extends JsonSerializable, Resolver
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
containingMethodName()
Returns the name of the method within which this variable is contained, i.e.
|
java.lang.String |
name()
Returns the name of the Variable as declared in the Java code.
|
void |
setContainingMethodName(java.lang.String name)
Set the method name within which the variable is contained.
|
void |
setValue(Value value)
Sets the value to which the variable points.
|
java.lang.String |
typeName()
Returns the declared type of the variable in code.
|
Value |
value()
Returns the value to which the variable points.
|
fromJson, toJson
canResolve, getResolvableNames, resolve
java.lang.String name()
java.lang.String typeName()
Value value()
void setValue(Value value)
value
- The value to which the variable points.java.util.Optional<java.lang.String> containingMethodName()
setContainingMethodName(String)
, an empty Optional is
returned.void setContainingMethodName(java.lang.String name)
name
- The method name within which the variable is contained, or null.