public interface IVarDef extends IConditional, IAnnotated, Comparable<IVarDef>
Modifier and Type | Interface and Description |
---|---|
static interface |
IVarDef.Position
Defines an ordering of variable definitions.
|
Modifier and Type | Field and Description |
---|---|
static String |
ARG
Identifies an input variable that is a formal argument of a function. |
static String |
ENV
Identifies an implicit input variable defined by the environment to a function. |
static String |
STATE
Identifies an implicit input variable defined by the internal state of the system. |
Modifier and Type | Method and Description |
---|---|
default int |
compareTo(IVarDef other) |
IVarDef |
find(String... path)
Returns the descendant variable with the given name path, relative to this variable.
|
ICondition |
getCondition()
Returns the condition that defines when values for this variable are applicable.
|
ICondition |
getEffectiveCondition()
Returns the effective condition that defines when this variable is applicable,
based on the conditions for this variable and all of its ancestors.
|
Iterator<IVarDef> |
getMembers()
If this variable has member variables, returns an iterator for the member variable list.
|
String |
getName()
Returns the variable name.
|
VarSet |
getParent()
If this is member of another variable, returns the parent variable.
|
String |
getPathName()
Returns the hierarchical path name of this variable.
|
IVarDef.Position |
getPosition()
Returns the position of this variable definition.
|
int |
getSeqNum()
Returns the sequence number of this variable.
|
String |
getType()
Returns the type identifier for this variable.
|
Iterator<VarValueDef> |
getValues()
If this variable defines a value set, returns an iterator for the value set.
|
void |
setParent(VarSet parent)
Changes the parent of this variable.
|
void |
setSeqNum(int seqNum)
Changes the sequence number of this variable.
|
getAnnotation, getAnnotations
static final String ARG
Identifies
an input variable that is a formal argument of a function.static final String ENV
Identifies
an implicit input variable defined by the environment to a function.static final String STATE
Identifies
an implicit input variable defined by the internal state of the system.void setParent(VarSet parent)
VarSet getParent()
IVarDef.Position getPosition()
void setSeqNum(int seqNum)
int getSeqNum()
String getName()
String getPathName()
ICondition getEffectiveCondition()
String getType()
Iterator<IVarDef> getMembers()
Iterator<VarValueDef> getValues()
IVarDef find(String... path)
ICondition getCondition()
getCondition
in interface IConditional
default int compareTo(IVarDef other)
compareTo
in interface Comparable<IVarDef>
Copyright © 2024 The Cornutum Project. All rights reserved.