edu.isi.stella
Class StringWrapper

java.lang.Object
  extended by edu.isi.stella.Stella_Object
      extended by edu.isi.stella.Wrapper
          extended by edu.isi.stella.LiteralWrapper
              extended by edu.isi.stella.StringWrapper
Direct Known Subclasses:
StringLogicWrapper, VerbatimStringWrapper

public class StringWrapper
extends LiteralWrapper


Field Summary
 java.lang.String wrapperValue
           
 
Constructor Summary
StringWrapper()
           
 
Method Summary
static Stella_Object accessStringWrapperSlotValue(StringWrapper self, Symbol slotname, Stella_Object value, boolean setvalueP)
           
 Stella_Object copyWrappedLiteral()
           
static boolean cppCommutativeBinaryOperatorP(StringWrapper operator)
           
static boolean cppIndentableBinaryOperatorP(StringWrapper operator)
           
static boolean cppNestedOperatorNeedsParenthesesP(StringWrapper op, Stella_Object nested)
           
static void cppOutputComment(StringWrapper tree)
           
static void cppOutputFunctionPointer(StringWrapper functionname)
           
static void cppOutputIdentifier(StringWrapper identifier)
           
 void cppOutputLiteral()
           
static void cppOutputMethodPointer(StringWrapper methodname)
           
static void cppOutputStaticMemberVars(StringWrapper renamed_Class, Cons declarations)
           
static void cppOutputVerbatim(StringWrapper verbatimstatement)
           
static Stella_Object defdemon(StringWrapper name, Cons parameterstree, Cons optionsandbody)
          Define a demon name and attach it to a class or slot.
 boolean emptyP()
          Return true if x is the wrapped empty string ""
 int hashCode_()
          Return a hash code for self (can be negative).
static void idlOutputComment(StringWrapper tree)
           
static void idlOutputIdentifier(StringWrapper identifier)
           
 void idlOutputLiteral()
           
static boolean javaCommutativeBinaryOperatorP(StringWrapper operator)
           
static boolean javaIndentableBinaryOperatorP(StringWrapper operator)
           
static boolean javaNestedOperatorNeedsParenthesesP(StringWrapper op, Stella_Object nested)
           
static void javaOutputComment(StringWrapper tree)
           
static void javaOutputIdentifier(StringWrapper identifier)
           
static void javaOutputJavadocComment(StringWrapper tree, Cons parameterNamesAndTypes, StringWrapper returnValue, java.lang.String author, java.lang.String version)
           
 void javaOutputLiteral()
           
static void javaOutputVerbatim(StringWrapper verbatimstatement)
           
static StringWrapper javaTranslateClassNamestring(StringWrapper namestring)
           
 Keyword keywordify()
           
static StringWrapper newStringWrapper(java.lang.String wrapperValue)
           
 boolean nonEmptyP()
          Return true if x is not the wrapped empty string ""
 boolean objectEqlP(Stella_Object y)
           
 Surrogate primaryType()
          Returns the primary type of self.
 void printObject(java.io.PrintStream stream)
           
static java.lang.String unwrapString(StringWrapper wrapper)
          Unwrap wrapper and return the result.
static boolean wrappedStringLessThanP(StringWrapper x, StringWrapper y)
           
static StringWrapper wrapString(java.lang.String value)
          Return a literal object whose value is the STRING 'value'.
 
Methods inherited from class edu.isi.stella.LiteralWrapper
permanentify
 
Methods inherited from class edu.isi.stella.Wrapper
objectEqualP, terminateWrapperP, walkAtomicTree, wrapperValueType
 
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, cppOutputOneActualParameter, cppOutputStatement, cppOutputTypedEntity, cppPrognifyStatement, cppPrognP, cppStatementToList, cppStreamIsStandardOutputP, cpptrans, cppTranslateAtomicTree, cppTranslateATree, cppTranslatedArrayTypeP, csValueP, dateDivider, dateTimeDivider, day, dealWithAmPm, dealWithEra, dealWithNoonMidn, decrementReferenceCount, defaultOptionHandler, defineSystem, defmodule, deletedP, 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, homeModule, hour, idlOutputAtomicExpression, idlOutputStatement, idlTranslateAtomicTree, idlTranslateATree, illegalTreeP, implodePathname, incrementallyTranslate, incrementReferenceCount, inlineUnwrapBoolean, inlineWrapBoolean, inModule, integerP, isaP, javaBinaryOperatorP, javaBlockP, javaEndOfLineTokenP, javaHelpOutputPrintStream, javaMaybeOutputStatementWithParentheses, javaOperatorP, 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, objectHashCode, one, oneI, onlyIf, parametricTypeSpecifierP, parseArrayDimensionsSpec, parseOptions, parseTokenizerCharacterSpec, parseTokenizerStateModifiers, permanentCopy, permanentifyForm, po, prettyPrintLiteral, primaryClass, printOutline, printStellaCode, printStellaDefinition, printUndefinedSuperClasses, proceduralExpressionP, ptrans, publicSlots, registerRecycledItem, runOptionHandlerP, safeEqualHashCode, safeHashCode, safePrimaryType, safeYieldTypeSpecifier, searchConsTreeP, searchConsTreeWithFilterP, searchForObject, secondp, setProperty, sideEffectFreeExpressionP, simplifyBquoteTree, specialp, standardObjectP, 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, 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

wrapperValue

public java.lang.String wrapperValue
Constructor Detail

StringWrapper

public StringWrapper()
Method Detail

wrapString

public static StringWrapper wrapString(java.lang.String value)
Return a literal object whose value is the STRING 'value'.

Parameters:
value -
Returns:
StringWrapper

newStringWrapper

public static StringWrapper newStringWrapper(java.lang.String wrapperValue)

idlOutputIdentifier

public static void idlOutputIdentifier(StringWrapper identifier)

idlOutputComment

public static void idlOutputComment(StringWrapper tree)

idlOutputLiteral

public void idlOutputLiteral()
Overrides:
idlOutputLiteral in class Stella_Object

javaNestedOperatorNeedsParenthesesP

public static boolean javaNestedOperatorNeedsParenthesesP(StringWrapper op,
                                                          Stella_Object nested)

javaCommutativeBinaryOperatorP

public static boolean javaCommutativeBinaryOperatorP(StringWrapper operator)

javaIndentableBinaryOperatorP

public static boolean javaIndentableBinaryOperatorP(StringWrapper operator)

javaOutputVerbatim

public static void javaOutputVerbatim(StringWrapper verbatimstatement)

javaOutputJavadocComment

public static void javaOutputJavadocComment(StringWrapper tree,
                                            Cons parameterNamesAndTypes,
                                            StringWrapper returnValue,
                                            java.lang.String author,
                                            java.lang.String version)

javaOutputComment

public static void javaOutputComment(StringWrapper tree)

javaOutputLiteral

public void javaOutputLiteral()
Overrides:
javaOutputLiteral in class Stella_Object

javaOutputIdentifier

public static void javaOutputIdentifier(StringWrapper identifier)

javaTranslateClassNamestring

public static StringWrapper javaTranslateClassNamestring(StringWrapper namestring)

cppOutputStaticMemberVars

public static void cppOutputStaticMemberVars(StringWrapper renamed_Class,
                                             Cons declarations)

cppNestedOperatorNeedsParenthesesP

public static boolean cppNestedOperatorNeedsParenthesesP(StringWrapper op,
                                                         Stella_Object nested)

cppCommutativeBinaryOperatorP

public static boolean cppCommutativeBinaryOperatorP(StringWrapper operator)

cppIndentableBinaryOperatorP

public static boolean cppIndentableBinaryOperatorP(StringWrapper operator)

cppOutputIdentifier

public static void cppOutputIdentifier(StringWrapper identifier)

cppOutputLiteral

public void cppOutputLiteral()
Overrides:
cppOutputLiteral in class Stella_Object

cppOutputMethodPointer

public static void cppOutputMethodPointer(StringWrapper methodname)

cppOutputFunctionPointer

public static void cppOutputFunctionPointer(StringWrapper functionname)

cppOutputComment

public static void cppOutputComment(StringWrapper tree)

cppOutputVerbatim

public static void cppOutputVerbatim(StringWrapper verbatimstatement)

defdemon

public static Stella_Object defdemon(StringWrapper name,
                                     Cons parameterstree,
                                     Cons optionsandbody)
Define a demon name and attach it to a class or slot.

Parameters:
name -
parameterstree -
optionsandbody -
Returns:
Stella_Object

objectEqlP

public boolean objectEqlP(Stella_Object y)
Overrides:
objectEqlP in class Stella_Object

copyWrappedLiteral

public Stella_Object copyWrappedLiteral()
Overrides:
copyWrappedLiteral in class LiteralWrapper

unwrapString

public static java.lang.String unwrapString(StringWrapper wrapper)
Unwrap wrapper and return the result. Return NULL if wrapper is NULL.

Parameters:
wrapper -
Returns:
String

keywordify

public Keyword keywordify()

wrappedStringLessThanP

public static boolean wrappedStringLessThanP(StringWrapper x,
                                             StringWrapper y)

hashCode_

public int hashCode_()
Description copied from class: Stella_Object
Return a hash code for self (can be negative). Two objects that are eqlP are guaranteed to generate the same hash code. Two objects that are not eqlP do not necessarily generate different hash codes.

Overrides:
hashCode_ in class Wrapper
Returns:
int

nonEmptyP

public boolean nonEmptyP()
Return true if x is not the wrapped empty string ""

Returns:
boolean

emptyP

public boolean emptyP()
Return true if x is the wrapped empty string ""

Returns:
boolean

printObject

public void printObject(java.io.PrintStream stream)
Overrides:
printObject in class Stella_Object

accessStringWrapperSlotValue

public static Stella_Object accessStringWrapperSlotValue(StringWrapper self,
                                                         Symbol slotname,
                                                         Stella_Object value,
                                                         boolean setvalueP)

primaryType

public Surrogate primaryType()
Description copied from class: Stella_Object
Returns the primary type of self. Gets defined automatically for every non-abstract subclass of OBJECT.

Overrides:
primaryType in class Stella_Object
Returns:
Surrogate