|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.vub.at.objects.natives.NATNil
edu.vub.at.objects.natives.NATByCopy
edu.vub.at.objects.natives.NATStripe
The native implementation of AmbientTalk stripe objects.
Nested Class Summary | |
static class |
NATStripe.OBJRootStripe
The root stripe of the stripe hierarchy: every stripe eventually has this stripe as its parent. |
Field Summary | |
private ATTable |
parentStripes_
|
private ATSymbol |
stripeName_
|
Fields inherited from class edu.vub.at.objects.natives.NATNil |
_INSTANCE_ |
Constructor Summary | |
protected |
NATStripe(ATSymbol stripeName,
ATTable parentStripes)
The constructor is declared protected such that it cannot be used externally, but can be used by the OBJRootStripe class to create a stripe with an empty parent table, which is normally not allowed. |
Method Summary | |
static NATStripe |
atValue(ATSymbol stripeName)
|
static NATStripe |
atValue(ATSymbol stripeName,
ATTable parentStripes)
Stripes should not be created directly because it should be verified that their list of parent stripes is never empty. |
static NATStripe |
atValue(java.lang.String stripeName)
|
static NATStripe |
atValue(java.lang.String stripeName,
NATStripe singleParent)
|
ATStripe |
base_asStripe()
|
ATTable |
base_getParentStripes()
|
ATSymbol |
base_getStripeName()
|
boolean |
base_isStripe()
|
ATBoolean |
base_isSubstripeOf(ATStripe superstripe)
Native implementation of: def isSubstripeOf(superstripe) { (superstripe.name() == name).or: { (superstripes.find: { |sstripe| sstripe.isSubstripeOf(superstripe) }) ! |
boolean |
equals(java.lang.Object other)
Identity of stripes is based on their name |
ATTable |
meta_getStripes()
Returns the stripes of this object. |
NATText |
meta_print()
Prints out the object in a human-readable way. |
Methods inherited from class edu.vub.at.objects.natives.NATByCopy |
meta_pass, meta_resolve |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.vub.at.objects.ATObject |
base__opeql__opeql_, base_init, base_new, meta_addField, meta_addMethod, meta_assignField, meta_assignVariable, meta_clone, meta_defineField, meta_doesNotUnderstand, meta_eval, meta_extend, meta_getDynamicParent, meta_getLexicalParent, meta_grabField, meta_grabMethod, meta_invoke, meta_isCloneOf, meta_isRelatedTo, meta_isStripedWith, meta_listFields, meta_listMethods, meta_lookup, meta_newInstance, meta_pass, meta_quote, meta_receive, meta_resolve, meta_respondsTo, meta_select, meta_send, meta_share |
Field Detail |
private final ATSymbol stripeName_
private final ATTable parentStripes_
Constructor Detail |
protected NATStripe(ATSymbol stripeName, ATTable parentStripes)
Method Detail |
public static NATStripe atValue(java.lang.String stripeName)
public static NATStripe atValue(ATSymbol stripeName)
public static NATStripe atValue(java.lang.String stripeName, NATStripe singleParent)
public static NATStripe atValue(ATSymbol stripeName, ATTable parentStripes)
public ATSymbol base_getStripeName() throws InterpreterException
base_getStripeName
in interface ATStripe
InterpreterException
public ATTable base_getParentStripes() throws InterpreterException
base_getParentStripes
in interface ATStripe
InterpreterException
public ATBoolean base_isSubstripeOf(ATStripe superstripe) throws InterpreterException
base_isSubstripeOf
in interface ATStripe
InterpreterException
public boolean equals(java.lang.Object other)
equals
in class NATNil
public boolean base_isStripe()
base_isStripe
in interface ATConversions
base_isStripe
in class NATNil
public ATStripe base_asStripe()
base_asStripe
in interface ATConversions
base_asStripe
in class NATNil
public NATText meta_print() throws InterpreterException
ATObject
meta_print
in interface ATObject
meta_print
in class NATNil
InterpreterException
public ATTable meta_getStripes() throws InterpreterException
ATObject
meta_getStripes
in interface ATObject
meta_getStripes
in class NATNil
InterpreterException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |