public class VariableDescriptor extends MetaInfo
Should be stored in the user data field of node variable object.
Constructor and Description |
---|
VariableDescriptor(VariableDescriptor descriptor)
Copy constructor.
|
VariableDescriptor(VariableType variableType)
Constructs object with the specified variable type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
ru.ispras.fortress.expression.Node |
getAscending()
Returns "'ascending" field value.
|
ru.ispras.fortress.data.DataType |
getBase()
Returns "'base" field value.
|
ru.ispras.fortress.expression.Node |
getHigh()
Returns "'high" attribute value.
|
java.util.List<ru.ispras.castle.ast.Range> |
getIndexRanges()
Returns the list of index ranges.
|
ru.ispras.fortress.expression.Node |
getLeft()
Returns "'left" attribute value.
|
ru.ispras.fortress.expression.Node |
getLength()
Returns "'length" field value.
|
ru.ispras.fortress.expression.Node |
getLow()
Returns "'low" attribute value.
|
ru.ispras.castle.ast.Range |
getOriginalRange()
Returns the original range from the assignment target.
|
ru.ispras.fortress.expression.NodeVariable |
getOriginalVariable()
Returns the link to original variable object.
|
ru.ispras.castle.ast.Range |
getRange()
Returns "'range" field value.
|
ru.ispras.fortress.expression.Node |
getRight()
Returns "'right" attribute value.
|
VariableType |
getVariableType()
Returns variable type.
|
int |
getVersionNumber()
Returns the number of current version variable.
|
int |
hashCode() |
void |
setAscending(ru.ispras.fortress.expression.Node ascending)
Sets the specified value to the non-initialized ascending field.
|
void |
setBase(ru.ispras.fortress.data.DataType base)
Sets the specified value to the non-initialized base field.
|
void |
setHigh(ru.ispras.fortress.expression.Node high)
Sets the specified value to the non-initialized high field.
|
void |
setIndexRanges(java.util.List<ru.ispras.castle.ast.Range> indexRanges)
Fills the related list of index ranges with elements from the specified one.
|
void |
setLeft(ru.ispras.fortress.expression.Node left)
Sets the specified value to the non-initialized left field.
|
void |
setLength(ru.ispras.fortress.expression.Node length)
Sets the specified value to the non-initialized length field.
|
void |
setLow(ru.ispras.fortress.expression.Node low)
Sets the specified value to the non-initialized low field.
|
void |
setOriginalRange(ru.ispras.castle.ast.Range range)
Sets the original range field.
|
void |
setOriginalVariable(ru.ispras.fortress.expression.NodeVariable original)
Keeps the link to the specified object.
|
void |
setRange(ru.ispras.castle.ast.Range range)
Sets the specified value to the non-initialized range field.
|
void |
setReverseRange(ru.ispras.castle.ast.Range reverseRange)
Sets the specified value to the non-initialized reverse_range field.
|
void |
setRight(ru.ispras.fortress.expression.Node right)
Sets the specified value to the non-initialized right field.
|
void |
setVersionNumber(int versionNumber)
Sets the number of current version variable.
|
addMetaInfo, addMetaInfo, addMetaInfo, addMetaInfo, getAllMetaInfo, getMetaInfo, getMetaInfo, getStringMetaInfo, getStringMetaInfo, hasMetaInfo, hasMetaInfo
public VariableDescriptor(VariableType variableType)
variableType
- Variable type.java.lang.IllegalArgumentException
- when argument is null
.public VariableDescriptor(VariableDescriptor descriptor)
descriptor
- The object that fields are to be copied.public VariableType getVariableType()
public ru.ispras.fortress.expression.NodeVariable getOriginalVariable()
public void setOriginalVariable(ru.ispras.fortress.expression.NodeVariable original)
original
- The original variable object.public int getVersionNumber()
The method returns not null
value for version variables only. Version variables
are constructed by the tool.
public void setVersionNumber(int versionNumber)
versionNumber
- The version number.public ru.ispras.castle.ast.Range getOriginalRange()
public void setOriginalRange(ru.ispras.castle.ast.Range range)
range
- The original range.public ru.ispras.fortress.expression.Node getLeft()
public void setLeft(ru.ispras.fortress.expression.Node left)
left
- Value to bet set to left field.RetrascopeException
- when left field is already set to another value.public ru.ispras.fortress.expression.Node getRight()
public void setRight(ru.ispras.fortress.expression.Node right)
right
- Value to bet set to right field.RetrascopeException
- when right field is already set to another value.public ru.ispras.fortress.expression.Node getLow()
public void setLow(ru.ispras.fortress.expression.Node low)
low
- Value to bet set to low field.RetrascopeException
- when low field is already set to another value.public ru.ispras.fortress.expression.Node getHigh()
public void setHigh(ru.ispras.fortress.expression.Node high)
high
- Value to bet set to high field.RetrascopeException
- when high field is already set to another value.public ru.ispras.fortress.expression.Node getAscending()
public void setAscending(ru.ispras.fortress.expression.Node ascending)
ascending
- Value to bet set to ascending field.RetrascopeException
- when ascending field is already set to another value.public ru.ispras.fortress.data.DataType getBase()
public void setBase(ru.ispras.fortress.data.DataType base)
base
- Value to bet set to base field.RetrascopeException
- when base field is already set to another value.public ru.ispras.castle.ast.Range getRange()
public void setRange(ru.ispras.castle.ast.Range range)
range
- Value to bet set to range field.RetrascopeException
- when range field is already set to another value.public void setReverseRange(ru.ispras.castle.ast.Range reverseRange)
reverseRange
- Value to bet set to reverse_range field.RetrascopeException
- when reverse_range field is already set to another value.public ru.ispras.fortress.expression.Node getLength()
public void setLength(ru.ispras.fortress.expression.Node length)
length
- Value to bet set to length field.RetrascopeException
- when length field is already set to another value.public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void setIndexRanges(java.util.List<ru.ispras.castle.ast.Range> indexRanges)
indexRanges
- The list of index ranges.public java.util.List<ru.ispras.castle.ast.Range> getIndexRanges()