|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.opensmus.LValue
public class LValue
Base class representing a Lingo compatible value (LValue for short). Lingo is a trademark of Adobe, Inc. All rights reserved.
Field Summary | |
---|---|
protected short |
valueType
|
static short |
vt_3dTransform
|
static short |
vt_3dVector
|
static short |
vt_Color
|
static short |
vt_Date
|
static short |
vt_Float
|
static short |
vt_Integer
|
static short |
vt_List
|
static short |
vt_Media
|
static short |
vt_Picture
|
static short |
vt_Point
|
static short |
vt_PropList
|
static short |
vt_Rect
|
static short |
vt_String
|
static short |
vt_Symbol
|
static short |
vt_Void
|
Constructor Summary | |
---|---|
LValue()
Constructor |
Method Summary | |
---|---|
void |
dump()
Reserved for internal use of OpenSMUS. |
int |
extractFromBytes(byte[] rawBytes,
int offset)
Reserved for internal use of OpenSMUS. |
static LValue |
fromRawBytes(byte[] rawBytes,
int offset)
Static function to construct an LValue from a raw byte array containg a Lingo formatted value and associated type information. |
byte[] |
getBytes()
Reserved for internal use of OpenSMUS. |
static LValue |
getLValue(byte[] initval)
Static function to construct an LValue from an array of bytes. |
static LValue |
getLValue(double initval)
Static function to construct an LValue from a Java double. |
static LValue |
getLValue(float initval)
Static function to construct an LValue from a Java float. |
static LValue |
getLValue(int initval)
Static function to construct an LValue from a Java int. |
static LValue |
getLValue(java.lang.String initval)
Static function to construct an LValue from a Java String. |
short |
getType()
Returns the type of an LValue (LValue.vtVoid, LValue.vtString, etc.) |
void |
setType(short type)
Sets the type of a newly created LValue. |
byte[] |
toBytes()
Base method, returns this LValue as bytes. |
double |
toDouble()
Base method, returns this LValue as a double. |
int |
toInteger()
Base method, returns this LValue as an integer. |
java.lang.String |
toString()
Base method, returns this LValue as a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final short vt_Void
public static final short vt_Integer
public static final short vt_Symbol
public static final short vt_String
public static final short vt_Picture
public static final short vt_Float
public static final short vt_List
public static final short vt_Point
public static final short vt_Rect
public static final short vt_PropList
public static final short vt_Color
public static final short vt_Date
public static final short vt_Media
public static final short vt_3dVector
public static final short vt_3dTransform
protected short valueType
Constructor Detail |
---|
public LValue()
Method Detail |
---|
public static LValue getLValue(int initval)
public static LValue getLValue(java.lang.String initval)
public static LValue getLValue(double initval)
public static LValue getLValue(float initval)
public static LValue getLValue(byte[] initval)
public void setType(short type)
public short getType()
public int extractFromBytes(byte[] rawBytes, int offset)
public byte[] getBytes()
public void dump()
public java.lang.String toString()
toString
in class java.lang.Object
public int toInteger()
public double toDouble()
public byte[] toBytes()
public static LValue fromRawBytes(byte[] rawBytes, int offset)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |