edu.isi.stella
Class GeneralizedSymbol

java.lang.Object
  extended by edu.isi.stella.Stella_Object
      extended by edu.isi.stella.StandardObject
          extended by edu.isi.stella.ContextSensitiveObject
              extended by edu.isi.stella.GeneralizedSymbol
Direct Known Subclasses:
Keyword, Surrogate, Symbol

public abstract class GeneralizedSymbol
extends ContextSensitiveObject


Field Summary
 int symbolId
           
 java.lang.String symbolName
           
 
Fields inherited from class edu.isi.stella.ContextSensitiveObject
homeContext
 
Constructor Summary
GeneralizedSymbol()
           
 
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 GeneralizedSymbol getGeneralizedSymbolFromOffset(ExtensibleSymbolArray symbolarray, int offset)
           
static java.lang.String helpCppChangeCase(GeneralizedSymbol symbol, Keyword caseconvention)
           
static GeneralizedSymbol helpInternGeneralizedSymbol(java.lang.String name, int kindofsym, ExtensibleSymbolArray array, int offset, Module module)
           
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 GeneralizedSymbol internRigidSymbolCaseSensitively(java.lang.String name, int kindofsym, boolean tryupcasingP)
           
static GeneralizedSymbol internRigidSymbolLocally(java.lang.String name, Module module, int kindofsym)
          Return a newly-created or existing rigid symbol interned into the module module with name name.
static GeneralizedSymbol internRigidSymbolWrtModule(java.lang.String name, Module module, int kindofsym)
          Return a newly-created or existing rigid symbol with name name.
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(boolean readableP)
           
 GlobalVariable lookupGlobalVariable()
          Return a global variable with name 'self'.
static GeneralizedSymbol lookupRigidSymbol(java.lang.String name, int kindofsym)
          Return the permanent symbol with name 'name' and type kindofsym visible from the current module (case-sensitive).
static GeneralizedSymbol lookupRigidSymbolLocally(java.lang.String name, Module module, int kindofsym)
           
static GeneralizedSymbol registerSymbol(GeneralizedSymbol symbol)
           
 java.lang.String relativeName(boolean readableP)
           
static boolean shadowedSymbolP(GeneralizedSymbol symbol)
          Return true if symbol is shadowed in its home module.
 java.lang.String visibleName(boolean readableP)
           
static Symbol yieldSymbolConstantName(GeneralizedSymbol symbol)
           
 
Methods inherited from class edu.isi.stella.ContextSensitiveObject
homeModule
 
Methods inherited from class edu.isi.stella.StandardObject
arrayTypeSpecifierP, baseTypeToTypeSpec, cantOverwriteActiveCollectionSlot, compatibleParameterTypesP, computeAnchoredTypeSpec, computeRelativeTypeSpec, conformingTypeSpecP, copyWrappedLiteral, cppNonPointerTypeP, cppReferenceTypeP, cppReferencizeType, cppTranslateAndPointerizeTypeSpec, cppTranslateAndReferencizeTypeSpec, cppTranslateTypeSpec, cppTypeWithoutInteriorPointersP, 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, addPropertyValue, amPm, anchoredTypeSpecifierP, andOrNotTreeP, applyCoercionMethod, atomicExpressionP, bindToSurrogateP, booleanP, bootstrapIsaP, bquotify, cast, characterP, chooseSortPredicate, clConditionalizeTypeDeclarationTree, clTranslateAtomicTree, clTranslateATree, clTranslateBooleanTest, clTranslatePlainBooleanTest, clTranslateVerbatimBodySymbols, clYieldTypedExpressionTree, coerceATree, coerceEvaluatedTree, coerceMvTree, coerceOptionValue, coerceToBoolean, coerceToFloat, coerceToHashSet, coerceToModule, coerceToModuleName, coerceToString, coerceToSymbol, coerceToXmlElement, coerceValueToBoolean, coerceValueToFloat, coerceValueToString, coerceValueToType, coercibleP, collectFeatureList, collectKeyValueList, commonLispSymbolP, computeExpressionType, 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, eqlToLongIntegerP, eqlToStringP, equalConsTreesP, equalHashCode, equalP, era, estimatedEvaluationCost, evaluate, evaluateArgumentTree, evaluateAtomicTree, evaluateCommand, expandBquoteTree, filterModuleP, floatP, free, get, getObject, getProperty, 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, legalTokenizerFromStateP, legalTokenizerStateP, legalTokenizerToStateP, literalEqlP, logLevelLE, longIntegerP, lptrans, makeEvaluatableBquoteTree, makeFileNameFromRelativePath, makeMemoizedValueEntry, makeMemoizedValueEntryn, matchConsTree, methodSlotP, minute, month, nameToString, nilP, noonMidn, numberWrapperToFloat, objectEqualP, objectHashCode, one, oneI, onlyIf, parametricTypeSpecifierP, parseArrayDimensionsSpec, parseOptions, 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, setProperty, 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, walkedExpressionExpression, walkedExpressionType, walkExpressionTree, walkMvExpressionTree, walkMvTree, walkStatement, walkTopLevelExpression, walkWithoutTypeTree, warnAboutUnknownSourceType, weekday, withinContext, withinModule, withinWorld, withStellaTokenizer, withSystemDefinition, withTokenizer, wrapperP, wrapWhereTest, xmlAttributeP, xmlBaseAttributeP, xmlCdataFormP, xmlCdataP, xmlDeclarationFormP, xmlDeclarationP, xmlDoctypeFormP, xmlElementFormP, xmlElementP, xmlGlobalAttributeP, xmlLocalAttributeP, 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
 

Field Detail

symbolName

public java.lang.String symbolName

symbolId

public int symbolId
Constructor Detail

GeneralizedSymbol

public GeneralizedSymbol()
Method Detail

internRigidSymbolCaseSensitively

public static GeneralizedSymbol internRigidSymbolCaseSensitively(java.lang.String name,
                                                                 int kindofsym,
                                                                 boolean tryupcasingP)

internRigidSymbolLocally

public static GeneralizedSymbol internRigidSymbolLocally(java.lang.String name,
                                                         Module module,
                                                         int kindofsym)
Return a newly-created or existing rigid symbol interned into the module module with name name.

Parameters:
name -
module -
kindofsym -
Returns:
GeneralizedSymbol

internRigidSymbolWrtModule

public static GeneralizedSymbol internRigidSymbolWrtModule(java.lang.String name,
                                                           Module module,
                                                           int kindofsym)
Return a newly-created or existing rigid symbol with name name.

Parameters:
name -
module -
kindofsym -
Returns:
GeneralizedSymbol

helpInternGeneralizedSymbol

public static GeneralizedSymbol helpInternGeneralizedSymbol(java.lang.String name,
                                                            int kindofsym,
                                                            ExtensibleSymbolArray array,
                                                            int offset,
                                                            Module module)

lookupRigidSymbol

public static GeneralizedSymbol lookupRigidSymbol(java.lang.String name,
                                                  int kindofsym)
Return the permanent symbol with name 'name' and type kindofsym visible from the current module (case-sensitive).

Parameters:
name -
kindofsym -
Returns:
GeneralizedSymbol

lookupRigidSymbolLocally

public static GeneralizedSymbol lookupRigidSymbolLocally(java.lang.String name,
                                                         Module module,
                                                         int kindofsym)

getGeneralizedSymbolFromOffset

public static GeneralizedSymbol getGeneralizedSymbolFromOffset(ExtensibleSymbolArray symbolarray,
                                                               int offset)

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(boolean readableP)

relativeName

public java.lang.String relativeName(boolean readableP)

localPrintName

public java.lang.String localPrintName(boolean readableP)

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

generalizedSymbolLessThanP

public static boolean generalizedSymbolLessThanP(GeneralizedSymbol x,
                                                 GeneralizedSymbol y)

accessGeneralizedSymbolSlotValue

public static Stella_Object accessGeneralizedSymbolSlotValue(GeneralizedSymbol self,
                                                             Symbol slotname,
                                                             Stella_Object value,
                                                             boolean setvalueP)