|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.isi.stella.Stella_Object
edu.isi.stella.StandardObject
edu.isi.stella.ContextSensitiveObject
edu.isi.stella.GeneralizedSymbol
edu.isi.stella.Surrogate
public class Surrogate
Rigid surrogate.
| Field Summary | |
|---|---|
Stella_Object |
surrogateValue
|
| Fields inherited from class edu.isi.stella.GeneralizedSymbol |
|---|
symbolId, symbolName |
| Fields inherited from class edu.isi.stella.ContextSensitiveObject |
|---|
homeContext |
| Constructor Summary | |
|---|---|
Surrogate()
|
|
| Method Summary | |
|---|---|
static Stella_Object |
accessSurrogateSlotValue(Surrogate self,
Symbol slotname,
Stella_Object value,
boolean setvalueP)
|
static boolean |
bootstrapSubtypeOfP(Surrogate subtype,
Surrogate supertype)
|
static Surrogate |
canonicalType(Surrogate type)
|
Stella_Object |
clTranslateAtomicTree()
|
static List |
collectBadSuperClasses(Surrogate type,
List badones)
|
static Surrogate |
collectionToActiveCollection(Surrogate type)
|
void |
cppOutputLiteral()
|
Cons |
cppTranslateAtomicTree()
|
static Cons |
cppTranslateDefinedPMethodCall(Surrogate argumenttype,
Stella_Object argument,
boolean nullP)
|
static StringWrapper |
cppTranslateSurrogateId(Surrogate surrogate)
|
static StringWrapper |
cppTranslateSurrogateName(Surrogate surrogate)
|
static Stella_Object |
createObject(Surrogate type,
Cons initialValuePairs)
Funcallable version of the renamed_New operator. |
static RecycleList |
createRecycleList(Surrogate classtype,
int itemsize)
|
static boolean |
definedTypeP(Surrogate type)
|
static Stella_Class |
defineStellaClass(Surrogate name,
List supers,
List slots,
KeywordKeyValueList options)
Return a Stella class with name name. |
void |
destroyClass()
|
static AbstractDictionary |
dictionary(Surrogate collectiontype,
Cons alternatingkeysandvalues)
Return a dictionary of collectiontype containing values, in order. |
static boolean |
filterUnboundSurrogateP(Surrogate self,
AllPurposeIterator iterator)
|
static boolean |
genericallyAccessibleTypeP(Surrogate type)
|
static Stella_Object |
getGlobalValue(Surrogate self)
Return the (possibly-wrapped) value of the global variable for the surrogate 'self'. |
Stella_Class |
getStellaClass(boolean errorP)
Return a class with name className. |
void |
idlOutputLiteral()
|
static StringWrapper |
idlTranslateSurrogateId(Surrogate surrogate)
|
static StringWrapper |
idlTranslateSurrogateName(Surrogate surrogate)
|
static Surrogate |
importSurrogate(Surrogate surrogate,
Module module)
Import surrogate into module and return the imported surrogate. |
static void |
initializeMemoizationTable(Surrogate memotablesurrogate,
java.lang.String options)
|
static void |
insertPrimitiveSuper(Surrogate newsuper,
List supers)
|
void |
javaOutputLiteral()
|
static Cons |
javaTranslateDefinedOrNull(Surrogate classtype,
Stella_Object renamed_Object,
boolean nullP)
|
static StringWrapper |
javaTranslateSurrogateId(Surrogate surrogate)
|
static StringWrapper |
javaTranslateSurrogateName(Surrogate surrogate)
|
java.lang.String |
localPrintName()
|
static Stella_Object |
lookupCoersionMethod(Surrogate sourcetype,
Surrogate targettype,
Stella_Object expression)
|
GlobalVariable |
lookupGlobalVariable()
Return a global variable with name 'self'. |
static Stella_Object |
lookupLiteralTypeInfo(Surrogate type,
Keyword key)
|
static StorageSlot |
lookupSlotFromOptionKeyword(Surrogate owner,
Keyword keyword)
|
static Slot |
lookupSlotFromSlotref(Surrogate slotref)
|
static Surrogate |
lookupSlotref(Surrogate self,
Symbol slotname)
|
static Surrogate |
moreGeneralNumericType(Surrogate type1,
Surrogate type2)
|
static Surrogate |
newSurrogate(java.lang.String symbolName)
|
static boolean |
optimisticSubtypeOfP(Surrogate subtype,
Surrogate supertype)
|
Surrogate |
primaryType()
Returns the primary type of self. |
void |
printObject(java.io.PrintStream stream)
|
static void |
printSurrogate(Surrogate self,
java.io.PrintStream stream)
|
static StandardObject |
realTypeSpecifier(Surrogate type)
|
static Surrogate |
safeImportSurrogate(Surrogate surrogate,
Module module)
Safe version of importSurrogate (which see). |
static boolean |
safeSubtypeOfP(Surrogate subtype,
Surrogate supertype)
|
static Sequence |
sequence(Surrogate collectiontype,
Cons values)
Return a sequence containing values, in order. |
static Stella_Object |
setGlobalValue(Surrogate self,
Stella_Object value)
Set the value of the global variable for the surrogate 'self' to 'value'. |
static void |
setLiteralTypeInfo(Surrogate type,
Keyword key,
Stella_Object value)
|
static boolean |
slotrefP(Surrogate self)
|
static Surrogate |
slotrefType(Surrogate slotref)
|
static boolean |
subtypeOfAnchoredTypeSpecifierP(Surrogate type)
|
static boolean |
subtypeOfBooleanP(Surrogate type)
|
static boolean |
subtypeOfCharacterP(Surrogate type)
|
static boolean |
subtypeOfClassP(Surrogate type)
|
static boolean |
subtypeOfConsP(Surrogate type)
|
static boolean |
subtypeOfFloatP(Surrogate type)
|
static boolean |
subtypeOfIntegerP(Surrogate type)
|
static boolean |
subtypeOfKeywordP(Surrogate type)
|
static boolean |
subtypeOfMethodSlotP(Surrogate type)
|
static boolean |
subtypeOfP(Surrogate subType,
Surrogate superType)
Return true iff the class named subType is a subclass
of the class named superType. |
static boolean |
subtypeOfParametricTypeSpecifierP(Surrogate type)
|
static boolean |
subtypeOfStorageSlotP(Surrogate type)
|
static boolean |
subtypeOfStringP(Surrogate type)
|
static boolean |
subtypeOfSurrogateP(Surrogate type)
|
static boolean |
subtypeOfSymbolP(Surrogate type)
|
static boolean |
subtypeOfTransientSymbolP(Surrogate type)
|
static boolean |
subtypeOfTypeP(Surrogate type)
|
static boolean |
subtypeOfVerbatimStringP(Surrogate type)
|
static boolean |
subtypeOfWrapperP(Surrogate type)
|
static Symbol |
surrogateToSymbol(Surrogate self)
|
Surrogate |
surrogatify()
Converts 'self' into a surrogate. |
static Symbol |
symbolize(Surrogate surrogate)
Convert surrogate into a symbol with the same name and module. |
static Stella_Class |
typeToClass(Surrogate type)
|
static Stella_Object |
typeToNullValueTree(Surrogate type)
|
static Symbol |
typeToSymbol(Surrogate type)
Convert type into a symbol with the same name and module. |
Surrogate |
typeToWrappedType()
Return the wrapped type for the type self,
or 'self' if it is not a bare literal type. |
static void |
uninternSurrogate(Surrogate self)
Remove self from its home module and the surrogate table. |
static boolean |
unknownTypeP(Surrogate type)
|
static boolean |
useVectorStyleIterationP(Surrogate collectiontype)
|
static Surrogate |
verifyType(Surrogate self)
|
static void |
verifyTypecaseClauseType(Surrogate testtype,
Surrogate clausetype,
List precedingclausetypes,
Cons clause)
|
static boolean |
visibleSurrogateP(Surrogate self)
Return true if self is visible from the current module. |
Stella_Object |
walkAtomicTree(java.lang.Object[] MV_returnarray)
|
static Surrogate |
wrappedTypeToType(Surrogate self)
Return the unwrapped type for the wrapped type self,
or self if it is not a wrapped type. |
static Cons |
yieldIsaPCaseTest(Surrogate casekey,
Stella_Object testexpression)
|
static Stella_Object |
yieldStructSlotAccessorName(Surrogate classtype,
Symbol slotname)
|
static Cons |
yieldSubtypeOfPCaseTest(Surrogate casekey,
Stella_Object testexpression)
|
StandardObject |
yieldTypeSpecifier()
|
| Methods inherited from class edu.isi.stella.ContextSensitiveObject |
|---|
homeModule |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Stella_Object surrogateValue
| Constructor Detail |
|---|
public Surrogate()
| Method Detail |
|---|
public static Surrogate newSurrogate(java.lang.String symbolName)
public void idlOutputLiteral()
idlOutputLiteral in class Stella_Objectpublic static StringWrapper idlTranslateSurrogateId(Surrogate surrogate)
public static StringWrapper idlTranslateSurrogateName(Surrogate surrogate)
public void javaOutputLiteral()
javaOutputLiteral in class Stella_Object
public static Cons javaTranslateDefinedOrNull(Surrogate classtype,
Stella_Object renamed_Object,
boolean nullP)
public static StringWrapper javaTranslateSurrogateId(Surrogate surrogate)
public static StringWrapper javaTranslateSurrogateName(Surrogate surrogate)
public void cppOutputLiteral()
cppOutputLiteral in class Stella_Object
public static Cons cppTranslateDefinedPMethodCall(Surrogate argumenttype,
Stella_Object argument,
boolean nullP)
public static StringWrapper cppTranslateSurrogateId(Surrogate surrogate)
public static StringWrapper cppTranslateSurrogateName(Surrogate surrogate)
public Cons cppTranslateAtomicTree()
cppTranslateAtomicTree in class Stella_Object
public static void initializeMemoizationTable(Surrogate memotablesurrogate,
java.lang.String options)
public static Stella_Object yieldStructSlotAccessorName(Surrogate classtype,
Symbol slotname)
public Stella_Object clTranslateAtomicTree()
clTranslateAtomicTree in class Stella_Object
public static Surrogate moreGeneralNumericType(Surrogate type1,
Surrogate type2)
public static void verifyTypecaseClauseType(Surrogate testtype,
Surrogate clausetype,
List precedingclausetypes,
Cons clause)
public static Cons yieldSubtypeOfPCaseTest(Surrogate casekey,
Stella_Object testexpression)
public static Cons yieldIsaPCaseTest(Surrogate casekey,
Stella_Object testexpression)
public Stella_Object walkAtomicTree(java.lang.Object[] MV_returnarray)
walkAtomicTree in class Stella_Object
public static boolean safeSubtypeOfP(Surrogate subtype,
Surrogate supertype)
public static Surrogate verifyType(Surrogate self)
public static Stella_Object lookupCoersionMethod(Surrogate sourcetype,
Surrogate targettype,
Stella_Object expression)
public Surrogate typeToWrappedType()
self,
or 'self' if it is not a bare literal type.
public static Surrogate wrappedTypeToType(Surrogate self)
self,
or self if it is not a wrapped type.
self -
public static boolean useVectorStyleIterationP(Surrogate collectiontype)
public static StorageSlot lookupSlotFromOptionKeyword(Surrogate owner,
Keyword keyword)
public static boolean genericallyAccessibleTypeP(Surrogate type)
public static RecycleList createRecycleList(Surrogate classtype,
int itemsize)
public static boolean unknownTypeP(Surrogate type)
public static Stella_Object typeToNullValueTree(Surrogate type)
public static Stella_Object setGlobalValue(Surrogate self,
Stella_Object value)
self - value -
public static Stella_Object getGlobalValue(Surrogate self)
self -
public GlobalVariable lookupGlobalVariable()
lookupGlobalVariable in class GeneralizedSymbol
public static boolean optimisticSubtypeOfP(Surrogate subtype,
Surrogate supertype)
public StandardObject yieldTypeSpecifier()
yieldTypeSpecifier in class Stella_Objectpublic static Surrogate canonicalType(Surrogate type)
public static