|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.abora.gold.java.AboraHeaper
|
+--org.abora.gold.xpp.basic.Heaper
|
+--org.abora.gold.wrapper.FeWrapper
An object which wraps an Edition, providing additional functionality for manipulating it
and enforcing invariants on the format.
Implementation note:
The fact that you cannot get the spec of a Wrapper is deliberate. You can merely check
that it is a kind of Edition you know, but no more; this makes it easy to compatibly add
new leaf classes below existing ones.
| Field Summary | |
protected FeEdition |
myEdition
|
protected FeWrapper |
myInner
|
protected FeWrapperSpec |
mySpec
|
protected static FeWrapperSpec |
TheWrapperSpec
|
| Fields inherited from class org.abora.gold.xpp.basic.Heaper |
AllBlasts, BecomeMap, GarbageCount, InGC, InitializedClasses, InitializingClasses, LastMemory, NextClientRequestNumber, NotOneElementSignal, PackageTable, PromiseNameTable, StringHashSBoxes |
| Fields inherited from class org.abora.gold.java.AboraHeaper |
ActiveClubs, CurrentAuthor, CurrentBertCanopyCache, CurrentBertCrum, CurrentChunk, CurrentGrandMap, CurrentKeyMaster, CurrentPacker, CurrentSensorCanopyCache, CurrentServer, CurrentSession, CurrentSessions, CurrentTrace, InitialEditClub, InitialOwner, InitialReadClub, InitialSponsor, InsideTransactionFlag |
| Constructor Summary | |
FeWrapper(FeEdition edition,
FeWrapper inner,
FeWrapperSpec spec)
|
|
FeWrapper(FeEdition edition,
FeWrapperSpec spec)
|
|
| Method Summary | |
int |
actualHashForEqual()
|
static boolean |
checkDomainHas(FeEdition edition,
XnRegion required)
Checks that the domain is in the right coordinate space and is a superset of the given region |
static boolean |
checkDomainIn(FeEdition edition,
XnRegion limit)
Checks that the domain is in the right coordinate space and a subset of the given region |
static boolean |
checkSubEdition(FeEdition parent,
Position key,
FeWrapperSpec spec,
boolean required)
If there is a SubEdition at a key in an edition, and if a spec is supplied, that it can be certified as the given type |
static boolean |
checkSubEditions(FeEdition parent,
XnRegion keys,
FeWrapperSpec spec,
boolean required)
Check that everything in the region is an Edition, which can be certified with the given type |
static boolean |
checkSubSequence(FeEdition edition,
Position key,
boolean required)
Whether there is an Edition there which can be successfully converted into a zero based Sequence |
static boolean |
checkSubSetEdition(FeEdition parent,
Position key,
FeWrapperSpec spec,
boolean required)
If there is a SubEdition at a key in an edition, that it can be wrapped as a Set, and if a spec is supplied, that it only contains the given type |
static boolean |
checkSubWork(FeEdition parent,
Position key,
boolean required)
If there is a SubWork at a key in an edition |
FeEdition |
edition()
Essential. |
static void |
info()
{FeEdition CLIENT} edition {FeWrapper CLIENT} inner {BooleanVar CLIENT} isWrappedAs: spec {FeWrapperSpec} |
static void |
initTimeNonInherited()
|
FeWrapper |
inner()
Essential. |
boolean |
isEqual(java.lang.Object other)
|
boolean |
isWrapperOf(FeWrapperSpec spec)
Essential. |
static void |
linkTimeNonInherited()
|
static void |
setSpec(FeWrapperSpec spec)
|
static FeWrapperSpec |
spec()
|
| Methods inherited from class org.abora.gold.java.AboraHeaper |
asOop, basicInspect, displayString, error, hack, halt, inspect, knownBug, mightNotImplement, REQUIRES, shouldImplement, shouldNotImplement, stubbleForSubclassResponsibility, thingToDo, willNotImplement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected FeEdition myEdition
protected FeWrapper myInner
protected FeWrapperSpec mySpec
protected static FeWrapperSpec TheWrapperSpec
| Constructor Detail |
public FeWrapper(FeEdition edition,
FeWrapperSpec spec)
public FeWrapper(FeEdition edition,
FeWrapper inner,
FeWrapperSpec spec)
| Method Detail |
public FeEdition edition()
public FeWrapper inner()
public boolean isWrapperOf(FeWrapperSpec spec)
public int actualHashForEqual()
actualHashForEqual in class Heaperpublic boolean isEqual(java.lang.Object other)
public static void initTimeNonInherited()
public static void linkTimeNonInherited()
public static void setSpec(FeWrapperSpec spec)
public static FeWrapperSpec spec()
public static boolean checkDomainHas(FeEdition edition,
XnRegion required)
public static boolean checkDomainIn(FeEdition edition,
XnRegion limit)
public static boolean checkSubEdition(FeEdition parent,
Position key,
FeWrapperSpec spec,
boolean required)
public static boolean checkSubEditions(FeEdition parent,
XnRegion keys,
FeWrapperSpec spec,
boolean required)
public static boolean checkSubSequence(FeEdition edition,
Position key,
boolean required)
public static boolean checkSubWork(FeEdition parent,
Position key,
boolean required)
public static boolean checkSubSetEdition(FeEdition parent,
Position key,
FeWrapperSpec spec,
boolean required)
public static void info()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||