public class RangeValue extends java.lang.Object implements SimpleValue
| Constructor and Description |
|---|
RangeValue(long first,
long last)
Constructs a new range.
|
| Modifier and Type | Method and Description |
|---|---|
<T,E extends java.lang.Throwable> |
accept(ValueVisitor<T,E> visitor)
Accepts visitor.
|
RangeValue |
createCopy(ModelInstance targetModelInstance)
Creates a copy without references to other objects.
|
Type |
getCompiledType(ModelProvider modelProvider)
Returns the compiled type.
|
long |
getFirst()
Returns the first element in this range.
|
long |
getLast()
Returns the last element in this range.
|
java.lang.String |
getType()
Returns the type.
|
java.lang.Object |
getValue()
Returns the contained value.
|
boolean |
isRemoved()
Returns true if value is removed
|
SSimpleValue |
toSerializable(SModelInstance smi,
MarshallerConfig config)
Creates a serializable object.
|
SimpleValue |
toSimpleValue()
If this is
SimpleValue this method returns this, otherwise it returns a
ValueRef to this. |
Value |
toValue()
If this is a
ValueRef this method returns the referenced value, otherwise it returns
this. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinishCopypublic RangeValue(long first,
long last)
first - last - public SSimpleValue toSerializable(SModelInstance smi, MarshallerConfig config)
SimpleValuetoSerializable in interface SimpleValuetoSerializable in interface Valuepublic long getFirst()
public long getLast()
public <T,E extends java.lang.Throwable> T accept(ValueVisitor<T,E> visitor) throws E extends java.lang.Throwable
Valuepublic SimpleValue toSimpleValue()
ValueSimpleValue this method returns this, otherwise it returns a
ValueRef to this.toSimpleValue in interface ValueSimpleValuepublic Value toValue()
ValueValueRef this method returns the referenced value, otherwise it returns
this.public java.lang.String getType()
Valuepublic Type getCompiledType(ModelProvider modelProvider)
ValuegetCompiledType in interface Valuepublic RangeValue createCopy(ModelInstance targetModelInstance)
public boolean isRemoved()
Valuepublic java.lang.Object getValue()
SimpleValuegetValue in interface SimpleValueCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.