|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.infinityloop.upcast.upl.val.UPLValue
public abstract class UPLValue
| Field Summary | |
|---|---|
protected boolean |
isBreakValue
|
protected boolean |
isEmptyReturnValue
|
protected boolean |
isReturnValue
marks if a value calculated in a method/function terminates the method/function, effectively forcing a return from it |
protected boolean |
isValid
marks if the value is valid (normally true, false if a value exists but is nor really set (used in case of variables/parameters)) |
static int |
kTYPE_BOOL
|
static int |
kTYPE_COLOR
|
static int |
kTYPE_ID
|
static int |
kTYPE_LIST
|
static int |
kTYPE_NULL
|
static int |
kTYPE_NUMERIC
|
static int |
kTYPE_STRING
|
static int |
kTYPE_UNKNOWN
|
static int |
kTYPE_VALUE
|
static int |
kTYPE_VOID
|
protected int |
type
the type of the Value |
| Constructor Summary | |
|---|---|
UPLValue()
|
|
| Method Summary | |
|---|---|
UPLValue |
add(UPLValue v)
|
UPLValue |
affirmate()
Affirmates (unary +) a UPLValue. |
static UPLValue |
castValueToType(de.infinityloop.upcast.util.namespace.NamespaceManager nsm,
int targetType,
UPLValue value)
Performs a cast of the passed value to the specified type |
abstract int |
compareTo(int compareType,
UPLValue to)
|
UPLValue |
decrement()
unary decrement. |
UPLValue |
div(UPLValue v)
|
boolean |
equals(UPLValue to)
|
UPLValue |
eval(de.infinityloop.upcast.upl.util.Context context)
|
abstract java.lang.String |
getAsString()
|
abstract java.lang.String |
getAsUPL()
|
abstract boolean |
getBooleanValue()
The boolean value of an UPLValue. |
abstract java.lang.String |
getDebugString()
|
int |
getType()
|
static int |
getType(java.lang.String name)
|
java.lang.String |
getTypeName()
|
static java.lang.String |
getTypeName(int i)
|
UPLValue |
increment()
unary increment. |
boolean |
isBreakValue()
|
boolean |
isEmptyReturnValue()
|
boolean |
isReturnValue()
|
boolean |
isValid()
|
UPLValue |
mod(UPLValue v)
|
UPLValue |
negate()
Negates (unary minus) a UPLValue. |
UPLValue |
not()
|
void |
setBreakValue(boolean isBreakValue)
|
void |
setEmptyReturnValue(boolean isEmptyReturnValue)
|
void |
setReturnValue(boolean isReturnValue)
sets whether this value if calculated in a method/function terminates the method/function, effectively forcing a return from it |
void |
setValid(boolean isValid)
|
UPLValue |
sub(UPLValue v)
|
UPLValue |
times(UPLValue v)
|
java.lang.String |
toString()
used for debugging purposes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int kTYPE_VOID
public static final int kTYPE_UNKNOWN
public static final int kTYPE_VALUE
public static final int kTYPE_NULL
public static final int kTYPE_ID
public static final int kTYPE_STRING
public static final int kTYPE_NUMERIC
public static final int kTYPE_BOOL
public static final int kTYPE_COLOR
public static final int kTYPE_LIST
protected int type
protected boolean isValid
protected boolean isReturnValue
protected boolean isEmptyReturnValue
protected boolean isBreakValue
| Constructor Detail |
|---|
public UPLValue()
| Method Detail |
|---|
public UPLValue eval(de.infinityloop.upcast.upl.util.Context context)
throws UPLValueException
UPLValueException
public final UPLValue not()
throws UPLValueException
UPLValueException
public final boolean equals(UPLValue to)
throws UPLValueException
UPLValueException
public abstract int compareTo(int compareType,
UPLValue to)
throws UPLValueException
UPLValueException
public UPLValue affirmate()
throws UPLValueException
UPLValueException
public UPLValue negate()
throws UPLValueException
UPLValueException
public UPLValue increment()
throws UPLValueException
UPLValueException
public UPLValue decrement()
throws UPLValueException
UPLValueException
public abstract boolean getBooleanValue()
throws UPLValueException
UPLValueException
public UPLValue add(UPLValue v)
throws UPLValueException
UPLValueException
public UPLValue sub(UPLValue v)
throws UPLValueException
UPLValueException
public UPLValue times(UPLValue v)
throws UPLValueException
UPLValueException
public UPLValue div(UPLValue v)
throws UPLValueException
UPLValueException
public UPLValue mod(UPLValue v)
throws UPLValueException
UPLValueExceptionpublic abstract java.lang.String getAsString()
public abstract java.lang.String getAsUPL()
public final java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public abstract java.lang.String getDebugString()
public int getType()
public java.lang.String getTypeName()
public static java.lang.String getTypeName(int i)
public static int getType(java.lang.String name)
public boolean isReturnValue()
public void setReturnValue(boolean isReturnValue)
isReturnValue - public boolean isEmptyReturnValue()
public void setEmptyReturnValue(boolean isEmptyReturnValue)
public boolean isBreakValue()
public void setBreakValue(boolean isBreakValue)
public boolean isValid()
public void setValid(boolean isValid)
public static UPLValue castValueToType(de.infinityloop.upcast.util.namespace.NamespaceManager nsm,
int targetType,
UPLValue value)
throws UPLValueException
targetType - the type to convert tovalue -
UPLValueException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||