public abstract class AbstractVarDef extends Conditional implements IVarDef
IVarDef
implementations.TEST_CASE_PROPERTIES
Constructor and Description |
---|
AbstractVarDef()
Creates a new AbstractVarDef object.
|
AbstractVarDef(String name)
Creates a new AbstractVarDef object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
abstract IVarDef |
find(String... path)
Returns the descendant variable with the given name path, relative to this variable.
|
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.
|
abstract Iterator<IVarDef> |
getMembers()
If this variable has member variables, returns an iterator for the member variable list.
|
String |
getName()
Returns the variable name.
|
protected int |
getNextSeqNum()
Returns the next variable sequence number.
|
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.
|
abstract Iterator<VarValueDef> |
getValues()
If this variable defines a value set, returns an iterator for the value set.
|
int |
hashCode() |
boolean |
isOptional()
Returns true if this variable (has an ancestor that) defines a condition.
|
void |
setCondition(ICondition condition)
Changes the condition that defines when this element is applicable.
|
void |
setName(String name)
Changes the variable name.
|
void |
setParent(VarSet parent)
Changes the parent of this variable.
|
void |
setSeqNum(int seqNum)
Changes the sequence number of this variable.
|
void |
setType(String type)
Changes the type identifier for this variable.
|
String |
toString() |
getCondition, getEffectiveCondition
addAnnotations, getAnnotation, getAnnotationCount, getAnnotationList, getAnnotations, setAnnotation, setAnnotationList
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, getCondition
getAnnotation, getAnnotations
public AbstractVarDef()
public AbstractVarDef(String name)
public void setName(String name)
public String getName()
public String getPathName()
getPathName
in interface IVarDef
public void setType(String type)
public String getType()
public void setParent(VarSet parent)
public VarSet getParent()
public ICondition getEffectiveCondition()
getEffectiveCondition
in interface IVarDef
public boolean isOptional()
public void setCondition(ICondition condition)
setCondition
in class Conditional
public IVarDef.Position getPosition()
getPosition
in interface IVarDef
public void setSeqNum(int seqNum)
public int getSeqNum()
protected int getNextSeqNum()
public abstract Iterator<IVarDef> getMembers()
getMembers
in interface IVarDef
public abstract Iterator<VarValueDef> getValues()
public abstract IVarDef find(String... path)
Copyright © 2024 The Cornutum Project. All rights reserved.