edu.isi.stella
Class IntegerWrapper

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.NumberWrapper
                  extended by edu.isi.stella.IntegerWrapper
Direct Known Subclasses:
IntegerLogicWrapper

public class IntegerWrapper
extends NumberWrapper


Field Summary
 int wrapperValue
           
 
Constructor Summary
IntegerWrapper()
           
 
Method Summary
static Stella_Object accessIntegerWrapperSlotValue(IntegerWrapper self, Symbol slotname, Stella_Object value, boolean setvalueP)
           
 Stella_Object copyWrappedLiteral()
           
 void cppOutputLiteral()
           
 int hashCode_()
          Return a hash code for self (can be negative).
 void javaOutputLiteral()
           
static IntegerWrapper newIntegerWrapper(int wrapperValue)
           
 double numberWrapperToFloat()
           
 boolean objectEqlP(Stella_Object y)
           
 Surrogate primaryType()
          Returns the primary type of self.
 void printObject(java.io.PrintStream stream)
           
static Stella_Object safety(IntegerWrapper level, Stella_Object test, Cons body)
          Signal warning message, placing non-string arguments in quotes.
 boolean terminateWrapperP()
           
static int unwrapInteger(IntegerWrapper wrapper)
          Unwrap wrapper and return the result.
static IntegerWrapper wrapInteger(int value)
          Return a literal object whose value is the INTEGER 'value'.
static boolean wrappedIntegerLessThanP(IntegerWrapper x, IntegerWrapper y)
           
 
Methods inherited from class edu.isi.stella.LiteralWrapper
permanentify
 
Methods inherited from class edu.isi.stella.Wrapper
objectEqualP, walkAtomicTree, wrapperValueType
 
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, 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, 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, homeModule, hour, idlOutputAtomicExpression, idlOutputLiteral, 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, kvCons, legalTokenizerFromStateP, legalTokenizerStateP, legalTokenizerToStateP, literalEqlP, logLevelLE, lptrans, makeFileNameFromRelativePath, makeMemoizedValueEntry, makeMemoizedValueEntryn, matchConsTree, methodSlotP, minute, month, nameToString, nilP, noonMidn, objectHashCode, one, oneI, onlyIf, parametricTypeSpecifierP, parseArrayDimensionsSpec, parseTokenizerCharacterSpec, parseTokenizerStateModifiers, permanentCopy, permanentifyForm, po, prettyPrintLiteral, primaryClass, printOutline, printStellaCode, printStellaDefinition, printUndefinedSuperClasses, proceduralExpressionP, ptrans, publicSlots, registerRecycledItem, runOptionHandlerP, safeEqualHashCode, safeHashCode, safePrimaryType, safeYieldTypeSpecifier, searchConsTreeP, searchConsTreeWithFilterP, searchForObject, secondp, 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, 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
 

Field Detail

wrapperValue

public int wrapperValue
Constructor Detail

IntegerWrapper

public IntegerWrapper()
Method Detail

wrapInteger

public static IntegerWrapper wrapInteger(int value)
Return a literal object whose value is the INTEGER 'value'.

Parameters:
value -
Returns:
IntegerWrapper

newIntegerWrapper

public static IntegerWrapper newIntegerWrapper(int wrapperValue)

javaOutputLiteral

public void javaOutputLiteral()
Overrides:
javaOutputLiteral in class Stella_Object

cppOutputLiteral

public void cppOutputLiteral()
Overrides:
cppOutputLiteral in class Stella_Object

numberWrapperToFloat

public double numberWrapperToFloat()
Overrides:
numberWrapperToFloat in class 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

unwrapInteger

public static int unwrapInteger(IntegerWrapper wrapper)
Unwrap wrapper and return the result. Return NULL if wrapper is NULL.

Parameters:
wrapper -
Returns:
int

terminateWrapperP

public boolean terminateWrapperP()
Overrides:
terminateWrapperP in class Wrapper

wrappedIntegerLessThanP

public static boolean wrappedIntegerLessThanP(IntegerWrapper x,
                                              IntegerWrapper 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

safety

public static Stella_Object safety(IntegerWrapper level,
                                   Stella_Object test,
                                   Cons body)
Signal warning message, placing non-string arguments in quotes.

Parameters:
level -
test -
body -
Returns:
Stella_Object

printObject

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

accessIntegerWrapperSlotValue

public static Stella_Object accessIntegerWrapperSlotValue(IntegerWrapper 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