|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEDU.auburn.VGJ.graph.GMLobject
A GML object that does nothing but create itself and write itself.
Here is the source.
Field Summary | |
static int |
GMLfile
|
static int |
GMLinteger
|
static int |
GMLlist
|
static int |
GMLreal
|
static int |
GMLstring
|
static int |
GMLundefined
|
protected java.lang.String |
key_
|
protected GMLobject |
next_
|
protected int |
type_
|
protected java.lang.Object |
value_
|
Constructor Summary | |
GMLobject()
|
|
GMLobject(GMLlexer lexer,
java.lang.String key)
Create the object from a GMLlexer and key. |
|
GMLobject(java.lang.String key,
int type)
|
Method Summary | |
void |
addObject(GMLobject object)
|
void |
addObjectToEnd(GMLobject object)
|
void |
deleteAll(java.lang.String key,
int type)
|
void |
deleteUnsafe()
|
GMLobject |
getGMLSubObject(java.lang.String path,
int type,
boolean create)
Get the first sub-object with path-key "path" and type "type", or null if no such object exists. |
GMLobject |
getNextGMLSubObject()
Iterator initialized by getGMLSubObject(). |
java.lang.Object |
getValue(java.lang.String path,
int type)
Get the value of the first sub object matching the path-key "path" and type "type", or null if there is no sub object. |
void |
prune()
Remove all null GMLlists from the object tree. |
void |
setHashFromGML(java.lang.String path,
int type,
java.util.Hashtable hash)
Insert the keys and values of the first sub-object with path-key "path" and type "type", into the hash table "hash". |
void |
setValue(java.lang.String path,
int type,
java.lang.Object value)
|
java.lang.String |
toString(int numtabs)
Print the text representation of the object tree, with "numtabs" leading tabs. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int GMLinteger
public static final int GMLreal
public static final int GMLstring
public static final int GMLlist
public static final int GMLundefined
public static final int GMLfile
protected java.lang.String key_
protected java.lang.Object value_
protected GMLobject next_
protected int type_
Constructor Detail |
public GMLobject()
public GMLobject(java.lang.String key, int type)
public GMLobject(GMLlexer lexer, java.lang.String key) throws java.io.IOException, ParseError
Method Detail |
public java.lang.String toString(int numtabs)
public GMLobject getNextGMLSubObject()
public GMLobject getGMLSubObject(java.lang.String path, int type, boolean create)
public void setHashFromGML(java.lang.String path, int type, java.util.Hashtable hash)
public java.lang.Object getValue(java.lang.String path, int type)
public void setValue(java.lang.String path, int type, java.lang.Object value)
public void addObject(GMLobject object)
public void addObjectToEnd(GMLobject object)
public void deleteUnsafe()
public void deleteAll(java.lang.String key, int type)
public void prune()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |