|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hecl.GroupThing
public class GroupThing
The GroupThing
class is for Hecl "groups". For instance, "foo
$foo [foo]" must have its components kept together, and is not a proper list.
Field Summary | |
---|---|
protected java.util.Vector |
val
|
Constructor Summary | |
---|---|
GroupThing(java.lang.String s)
Creates a new GroupThing instance from a string. |
|
GroupThing(java.util.Vector v)
Creates a new GroupThing instance from a vector. |
Method Summary | |
---|---|
static Thing |
create(java.util.Vector v)
The create method takes a Vector of Things and
creates a Thing containing a GroupThing. |
RealThing |
deepcopy()
deepcopy makes a copy of a GroupThing and all its
elements. |
static java.util.Vector |
get(Thing thing)
get returns a Vector containing other Things, representing
a group, from a Thing. |
java.lang.String |
getStringRep()
getStringRep returns a string representation of the group. |
java.lang.String |
thingclass()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Vector val
Constructor Detail |
---|
public GroupThing(java.util.Vector v)
GroupThing
instance from a vector.
v
- a Vector
valuepublic GroupThing(java.lang.String s)
GroupThing
instance from a string.
s
- a String
valueMethod Detail |
---|
public static Thing create(java.util.Vector v)
create
method takes a Vector of Things and
creates a Thing containing a GroupThing.
v
- a Vector
value
Thing
valuepublic java.lang.String thingclass()
thingclass
in interface RealThing
public static java.util.Vector get(Thing thing) throws HeclException
get
returns a Vector containing other Things, representing
a group, from a Thing.
thing
- a Thing
value
Vector
value
HeclException
public RealThing deepcopy() throws HeclException
deepcopy
makes a copy of a GroupThing and all its
elements.
deepcopy
in interface RealThing
RealThing
value
HeclException
public java.lang.String getStringRep()
getStringRep
returns a string representation of the group.
getStringRep
in interface RealThing
String
value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |