Package org.qdl_lang.variables
Class QDLVariable
- java.lang.Object
-
- org.qdl_lang.variables.QDLVariable
-
- All Implemented Interfaces:
Serializable
public class QDLVariable extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
SCOPE_DEFAULT
static int
SCOPE_EXTRINSIC
static int
SCOPE_INTRINSIC
static int
TYPE_DYNAMIC
Dynamic typing is the default for QDL.static int
TYPE_MANIFEST
Manifest typing means that when a variable is first defined, it must have that type from that point forwardstatic int
TYPE_STRICT
Strict typing means that ever variable must be explicitly typed either at or before it is defined.
-
Constructor Summary
Constructors Constructor Description QDLVariable(Object qdlValue)
QDLVariable(QDLValue qdlValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QDLValue
getQDLValue()
int
getScope()
int
getVariableType()
boolean
hasValue()
void
setQDLValue(QDLValue qdlValue)
void
setScope(int scope)
void
setVariableType(int variableType)
-
-
-
Field Detail
-
TYPE_DYNAMIC
public static final int TYPE_DYNAMIC
Dynamic typing is the default for QDL. It means that any variable can be re-assigned to any value at any time- See Also:
- Constant Field Values
-
TYPE_MANIFEST
public static final int TYPE_MANIFEST
Manifest typing means that when a variable is first defined, it must have that type from that point forward- See Also:
- Constant Field Values
-
TYPE_STRICT
public static final int TYPE_STRICT
Strict typing means that ever variable must be explicitly typed either at or before it is defined. Attempting to define a variable before it is given a type will raise an error.- See Also:
- Constant Field Values
-
SCOPE_DEFAULT
public static final int SCOPE_DEFAULT
- See Also:
- Constant Field Values
-
SCOPE_INTRINSIC
public static final int SCOPE_INTRINSIC
- See Also:
- Constant Field Values
-
SCOPE_EXTRINSIC
public static final int SCOPE_EXTRINSIC
- See Also:
- Constant Field Values
-
-
Method Detail
-
getQDLValue
public QDLValue getQDLValue()
-
setQDLValue
public void setQDLValue(QDLValue qdlValue)
-
hasValue
public boolean hasValue()
-
getScope
public int getScope()
-
setScope
public void setScope(int scope)
-
getVariableType
public int getVariableType()
-
setVariableType
public void setVariableType(int variableType)
-
-