edu.isi.stella
Class GeneralizedSymbol
java.lang.Object
edu.isi.stella.Stella_Object
edu.isi.stella.StandardObject
edu.isi.stella.ContextSensitiveObject
edu.isi.stella.GeneralizedSymbol
- Direct Known Subclasses:
- Keyword, Surrogate, Symbol
public abstract class GeneralizedSymbol
- extends ContextSensitiveObject
Method Summary |
static Stella_Object |
accessGeneralizedSymbolSlotValue(GeneralizedSymbol self,
Symbol slotname,
Stella_Object value,
boolean setvalueP)
|
static java.lang.String |
constructSymbolConstantName(GeneralizedSymbol symbol)
|
static java.lang.String |
cppChangeCase(GeneralizedSymbol symbol,
Keyword caseconvention)
|
static boolean |
cppQualifyNameP(GeneralizedSymbol namesymbol)
|
static StringWrapper |
cppTranslateClassName(GeneralizedSymbol namesymbol)
|
static StringWrapper |
cppTranslateClassTypename(GeneralizedSymbol namesymbol)
|
static StringWrapper |
cppTranslateSymbolConstantId(GeneralizedSymbol symbol)
|
static StringWrapper |
cppTranslateSymbolConstantName(GeneralizedSymbol symbol)
|
static java.lang.String |
cppYieldNamespacePrefix(GeneralizedSymbol symbol)
|
static Symbol |
createStartupSymbol(GeneralizedSymbol symbol)
|
boolean |
deletedP()
Default deletedP method which always returns FALSE. |
static boolean |
explicitlyQualifiedNameP(GeneralizedSymbol name,
Module definitionmodule)
|
static boolean |
generalizedSymbolLessThanP(GeneralizedSymbol x,
GeneralizedSymbol y)
|
static java.lang.String |
helpCppChangeCase(GeneralizedSymbol symbol,
Keyword caseconvention)
|
static java.lang.String |
idlChangeCase(GeneralizedSymbol symbol,
Keyword caseconvention)
|
static StringWrapper |
idlTranslateClassName(GeneralizedSymbol namesymbol)
|
static StringWrapper |
idlTranslateSymbolConstantId(GeneralizedSymbol symbol)
|
static StringWrapper |
idlTranslateSymbolConstantName(GeneralizedSymbol symbol)
|
static Surrogate |
internDerivedSurrogate(GeneralizedSymbol basesymbol,
java.lang.String newname)
Return a newly-created or existing surrogate with name
newname which is interned in the same module as basesymbol . |
static Symbol |
internDerivedSymbol(GeneralizedSymbol basesymbol,
java.lang.String newname)
Return a newly-created or existing symbol with name
newname which is interned in the same module as basesymbol . |
static java.lang.String |
javaChangeCase(GeneralizedSymbol symbol,
Keyword caseconvention)
|
static StringWrapper |
javaTranslateClassName(GeneralizedSymbol namesymbol)
|
static StringWrapper |
javaTranslateSymbolConstantId(GeneralizedSymbol symbol)
|
static StringWrapper |
javaTranslateSymbolConstantName(GeneralizedSymbol symbol)
|
Keyword |
keywordify()
|
java.lang.String |
localPrintName()
|
GlobalVariable |
lookupGlobalVariable()
Return a global variable with name 'self'. |
static GeneralizedSymbol |
registerSymbol(GeneralizedSymbol symbol)
|
java.lang.String |
relativeName()
|
static boolean |
shadowedSymbolP(GeneralizedSymbol symbol)
Return true if symbol is shadowed in its home module. |
java.lang.String |
visibleName()
|
static Symbol |
yieldSymbolConstantName(GeneralizedSymbol symbol)
|
Methods inherited from class edu.isi.stella.StandardObject |
arrayTypeSpecifierP, baseTypeToTypeSpec, cantOverwriteActiveCollectionSlot, compatibleParameterTypesP, computeAnchoredTypeSpec, computeRelativeTypeSpec, conformingTypeSpecP, copyWrappedLiteral, cppReferenceTypeP, cppReferencizeType, cppTranslateAndPointerizeTypeSpec, cppTranslateAndReferencizeTypeSpec, cppTranslateTypeSpec, dropSlotValue, extractParameterType, extractRequiredArgumentValues, getSlot, hashCode_, idlTranslateTypeSpec, inverseSlotDemon, javaLiteralP, javaNativeLiteralWrapperNames, javaSpecialSetterName, javaTranslateArrayOfTypeSpec, javaTranslateTypeSpec, javaTranslateTypeSpecForFunction, javaTranslateTypeSpecHelper, javaYieldClassObjectArrayExpression, javaYieldClassObjectExpression, javaYieldFullyQualifiedTypeName, javaYieldTranslatedClassAndMethodNames, listifyTypeSpec, lookupClTypeFromStellaType, objectEqlP, putSlotValue, readSlotValue, runConstructorDemons, runDestructorDemons, runSlotDemons, runSlotGuardDemonsP, standardObjectP, subTypeSpecOfP, twoArgumentLeastCommonSupertype, typeSpecToBaseType, typeSpecToClass, typeToWalkedNullValueTree, validateTypeSpecifier, voidP, walkTypeSpecIsNativeTypeP, writeSlotValue, yieldTypeSpecTree |
Methods inherited from class edu.isi.stella.Stella_Object |
_, accessInContext, amPm, anchoredTypeSpecifierP, andOrNotTreeP, applyCoercionMethod, atomicExpressionP, bindToSurrogateP, booleanP, bootstrapIsaP, bquotify, cast, characterP, clTranslateAtomicTree, clTranslateATree, clTranslateBooleanTest, clTranslatePlainBooleanTest, clTranslateVerbatimBodySymbols, clYieldTypedExpressionTree, coerceATree, coerceEvaluatedTree, coerceMvTree, coerceToBoolean, coerceToModule, coerceToModuleName, coerceToSymbol, coerceToXmlElement, coercibleP, collectFeatureList, collectKeyValueList, commonLispSymbolP, computeExpressionType, cons, consify, consifyListsAndIterators, consP, consTreeMatchP, convertToLiteral, copyConsTree, cppArgumentIsStreamP, cppBinaryOperatorP, cppBlockP, cppMaybeOutputStatementWithParentheses, cppOperatorP, cppOutputAtomicExpression, cppOutputLiteral, cppOutputOneActualParameter, cppOutputStatement, cppOutputTypedEntity, cppPrognifyStatement, cppPrognP, cppStatementToList, cppStreamIsStandardOutputP, cpptrans, cppTranslateAtomicTree, cppTranslateATree, cppTranslatedArrayTypeP, csValueP, dateDivider, dateTimeDivider, day, dealWithAmPm, dealWithEra, dealWithNoonMidn, decrementReferenceCount, defaultOptionHandler, defineSystem, defmodule, describe, describeObject, describeTersely, destructureMethodNameTree, deUglifyParseTree, either, eqlP, eqlToBooleanP, eqlToCharacterP, eqlToFloatP, eqlToIntegerP, eqlToStringP, equalConsTreesP, equalHashCode, equalP, era, estimatedEvaluationCost, evaluate, evaluateArgumentTree, evaluateAtomicTree, evaluateCommand, expandBquoteTree, filterModuleP, floatP, free, get, getObject, hashlist, hashMemoizedArguments, helpBquotify, helpClTranslateATree, helpCoerceATree, helpLptrans, helpPrintOutline, helpTransformBooleanProceduralExpression, helpWalkATree, hour, idlOutputAtomicExpression, idlOutputLiteral, idlOutputStatement, idlTranslateAtomicTree, idlTranslateATree, illegalTreeP, implodePathname, incrementallyTranslate, incrementReferenceCount, inlineUnwrapBoolean, inlineWrapBoolean, inModule, integerP, isaP, javaBinaryOperatorP, javaBlockP, javaEndOfLineTokenP, javaHelpOutputPrintStream, javaMaybeOutputStatementWithParentheses, javaOperatorP, javaOutputLiteral, javaOutputStatement, javaPrognP, javaStreamIsStandardOutputP, javaSymbolCaseP, javaTranslateAtomicTree, javaTranslateATree, javaTranslateWithNativeWrapper, jptrans, keywordP, kvCons, legalTokenizerFromStateP, legalTokenizerStateP, legalTokenizerToStateP, literalEqlP, logLevelLE, lptrans, makeFileNameFromRelativePath, makeMemoizedValueEntry, makeMemoizedValueEntryn, matchConsTree, methodSlotP, minute, month, nameToString, nilP, noonMidn, numberWrapperToFloat, objectEqualP, objectHashCode, one, oneI, onlyIf, parametricTypeSpecifierP, parseArrayDimensionsSpec, parseTokenizerCharacterSpec, parseTokenizerStateModifiers, permanentCopy, permanentify, permanentifyForm, po, prettyPrintLiteral, primaryClass, primaryType, printObject, printOutline, printStellaCode, printStellaDefinition, printUndefinedSuperClasses, proceduralExpressionP, ptrans, publicSlots, registerRecycledItem, runOptionHandlerP, safeEqualHashCode, safeHashCode, safePrimaryType, safeYieldTypeSpecifier, searchConsTreeP, searchConsTreeWithFilterP, searchForObject, secondp, sideEffectFreeExpressionP, simplifyBquoteTree, specialp, stella_Increment, stellaClassP, stellaCollectionP, stellaNeedToCompileP, stellaNeedToTranslateP, stellaObjectP, stellify, storageSlotP, stringifyInModule, stringP, substituteConsTree, substituteOnce, surrogateP, surrogatify, sweep, symbolCaseP, symbolP, sysTree, targetLanguageType, taxonomyIsaP, timeDivider, timeMultiply, tokenizerIncludeSpecP, tokenizerToStateAlias, tokenizerToStateName, toString, traceIf, traceKeywordP, transientifyForm, transientObjectP, transientSymbolP, translateWalkedTree, treeSize, treeToTrees, trueOptionP, tryToEvaluate, typeP, typify, unmake, unregisterRecycledItem, updateInContext, valuesTreeP, variableExpressionP, verbatimStringP, verbatimTreeP, vetOptions, vrletExpressionP, walkAtomicTree, walkATree, walkCollectionTree, walkDontCallMeTree, walkedExpressionType, walkExpressionTree, walkMvExpressionTree, walkMvTree, walkStatement, walkTopLevelExpression, walkWithoutTypeTree, warnAboutUnknownSourceType, weekday, withinContext, withinModule, withinWorld, withStellaTokenizer, withSystemDefinition, withTokenizer, wrapperP, wrapWhereTest, xmlAttributeP, xmlCdataFormP, xmlCdataP, xmlDeclarationFormP, xmlDeclarationP, xmlDoctypeFormP, xmlElementFormP, xmlElementP, xmlnsAttributeP, xmlProcessingInstructionFormP, xmlProcessingInstructionP, xmlTagCase, year, yieldCondTest, yieldCondTestOrTests, yieldHardcodedCaseSymbolIdOrIds, yieldInCursorClausesForArgumentList, yieldInCursorClausesForGeneralCollection, yieldInCursorClausesForVector, yieldTypeSpecifier, zone, zoneMinute |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
symbolName
public java.lang.String symbolName
symbolId
public int symbolId
GeneralizedSymbol
public GeneralizedSymbol()
idlTranslateSymbolConstantId
public static StringWrapper idlTranslateSymbolConstantId(GeneralizedSymbol symbol)
idlTranslateSymbolConstantName
public static StringWrapper idlTranslateSymbolConstantName(GeneralizedSymbol symbol)
idlChangeCase
public static java.lang.String idlChangeCase(GeneralizedSymbol symbol,
Keyword caseconvention)
idlTranslateClassName
public static StringWrapper idlTranslateClassName(GeneralizedSymbol namesymbol)
javaTranslateClassName
public static StringWrapper javaTranslateClassName(GeneralizedSymbol namesymbol)
javaTranslateSymbolConstantId
public static StringWrapper javaTranslateSymbolConstantId(GeneralizedSymbol symbol)
javaTranslateSymbolConstantName
public static StringWrapper javaTranslateSymbolConstantName(GeneralizedSymbol symbol)
javaChangeCase
public static java.lang.String javaChangeCase(GeneralizedSymbol symbol,
Keyword caseconvention)
cppTranslateClassName
public static StringWrapper cppTranslateClassName(GeneralizedSymbol namesymbol)
cppTranslateClassTypename
public static StringWrapper cppTranslateClassTypename(GeneralizedSymbol namesymbol)
cppTranslateSymbolConstantId
public static StringWrapper cppTranslateSymbolConstantId(GeneralizedSymbol symbol)
cppTranslateSymbolConstantName
public static StringWrapper cppTranslateSymbolConstantName(GeneralizedSymbol symbol)
cppQualifyNameP
public static boolean cppQualifyNameP(GeneralizedSymbol namesymbol)
cppYieldNamespacePrefix
public static java.lang.String cppYieldNamespacePrefix(GeneralizedSymbol symbol)
helpCppChangeCase
public static java.lang.String helpCppChangeCase(GeneralizedSymbol symbol,
Keyword caseconvention)
cppChangeCase
public static java.lang.String cppChangeCase(GeneralizedSymbol symbol,
Keyword caseconvention)
registerSymbol
public static GeneralizedSymbol registerSymbol(GeneralizedSymbol symbol)
createStartupSymbol
public static Symbol createStartupSymbol(GeneralizedSymbol symbol)
yieldSymbolConstantName
public static Symbol yieldSymbolConstantName(GeneralizedSymbol symbol)
constructSymbolConstantName
public static java.lang.String constructSymbolConstantName(GeneralizedSymbol symbol)
explicitlyQualifiedNameP
public static boolean explicitlyQualifiedNameP(GeneralizedSymbol name,
Module definitionmodule)
lookupGlobalVariable
public GlobalVariable lookupGlobalVariable()
- Return a global variable with name 'self'.
- Returns:
- GlobalVariable
shadowedSymbolP
public static boolean shadowedSymbolP(GeneralizedSymbol symbol)
- Return
true
if symbol
is shadowed in its home module.
- Parameters:
symbol
-
- Returns:
- boolean
visibleName
public java.lang.String visibleName()
relativeName
public java.lang.String relativeName()
localPrintName
public java.lang.String localPrintName()
keywordify
public Keyword keywordify()
deletedP
public boolean deletedP()
- Description copied from class:
Stella_Object
- Default
deletedP
method which always returns FALSE. Objects
that inherit DYNAMIC-SLOTS-MIXIN also inherit the dynamically-allocated slot
deletedObjectP
which is read/writable with specializations of this method.
- Overrides:
deletedP
in class Stella_Object
- Returns:
- boolean
internDerivedSurrogate
public static Surrogate internDerivedSurrogate(GeneralizedSymbol basesymbol,
java.lang.String newname)
- Return a newly-created or existing surrogate with name
newname
which is interned in the same module as basesymbol
.
- Parameters:
basesymbol
- newname
-
- Returns:
- Surrogate
internDerivedSymbol
public static Symbol internDerivedSymbol(GeneralizedSymbol basesymbol,
java.lang.String newname)
- Return a newly-created or existing symbol with name
newname
which is interned in the same module as basesymbol
.
- Parameters:
basesymbol
- newname
-
- Returns:
- Symbol
generalizedSymbolLessThanP
public static boolean generalizedSymbolLessThanP(GeneralizedSymbol x,
GeneralizedSymbol y)
accessGeneralizedSymbolSlotValue
public static Stella_Object accessGeneralizedSymbolSlotValue(GeneralizedSymbol self,
Symbol slotname,
Stella_Object value,
boolean setvalueP)