public abstract class Variable extends Object
Modifier | Constructor and Description |
---|---|
|
Variable(String name,
String type)
Creates new instance of
Variable . |
protected |
Variable(String name,
String type,
byte flags,
Value value) |
|
Variable(String name,
String type,
Value value)
Creates new instance of
Variable . |
protected |
Variable(SVariable source,
ModelInstance modelInstance) |
Modifier and Type | Method and Description |
---|---|
protected Type |
compileType(Context context,
ModelProvider modelProvider) |
void |
convertToDirectReferences()
Converts the value to a direct reference.
|
protected void |
fillSerializable(SVariable s,
SModelInstance smi,
MarshallerConfig config) |
abstract Type |
getCachedCompiledType()
Returns the cached compiled type, if it is stored.
|
abstract Type |
getCompiledType(Context context,
ModelProvider modelProvider)
Returns the compiled type.
|
String |
getElementId(Context context,
ModelProvider modelProvider)
Returns the variable element id, if this is a modeled variable.
|
protected byte |
getFlags() |
protected boolean |
getFlagValue(byte mask) |
String |
getName()
Returns variable name.
|
String |
getType()
Returns the type.
|
Value |
getValue()
Returns variable value.
|
boolean |
isExpressionLocal()
Returns true is the variable is defined in an expression.
|
abstract boolean |
isInitialValueChanged()
Returns true if initial value was changed.
|
boolean |
isInternal()
Returns true if this variable is internal.
|
abstract boolean |
isReadOnly()
Returns true if variable is read only.
|
protected void |
refreshDirectReferences(ModelInstance modelInstance) |
protected void |
setFlagValue(boolean b,
byte mask) |
void |
setInternal(boolean internal)
Sets the internal flag of this variable.
|
void |
setIsExpressionLocal(boolean isExpressionLocal)
Sets the flag that the the variable is defined in an expression
|
abstract SVariable |
toSerializable(SModelInstance smi,
MarshallerConfig config)
Creates a serializable object.
|
String |
toString() |
protected Value value
public Variable(String name, String type)
Variable
.name
- type
- NullPointerException
- if context
or @{code name} is nullpublic Variable(String name, String type, Value value)
Variable
.name
- type
- value
- NullPointerException
- if context
or name
or value
protected Variable(SVariable source, ModelInstance modelInstance)
public abstract SVariable toSerializable(SModelInstance smi, MarshallerConfig config)
smi
- config
- protected void fillSerializable(SVariable s, SModelInstance smi, MarshallerConfig config)
public String getName()
public String getType()
protected byte getFlags()
public abstract Type getCompiledType(Context context, ModelProvider modelProvider)
context
- modelProvider
- public abstract Type getCachedCompiledType()
null
protected Type compileType(Context context, ModelProvider modelProvider)
public Value getValue()
public String getElementId(Context context, ModelProvider modelProvider)
context
- modelProvider
- null
public boolean isInternal()
public void setInternal(boolean internal)
internal
- public boolean isExpressionLocal()
public void setIsExpressionLocal(boolean isExpressionLocal)
isExpressionLocal
- public abstract boolean isInitialValueChanged()
public abstract boolean isReadOnly()
protected final boolean getFlagValue(byte mask)
protected final void setFlagValue(boolean b, byte mask)
public void convertToDirectReferences()
protected void refreshDirectReferences(ModelInstance modelInstance)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.