All Packages Class Hierarchy This Package Previous Next Index
Class com.imaginary.mud.LPCData
java.lang.Object
|
+----com.imaginary.mud.LPCData
- public class LPCData
- extends Object
The LPCData class represents the Java value of an LPC string that
represents some LPC data type. You construct it using the string
representing the LPC constant data.
Last modified $Date: 1998/10/27 20:54:24 $
-
LPCData(String)
- Constructs a new LPCData object from a string containing the
representation of an LPC data type.
-
LPCData(StringBuffer)
- Constructs a new LPCData object from a StringBuffer containing the
representation of an LPC data type.
-
getFloat()
-
-
getHashtable()
-
-
getInt()
-
-
getInteger()
-
-
getObject()
-
-
getString()
-
-
getVector()
-
LPCData
public LPCData(String str) throws LPCDataFormatException
- Constructs a new LPCData object from a string containing the
representation of an LPC data type. The typical use might be:
String str = "([\"house\":1,])";
LPCData d = new LPCData(str);
Hashtable h = d.getHashtable();
- Parameters:
- str - the string representing an LPC constant
- Throws: LPCDataFormatException
- a bad LPC string was
passed
LPCData
public LPCData(StringBuffer str) throws LPCDataFormatException
- Constructs a new LPCData object from a StringBuffer containing the
representation of an LPC data type.
- Parameters:
- str - the StringBuffer representing an LPC constant
- Throws: LPCDataFormatException
- a bad LPC string was
passed
getFloat
public float getFloat()
- Returns:
- a float value for the LPC float this object represents
getHashtable
public Hashtable getHashtable()
- Returns:
- a Hashtable value for the LPC mapping this object represents
getInt
public int getInt()
- Returns:
- an int value for the LPC int this object represents
getInteger
public Integer getInteger()
- Returns:
- an Integer value for the LPC int this object represents
getObject
public Object getObject()
- Returns:
- an Object
getString
public String getString()
- Returns:
- a String value for the LPC string this object represents
getVector
public Vector getVector()
- Returns:
- a Vector value for the LPC array this object represents
All Packages Class Hierarchy This Package Previous Next Index