|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.isi.stella.Stella_Object edu.isi.stella.StandardObject edu.isi.stella.Cons
public class Cons
Field Summary | |
---|---|
Cons |
rest
|
Stella_Object |
value
|
Constructor Summary | |
---|---|
Cons()
|
Method Summary | |
---|---|
static Stella_Object |
accessConsSlotValue(Cons self,
Symbol slotname,
Stella_Object value,
boolean setvalueP)
|
static void |
addConsToEndOfConsList(Cons self,
Cons lastcons)
|
static List |
addTraceEvaluatorWrapper(Cons arguments)
|
static Stella_Object |
allDefinedP(Cons forms)
Evaluate each of the forms in 'forms', and return TRUE if none of them are NULL. |
Iterator |
allocateDestructiveListIterator()
|
ConsIterator |
allocateIterator()
|
static Cons |
append(Cons conslist1,
Cons conslist2)
Return a cons list representing the concatenation of conslist1 and conslist2 . |
static Cons |
attachUnhandledCaseErrorClause(Cons casetree,
Stella_Object testtree)
|
static boolean |
badArgumentCountP(Cons tree,
int arity)
|
static boolean |
badArgumentRangeP(Cons tree,
int minarity,
int maxarity)
|
static double |
base60ToFloat(Cons l)
Converts (x y z) into a float. |
Iterator |
butLast()
Generate all but the last element of the cons list self . |
static void |
callClearModuleEvaluatorWrapper(Cons arguments)
|
static Context |
cccEvaluatorWrapper(Cons arguments)
|
static Context |
ccEvaluatorWrapper(Cons arguments)
|
static java.lang.reflect.Method |
chooseSortPredicate(Cons self)
|
static boolean |
clCompileAndLoadFiles(Cons files,
boolean relativeP,
boolean forcerecompilationP)
|
static void |
clearModuleEvaluatorWrapper(Cons arguments)
|
static Cons |
clTranslateArefTree(Cons tree)
|
static Stella_Object |
clTranslateArgumentListTree(Cons tree)
|
static Stella_Object |
clTranslateBadSys(Cons tree)
|
static Cons |
clTranslateBooleanTree(Cons tree)
|
static Cons |
clTranslateCallFunctionCodeTree(Cons tree)
|
static Stella_Object |
clTranslateCallMethodTree(Cons tree)
|
static Cons |
clTranslateCaseTree(Cons tree)
|
static Stella_Object |
clTranslateCastTree(Cons tree)
|
static Cons |
clTranslateConditionalTree(Cons tree)
|
static Cons |
clTranslateCondTree(Cons tree)
|
static Cons |
clTranslateFixedSlotValueSetterTree(Cons tree)
|
static Cons |
clTranslateFixedSlotValueTree(Cons tree)
|
static Cons |
clTranslateForeachTree(Cons tree)
|
static Cons |
clTranslateHandleExceptionTree(Cons tree)
|
static Cons |
clTranslateHandlerCaseTree(Cons tree)
|
static Stella_Object |
clTranslateInlineCallTree(Cons tree)
|
static Cons |
clTranslateInlineTree(Cons tree)
|
static Cons |
clTranslateLetTree(Cons tree,
boolean specialP)
|
static Cons |
clTranslateListOfTrees(Cons trees)
|
static Cons |
clTranslateMakeTree(Cons tree)
|
static Cons |
clTranslateNewArrayTree(Cons tree)
|
static Cons |
clTranslateNewTree(Cons tree)
|
static Cons |
clTranslateNthTree(Cons tree)
|
static Cons |
clTranslateOperatorTree(Cons tree)
|
static Cons |
clTranslatePrintStreamTree(Cons tree)
|
static Stella_Object |
clTranslateReturnTree(Cons tree)
|
static Cons |
clTranslateSetqTree(Cons tree)
|
static Cons |
clTranslateSignalTree(Cons tree)
|
static Cons |
clTranslateSpecialTree(Cons tree)
|
static Cons |
clTranslateStartupTimePrognTree(Cons tree)
|
static Cons |
clTranslateTheCodeTree(Cons tree)
|
static Stella_Object |
clTranslateTypedSys(Cons tree)
|
static Cons |
clTranslateUnwindProtectTree(Cons tree)
|
static Stella_Object |
clTranslateVerbatimTree(Cons tree)
|
static Cons |
clTranslateVoidSys(Cons tree)
|
static Cons |
clTranslateWhileTree(Cons tree)
|
static Cons |
clYieldDeclareTree(Cons declarations,
boolean includeTypeChecksP)
|
static Cons |
clYieldLetVariableTypeDeclarationTrees(Cons bindingstree)
|
static Stella_Object |
collect(Cons body)
Use a VRLET to collect values. |
static Cons |
collectCursorClauses(Cons cursorstree,
boolean dontoptimizeP,
java.lang.Object[] MV_returnarray)
|
static boolean |
compileAndLoadFiles(Cons files,
Keyword language,
boolean forcerecompilationP)
|
static java.lang.String |
composeNamestring(Cons nameComponents,
Cons options)
nameComponents is a cons to be processed into a namestring. |
static java.lang.String |
composeNamestringFull(Cons strings,
java.lang.String prefix,
java.lang.String suffix,
Keyword outputcase,
java.lang.String outputseparator,
StringHashTable translationtable,
boolean useacronymheuristicsP)
Non-keyword version of composeNamestring , which will probably be
easier to use when called from non-Lisp languages. |
Cons |
concatenate(Cons list2,
Cons otherlists)
Return a cons list consisting of the concatenation of list1 , list2 , and otherlists . |
static Cons |
condTreeToIfTree(Cons tree)
|
Cons |
consify()
Return self . |
static Stella_Object |
consTreeNth(Cons tree,
Cons index)
Access an arbitrary element of tree identified by a path
specified as a list of index values. |
static Cons |
consTreeNthRest(Cons tree,
Cons index)
Access an arbitrary sublist of tree identified by a path
specified as a list of index values. |
static Stella_Object |
continuableError(Cons body)
Signal error message, placing non-string arguments in quotes. |
static Cons |
copyConsList(Cons self)
Return a copy of the cons list self . |
static int |
countCaseTestClauses(Cons tree,
java.lang.Object[] MV_returnarray)
|
static boolean |
cppAssignmentP(Cons statement)
|
static Cons |
cppFlattenStatements(Cons statements)
|
static void |
cppHelpOutputBinaryOperator(Cons expression,
int nestlevel)
|
static boolean |
cppIndentStatementP(Cons statement)
|
static boolean |
cppLastStatementIsReturnP(Cons statements)
|
static void |
cppOutputActualParameters(Cons parameters)
|
static void |
cppOutputArrayReference(Cons tree)
|
static void |
cppOutputAssignment(Cons assignment)
|
static void |
cppOutputBinaryOperator(Cons expression)
|
static void |
cppOutputBlock(Cons block)
|
static void |
cppOutputCase(Cons renamed_Case)
|
static void |
cppOutputCast(Cons tree)
|
static void |
cppOutputCatch(Cons tree)
|
static void |
cppOutputClass(Cons classdef)
|
static void |
cppOutputClassHeadDeclarations(Cons classes)
|
static void |
cppOutputCond(Cons cond)
|
static void |
cppOutputDefprint(Cons defprint)
|
static void |
cppOutputDefprintSignature(Cons defprint)
|
static void |
cppOutputDereference(Cons tree)
|
static void |
cppOutputDerivedClasses(Cons classlist)
|
static void |
cppOutputForeach(Cons loop)
|
static void |
cppOutputFormalParameters(Cons parameters)
|
static void |
cppOutputFuncall(Cons funcall)
|
static void |
cppOutputFuncallFunctionSignature(Cons signature)
|
static void |
cppOutputFunction(Cons function)
|
static void |
cppOutputFunctionCall(Cons functioncall)
|
static void |
cppOutputFunctionSignature(Cons function)
|
static void |
cppOutputGlobalDeclaration(Cons global)
|
static void |
cppOutputHandlerCase(Cons tree)
|
static void |
cppOutputIf(Cons tree)
|
void |
cppOutputLiteral()
|
static void |
cppOutputLoop(Cons loop)
|
static void |
cppOutputMake(Cons statement)
|
static void |
cppOutputMethodCall(Cons methodcall)
|
static void |
cppOutputMethodCodeCall(Cons methodcall)
|
static void |
cppOutputMethodCodeCallSignature(Cons signature)
|
static void |
cppOutputMethodSetterCall(Cons methodsettercall)
|
static void |
cppOutputParseTree(Cons constree)
|
static void |
cppOutputPrintNativeStream(Cons exps)
|
static void |
cppOutputPrintStream(Cons exps)
|
static void |
cppOutputProgn(Cons progn)
|
static void |
cppOutputReferencedMethodCall(Cons methodcall)
|
static void |
cppOutputReferencedSlotValue(Cons statement)
|
static void |
cppOutputReturn(Cons returnstatement)
|
static boolean |
cppOutputSemicolonP(Cons statement)
|
static void |
cppOutputSignal(Cons tree)
|
static void |
cppOutputSignature(Cons signature,
boolean outputmethodclassP)
|
static void |
cppOutputSlotValue(Cons statement)
|
static void |
cppOutputSlotValueSetter(Cons statement)
|
static void |
cppOutputStatementLine(Cons statement)
|
static void |
cppOutputStatements(Cons statementlist)
|
static void |
cppOutputStreamPrintItems(Cons items)
|
static void |
cppOutputTemplateParameters(Cons parameters)
|
static void |
cppOutputTernaryOperator(Cons expression)
|
static Stella_Object |
cppOutputToString(Cons statement)
|
static void |
cppOutputTypeExpression(Cons typeexpression)
|
static void |
cppOutputUnaryOperator(Cons expression)
|
static void |
cppOutputUnless(Cons tree)
|
static void |
cppOutputUnwindProtect(Cons tree)
|
static void |
cppOutputVariableDefinition(Cons variable)
|
static void |
cppOutputWhen(Cons tree)
|
static void |
cppOutputWhile(Cons loop)
|
static void |
cppOutputWithProcessLock(Cons synch)
|
static Cons |
cppTranslateActualParameters(Cons tree)
|
static Stella_Object |
cppTranslateBadSys(Cons tree)
|
static Cons |
cppTranslateBreak(Cons tree)
|
static Cons |
cppTranslateCallFunctionCode(Cons tree)
|
static Cons |
cppTranslateCallMethodCode(Cons tree)
|
static Cons |
cppTranslateCallMethodSetter(Cons tree)
|
static Cons |
cppTranslateCaseTree(Cons tree)
|
static Cons |
cppTranslateCast(Cons tree)
|
static Cons |
cppTranslateChooseTree(Cons tree)
|
static Cons |
cppTranslateCodeSignature(Cons signature)
|
static Cons |
cppTranslateCondition(Cons condition,
boolean symbolcasep)
|
static Cons |
cppTranslateCondTree(Cons tree)
|
static Cons |
cppTranslateContinue(Cons tree)
|
static Cons |
cppTranslateForeachTree(Cons tree)
|
static Cons |
cppTranslateFunctionCall(Cons tree,
MethodSlot method)
|
static Cons |
cppTranslateHandleException(Cons tree)
|
static Cons |
cppTranslateHandlerCase(Cons tree)
|
static Cons |
cppTranslateIfTree(Cons tree)
|
static Stella_Object |
cppTranslateInlineCallTree(Cons tree)
|
static Cons |
cppTranslateInlineTree(Cons tree)
|
static Cons |
cppTranslateLetTree(Cons tree)
|
static Cons |
cppTranslateListOfTrees(Cons trees)
|
static Cons |
cppTranslateLoop(Cons tree)
|
static Cons |
cppTranslateMakeTree(Cons tree)
|
static Cons |
cppTranslateMethodCall(Cons tree,
boolean referencedP)
|
static Cons |
cppTranslateMethodCodeSignature(Cons signature)
|
static Cons |
cppTranslateMvFunctionCall(Cons functioncall,
Cons variables)
|
static Cons |
cppTranslateMvSetq(Cons tree)
|
static Cons |
cppTranslateNewArray(Cons tree)
|
static Cons |
cppTranslateOperatorCall(Cons operatornames,
Cons arguments,
int arity)
|
static Cons |
cppTranslateOperatorTree(Cons tree)
|
static Cons |
cppTranslatePrintNativeStream(Cons tree)
|
static Cons |
cppTranslatePrintStream(Cons tree)
|
static Cons |
cppTranslateProgn(Cons tree)
|
static Cons |
cppTranslateReturnTree(Cons tree)
|
static Cons |
cppTranslateSetqTree(Cons tree)
|
static Cons |
cppTranslateSignal(Cons tree)
|
static Cons |
cppTranslateSpecialTree(Cons tree)
|
static Cons |
cppTranslateStartupTimeProgn(Cons tree)
|
static Cons |
cppTranslateSysNew(Cons tree)
|
static Cons |
cppTranslateSysPointerToFunction(Cons tree)
|
static Cons |
cppTranslateSysReferencedSlotValue(Cons tree)
|
static Cons |
cppTranslateSysSlotValue(Cons tree)
|
static Cons |
cppTranslateSysSlotValueSetter(Cons tree)
|
static Cons |
cppTranslateTheCode(Cons tree)
|
static Cons |
cppTranslateTypedSys(Cons tree)
|
static Cons |
cppTranslateUnlessTree(Cons tree)
|
static Cons |
cppTranslateUnwindProtect(Cons tree)
|
static Cons |
cppTranslateVariableLengthActuals(Cons actuals,
MethodSlot method)
|
static Cons |
cppTranslateVerbatimTree(Cons tree)
|
static Cons |
cppTranslateVoidSys(Cons tree)
|
static Cons |
cppTranslateWhenTree(Cons tree)
|
static Cons |
cppTranslateWhile(Cons tree)
|
static Cons |
cppTranslateWithProcessLock(Cons tree)
|
static java.lang.String |
createAnnotation(Cons topLevelTree)
|
static boolean |
declarationTreeP(Cons tree)
|
static Stella_Class |
defineClassFromParseTree(Cons parsetree)
|
static StorageSlot |
defineExternalSlotFromParseTree(Cons parsetree)
|
static MethodSlot |
defineMethodFromParseTree(Cons parsetree)
|
static GlobalVariable |
defineStellaGlobalVariableFromParseTree(Cons tree,
java.lang.String stringifiedsource,
java.lang.Object[] MV_returnarray)
|
static Surrogate |
defineStellaTypeFromParseTree(Cons tree)
|
static StorageSlot |
defineStorageSlotFromParseTree(Cons slotdef,
Surrogate owner)
|
static Stella_Object |
defmain(Cons varlist,
Cons body)
Defines a function called MAIN which will have the appropriate signature for the target translation language. |
static void |
defmoduleEvaluatorWrapper(Cons arguments)
|
static SystemDefinition |
defsystemEvaluatorWrapper(Cons arguments)
|
static Cons |
deleteQuotedNullStatements(Cons trees)
|
static void |
describeEvaluatorWrapper(Cons arguments)
|
static Symbol |
destructureCallTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
destructureDefdemonBody(Cons demontree,
java.lang.Object[] MV_returnarray)
|
static Stella_Object |
destructureDefmethodTree(Cons methodTree,
KeyValueList optionsTable,
java.lang.Object[] MV_returnarray)
Return three parse trees representing the name, parameters, and code body of the parse tree methodTree . |
static Cons |
deUglifyArguments(Cons uglyarguments)
|
Cons |
difference(Cons otherlist)
Return the set difference of self and otherlist (i.e., all elements
that are in self but not in otherSet ). |
static List |
dropTraceEvaluatorWrapper(Cons arguments)
|
static Cons |
eliminateVrletStatement(Cons tree)
|
boolean |
emptyP()
Return true iff self equals nil . |
int |
equalHashCode()
Return an equalP hash code for self . |
boolean |
equivalentSetsP(Cons otherlist)
Return true if every element of self occurs in otherlist and vice versa. |
static Stella_Object |
error(Cons body)
Signal error message, placing non-string arguments in quotes. |
static Stella_Object |
evaluateConsTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Stella_Object |
evaluationError(Cons body)
|
static Stella_Object |
expandMacro(Cons tree)
|
static Cons |
expandMarkupTagFunction(Cons tagAndStream,
Cons body,
boolean xmlP)
|
static Cons |
extractDoClause(Cons tail,
java.lang.Object[] MV_returnarray)
|
static Cons |
extractGeneratorsClause(Cons tail,
java.lang.Object[] MV_returnarray)
|
static Cons |
extractOneGeneratorTerm(Cons tail,
java.lang.Object[] MV_returnarray)
|
static Cons |
extractOneInClause(Cons tail,
java.lang.Object[] MV_returnarray)
|
static Cons |
extractOptions(Cons tree,
KeyValueList optionstable)
|
static Keyword |
extractStartupTimePhase(Cons tree)
|
Stella_Object |
fifth()
Return the fifth element of self . |
Stella_Object |
fifthSetter(Stella_Object value)
|
static Cons |
filesPlusSystemStartup(Cons files)
|
static Cons |
findMemoizedValueEntry(Cons bucket,
Stella_Object arg1,
Stella_Object arg2,
Stella_Object arg3,
Stella_Object arg4,
int eqvector,
boolean deleteentryP)
|
static Cons |
findMemoizedValueEntryn(Cons bucket,
Cons tuple,
int eqvector,
boolean deleteentryP)
|
static Cons |
finishWalkingEqlTree(Cons tree,
Surrogate type1,
Surrogate type2,
java.lang.Object[] MV_returnarray)
|
static Cons |
finishWalkingEqualTree(Cons tree,
Surrogate type1,
Surrogate type2,
java.lang.Object[] MV_returnarray)
|
Stella_Object |
first()
Return the first element of self . |
static Stella_Object |
firstDefined(Cons forms)
Return the result of the first form in forms whose value is defined
or NULL otherwise. |
Stella_Object |
firstSetter(Stella_Object value)
|
static Cons |
foreachToPrefixForeachTree(Cons foreachtree)
|
static Cons |
formatMessageArguments(Cons messageargumentstree,
boolean trailingeolP)
|
static Cons |
formatStringMessageArguments(Cons messagearguments,
boolean trailingeolP)
|
static Cons |
formatWalkMessageArguments(Cons messageargumentstree)
|
Stella_Object |
fourth()
Return the fourth element of self . |
Stella_Object |
fourthSetter(Stella_Object value)
|
static Stella_Object |
getEvaluatorWrapper(Cons arguments)
|
static Cons |
getLastNElements(Cons list,
int n)
|
static Stella_Object |
getNextStellaToken(Cons options)
|
static Stella_Object |
getNextToken(Cons options)
|
static Stella_Object |
getQualifiedSymbolSeparatorPosition(Cons escapemode)
|
static Stella_Object |
getTokenText(Cons options)
|
static Cons |
getXmlAttributes(Cons expression)
Return the list of attributes of an XML expression (may be empty). |
static java.lang.String |
getXmlCdataContent(Cons form)
Return the CDATA content of a CDATA form . |
static Cons |
getXmlContent(Cons expression)
Return the list of content elements of an XML expression (may be empty). |
static XmlElement |
getXmlTag(Cons expression)
Return the XML tag object of an XML expression . |
static boolean |
handleInModuleTree(Cons tree,
boolean seeninmoduleP,
java.lang.Object[] MV_returnarray)
|
static int |
hashMemoizedArgumentsn(Cons tuple,
int eqvector)
|
static Stella_Class |
helpDefineClassFromParseTree(Cons parsetree,
java.lang.String stringifiedsource)
|
static MethodSlot |
helpDefineMethodFromParseTree(Cons inputtree,
java.lang.String stringifiedsource,
java.lang.Object[] MV_returnarray)
|
static Cons |
helpSortConsList(Cons list,
int length,
java.lang.reflect.Method predicate)
|
static boolean |
helpTranslateSystem(Cons files,
boolean twopassP,
boolean forcetranslationP)
|
static TranslationUnit |
helpWalkAuxiliaryTree(Cons tree,
boolean finalizeP)
|
static Stella_Object |
helpWalkBooleanTree(Cons tree)
|
static void |
idlOutputDeclarations(Cons declarations)
|
static void |
idlOutputDerivedClasses(Cons classList)
|
static void |
idlOutputEnum(Cons renamed_Enum)
|
static void |
idlOutputEnumerands(Cons enumerands)
|
static void |
idlOutputFormalParameters(Cons parameters)
|
static void |
idlOutputFunctionSignature(Cons function)
|
static void |
idlOutputInterface(Cons classdef)
|
static void |
idlOutputOneFormalParameter(Cons parameter)
|
static void |
idlOutputParseTree(Cons constree)
|
static void |
idlOutputSignature(Cons signature,
boolean outputmethodclassP)
|
static void |
idlOutputSignatures(Cons signatures)
|
static void |
idlOutputStruct(Cons classdef)
|
static void |
idlOutputTemplateParameters(Cons parameters)
|
static void |
idlOutputTypedef(Cons typedef)
|
static void |
idlOutputTypeExpression(Cons typeexpression)
|
static Stella_Object |
ignore(Cons variables)
Ignore unused 'variables' with NoOp 'setq' statements. |
static boolean |
illegalCppStatementP(Cons statement)
|
static Stella_Object |
inform(Cons body)
Print informative message, placing non-string arguments in quotes, and terminating with a newline. |
static void |
inPlaceNormalizeDemonOptions(Cons optionstree)
|
static void |
inPlaceObjectsToSymbols(Cons conslist)
|
static void |
inPlaceObjectsToTypes(Cons conslist)
|
Cons |
intersection(Cons otherlist)
Return the set intersection of self and otherlist . |
static Cons |
javaDeleteQuotedNullStatements(Cons trees)
|
static void |
javaHelpOutputBinaryOperator(Cons expression,
int nestlevel)
|
static boolean |
javaIllegalStatementP(Cons statement)
|
static boolean |
javaIndentStatementP(Cons statement)
|
static boolean |
javaLastStatementReturnsP(Cons statements)
|
static boolean |
javaLiteralStringP(Cons item)
|
static void |
javaOutputActualParameters(Cons parameters)
|
static void |
javaOutputActualsAsConsExpression(Cons arglist)
|
static void |
javaOutputAnonymousArray(Cons statement)
|
static void |
javaOutputAref(Cons statement)
|
static void |
javaOutputArray(Cons arrayelements)
|
static void |
javaOutputAssignment(Cons assignment)
|
static void |
javaOutputBinaryOperator(Cons expression)
|
static void |
javaOutputBlock(Cons block)
|
static void |
javaOutputBreak(Cons tag)
|
static void |
javaOutputCase(Cons renamed_Case)
|
static void |
javaOutputCast(Cons tree)
|
static void |
javaOutputCatch(Cons tree)
|
static void |
javaOutputClass(Cons classdef,
boolean exceptionclassP)
|
static void |
javaOutputClassConstructors(Cons constructors,
java.lang.String classname,
boolean exceptionclassP)
|
static void |
javaOutputClassDeclaration(Cons classdef)
|
static void |
javaOutputClassMethods(Cons methods)
|
static void |
javaOutputClassVariableDefinitions(Cons variabletranslations)
|
static void |
javaOutputCond(Cons cond)
|
static void |
javaOutputContinue(Cons tag)
|
static void |
javaOutputDeclarations(Cons declarations)
|
static void |
javaOutputForeach(Cons loop)
|
static void |
javaOutputFormalParameters(Cons parameters)
|
static void |
javaOutputFuncall(Cons funcall)
|
static void |
javaOutputFunctionCall(Cons functioncall)
|
static void |
javaOutputGlobalDefinition(Cons global)
|
static void |
javaOutputHandlerCase(Cons tree)
|
static void |
javaOutputIf(Cons tree)
|
static void |
javaOutputImplementsInterfaces(Cons interfacelist)
|
void |
javaOutputLiteral()
|
static void |
javaOutputLoop(Cons loop)
|
static void |
javaOutputMake(Cons statement)
|
static void |
javaOutputMakeArray(Cons statement)
|
static void |
javaOutputMethod(Cons method)
|
static void |
javaOutputMethodCall(Cons methodcall)
|
static void |
javaOutputMethodCodeCall(Cons methodcall)
|
static void |
javaOutputMethodSignature(Cons method)
|
static void |
javaOutputNamedStatement(Cons namedstatement)
|
static void |
javaOutputParseTree(Cons constree)
|
static void |
javaOutputPrintStream(Cons exps,
boolean nativestreamP)
|
static void |
javaOutputProgn(Cons progn)
|
static void |
javaOutputReturn(Cons returnstatement)
|
static boolean |
javaOutputSemicolonP(Cons statement)
|
static void |
javaOutputSignal(Cons tree)
|
static void |
javaOutputSlotValue(Cons statement)
|
static void |
javaOutputSlotValueSetter(Cons statement)
|
static void |
javaOutputStatements(Cons statementlist)
|
static void |
javaOutputTernaryOperator(Cons expression)
|
static void |
javaOutputThrow(Cons tree)
|
static void |
javaOutputTypeExpression(Cons typeexpression)
|
static void |
javaOutputUnaryOperator(Cons expression)
|
static void |
javaOutputUnless(Cons tree)
|
static void |
javaOutputUnwindProtect(Cons tree)
|
static void |
javaOutputWhen(Cons tree)
|
static void |
javaOutputWhile(Cons loop)
|
static void |
javaOutputWithProcessLock(Cons synch)
|
static Cons |
javaReverseAndConsolidateStrings(Cons items)
|
static Cons |
javaSeparateCommentFromBody(Cons body,
java.lang.Object[] MV_returnarray)
|
static boolean |
javaStatementReturnsP(Cons statement)
|
static Cons |
javaTranslateActualParameters(Cons tree)
|
static Cons |
javaTranslateActualParametersWithNativeWrappers(Cons trees,
Cons parametertypes)
|
static Stella_Object |
javaTranslateBadSys(Cons tree)
|
static Cons |
javaTranslateBreak(Cons tree)
|
static Cons |
javaTranslateCallFunctionCode(Cons tree)
|
static Cons |
javaTranslateCallMethodCode(Cons tree)
|
static Cons |
javaTranslateCaseTree(Cons tree)
|
static Cons |
javaTranslateCast(Cons tree)
|
static Cons |
javaTranslateChooseTree(Cons tree)
|
static Cons |
javaTranslateCodeSignature(Cons signature)
|
static Cons |
javaTranslateCondition(Cons condition,
boolean symbolcasep)
|
static Cons |
javaTranslateCondTree(Cons tree)
|
static Cons |
javaTranslateContinue(Cons tree)
|
static Cons |
javaTranslateForeachTree(Cons tree)
|
static Cons |
javaTranslateFunctionCall(Cons tree,
MethodSlot method)
|
static Cons |
javaTranslateHandleException(Cons tree)
|
static Cons |
javaTranslateHandlerCase(Cons tree)
|
static Cons |
javaTranslateIfTree(Cons tree)
|
static Stella_Object |
javaTranslateIgnoreTree(Cons tree)
|
static Stella_Object |
javaTranslateInlineCallTree(Cons tree)
|
static Cons |
javaTranslateLetTree(Cons tree)
|
static Cons |
javaTranslateListOfTrees(Cons trees)
|
static Cons |
javaTranslateLoop(Cons tree)
|
static Cons |
javaTranslateMakeTree(Cons tree)
|
static Cons |
javaTranslateMethodCall(Cons tree)
|
static Cons |
javaTranslateMvFunctionCall(Cons functioncall,
Symbol mvvectorname)
|
static Cons |
javaTranslateMvSetq(Cons tree)
|
static Cons |
javaTranslateNewArray(Cons tree)
|
static Cons |
javaTranslateObjectToReturnType(Cons tree,
StandardObject returntype)
|
static Cons |
javaTranslateOperatorCall(Cons operatornames,
Cons arguments,
int arity)
|
static Cons |
javaTranslateOperatorTree(Cons tree)
|
static Cons |
javaTranslatePrintNativeStream(Cons tree)
|
static Cons |
javaTranslatePrintStream(Cons tree)
|
static Cons |
javaTranslateProgn(Cons tree)
|
static Cons |
javaTranslateReturnTree(Cons tree)
|
static Stella_Object |
javaTranslateSetqTree(Cons tree)
|
static Cons |
javaTranslateSignal(Cons tree)
|
static Cons |
javaTranslateSpecialTree(Cons tree)
|
static Cons |
javaTranslateSysNew(Cons tree)
|
static Stella_Object |
javaTranslateSysSetDefault(Cons tree)
|
static Cons |
javaTranslateSysSlotValue(Cons tree)
|
static Cons |
javaTranslateSysSlotValueSetter(Cons tree)
|
static Stella_Object |
javaTranslateTheCode(Cons tree)
|
static Cons |
javaTranslateTypedSys(Cons tree)
|
static Cons |
javaTranslateUnlessTree(Cons tree)
|
static Cons |
javaTranslateUnwindProtect(Cons tree)
|
static Cons |
javaTranslateVariableLengthActuals(Cons actuals,
MethodSlot unusedMethod)
|
static Cons |
javaTranslateVerbatimTree(Cons tree)
|
static Cons |
javaTranslateVoidSys(Cons tree)
|
static Cons |
javaTranslateWhenTree(Cons tree)
|
static Cons |
javaTranslateWhile(Cons tree)
|
static Cons |
javaTranslateWithProcessLock(Cons tree)
|
static Cons |
javaWrapMethodBodyWithVarargDeclarations(Cons methodbody)
|
static Cons |
javaWrapMethodBodyWithVarargValueSetup(Cons methodbody)
|
static Cons |
javaWrapWithNativeValueExtraction(Cons tree,
StandardObject primaryreturntype)
|
Stella_Object |
last()
Return the last element of self . |
static Cons |
lastCons(Cons self)
Return the last cons of self . |
int |
lastPosition(Stella_Object renamed_Object,
int end)
Return the position of renamed_Object within the cons-list
self (counting from zero); or return null if renamed_Object does not occur within
self (uses an eqlP test). |
int |
length()
Return the length of the CONS list self . |
List |
listify()
Return a list of elements in self . |
static Cons |
listModulesEvaluatorWrapper(Cons arguments)
|
static void |
loadFileEvaluatorWrapper(Cons arguments)
|
static Stella_Object |
lookupVerbatimTree(Cons tree,
Keyword language)
|
static BooleanWrapper |
makeSystemEvaluatorWrapper(Cons arguments)
|
static Cons |
mapNullToNil(Cons self)
Return nil iff self is null or self otherwise. |
static Cons |
matchPattern(Cons pattern,
Cons datum,
int datumLength)
|
static Cons |
maybeWrapWithContinueLabel(Cons translatedloopbody)
|
boolean |
memberP(Stella_Object renamed_Object)
Return true iff renamed_Object is a member of the cons list
self (uses an eqlP test). |
boolean |
membP(Stella_Object renamed_Object)
Return true iff renamed_Object is a member of the cons list
self (uses an eqP test). |
static Stella_Object |
memoize(Cons inputargs,
Cons body)
Compute the value of an expression and memoize it relative to the values of inputargs . |
static Cons |
mergeConsLists(Cons list1,
Cons list2,
java.lang.reflect.Method predicate)
|
static Stella_Object |
messageToString(Cons body)
|
static java.lang.String |
nameQuotedTree(Cons tree)
|
static Cons |
newCons()
|
boolean |
nonEmptyP()
Return true iff self is not equal to nil . |
Stella_Object |
nth(int position)
Return the element of self at position . |
Cons |
nthRest(int position)
Apply rest position times to self . |
Stella_Object |
nthRestSetter(Stella_Object value,
int position)
|
Stella_Object |
nthSetter(Stella_Object value,
int position)
|
boolean |
objectEqualP(Stella_Object tree2)
Return true iff the cons trees tree1 and tree2 are
structurally equivalent. |
static Stella_Object |
optimizeProgn(Cons prognTree)
|
static Cons |
parseListOfFilePaths(Cons files)
|
static PropertyList |
parseMemoizeOptions(Cons options)
|
static TokenizerTable |
parseTokenizerDefinition(Cons definition)
|
static Cons |
percolateOutBooleanVrletExpressions(Cons booleanexpression)
|
static Cons |
percolateOutVrletExpression(Cons statement,
Cons vrexpression,
StandardObject type,
java.lang.Object[] MV_returnarray)
|
static void |
popLocalVariableBindings(Cons declarations)
|
int |
position(Stella_Object renamed_Object,
int start)
Return the position of renamed_Object within the cons-list
self (counting from zero); or return null if renamed_Object does not occur within
self (uses an eqlP test). |
static void |
pprintCons(Cons tree,
java.io.PrintStream stream,
java.lang.String lparen,
java.lang.String rparen)
|
Cons |
prepend(Cons list1)
Return a cons list consisting of the concatenation of list1 and self . |
static void |
prettyPrintDefinitionTree(Cons tree,
OutputStream stream)
|
static void |
prettyPrintStellaTree(Cons tree,
OutputStream stream)
|
Surrogate |
primaryType()
Returns the primary type of self . |
static Stella_Object |
print(Cons body)
Print arguments to the standard output stream. |
static void |
printCons(Cons tree,
java.io.PrintStream stream,
java.lang.String lparen,
java.lang.String rparen)
|
void |
printObject(java.io.PrintStream stream)
|
static void |
printOutlineEvaluatorWrapper(Cons arguments)
|
static Stella_Object |
printSpaces(Cons body)
(print-spaces [stream] N) prints N spaces onto stream. |
static void |
printUnboundSurrogatesEvaluatorWrapper(Cons arguments)
|
static Cons |
processAttributeList(Cons reverseattributelist,
XmlElement element,
KvCons namespaceTable)
|
static XmlDoctype |
processDoctype(Cons doctypeDeclaration)
Takes an S-Expression representing a doctype and processes into a DOCTYPE object. |
static Stella_Object |
prognify(Cons trees)
|
static Stella_Object |
pushf(Cons place,
Stella_Object value)
Push 'value' onto the cons list 'place'. |
Cons |
remove(Stella_Object value)
Destructively remove all entries in the cons list self that
match value . |
Cons |
removeDeletedMembers()
|
Cons |
removeDuplicates()
Destructively remove duplicates from self and return the
result. |
static Cons |
removeDuplicatesFromLongList(Cons self)
|
Cons |
removeIf(java.lang.reflect.Method testP)
Destructively removes all members of the cons list self for which testP evaluates to true . |
static Cons |
removeShadowedSymbols(Cons visiblesymbols)
|
Cons |
reverse()
Destructively reverse the members of the cons list self . |
static int |
safelyComputeTreeSize(Cons tree,
int depthcount,
int cutoff)
|
static int |
safeTreeSize(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Stella_Object |
searchPlist(Cons plist,
Stella_Object key)
|
Stella_Object |
second()
Return the second element of self . |
Stella_Object |
secondSetter(Stella_Object value)
|
static void |
setCallLogBreakPointEvaluatorWrapper(Cons arguments)
|
static void |
setStellaFeatureEvaluatorWrapper(Cons arguments)
|
static Cons |
setTargetLanguageType(Cons systree,
Surrogate type,
java.lang.Object[] MV_returnarray)
|
static void |
setTimeValues(Cons stringForm,
DecodedDateTime parsedValues,
DecodedDateTime defaultValues)
|
static Stella_Object |
signalReadError(Cons body)
Specialized version of signal that throws a READ-EXCEPTION. |
static Slot |
slotFromExpressionTree(Cons tree)
|
Cons |
sort(java.lang.reflect.Method predicate)
Perform a stable, destructive sort of self according to
predicate , and return the result. |
static boolean |
sortTupleCompareP(Cons x,
Cons y)
|
Cons |
sortTuples(int n,
java.lang.reflect.Method predicate)
Just like sort but assumes each element of self is a tuple (a cons)
whose n -th element (0-based) will be used for comparison. |
static void |
startFunctionCallLoggingEvaluatorWrapper(Cons arguments)
|
static Cons |
startupNamesFromFiles(Cons files)
|
static StringWrapper |
stellaInformationEvaluatorWrapper(Cons arguments)
|
static java.lang.String |
stringifyMethodSignature(Cons parsetree)
|
boolean |
subsetP(Cons otherlist)
Return true if every element of self also occurs in otherlist . |
Cons |
substitute(Stella_Object invalue,
Stella_Object outvalue)
Destructively replace each appearance of outvalue by
invalue in the cons list self . |
Cons |
subtract(Cons otherlist)
Return the set difference of self and otherlist by destructively
removing elements from self that also occur in otherlist . |
Stella_Object |
third()
Return the third element of self . |
Stella_Object |
thirdSetter(Stella_Object value)
|
static Cons |
tokenizeVerbatimMethodBody(Cons tree)
|
static Cons |
transformBooleanProceduralExpression(Cons statement,
Cons vrexpression,
java.lang.Object[] MV_returnarray)
|
static Cons |
transformLetWithProceduralExpression(Cons tree)
|
static Cons |
transformProceduralExpression(Cons statement,
Cons vrexpression,
StandardObject type,
java.lang.Object[] MV_returnarray)
|
static Cons |
transformVrletExpression(Cons statement,
Cons vrexpression,
java.lang.Object[] MV_returnarray)
|
Cons |
union(Cons otherlist)
Return the set union of self and otherlist . |
static void |
unsetStellaFeatureEvaluatorWrapper(Cons arguments)
|
static Cons |
walkAConsTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkArefTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Stella_Object |
walkArithmeticTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static void |
walkAuxiliaryTree(Cons tree)
|
static Stella_Object |
walkBooleanTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Stella_Object |
walkBquoteTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Stella_Object |
walkCallSlotTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkCaseTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkCastTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkChooseTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkClSpecialTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkConditionalTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkCondTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkCursorsTree(Cons cursorstree,
boolean dontoptimizeP,
java.lang.Object[] MV_returnarray)
|
static void |
walkDefclassTree(Cons tree)
|
static void |
walkDefglobalTree(Cons tree)
|
static void |
walkDefmacroTree(Cons tree)
|
static void |
walkDefmethodTree(Cons tree)
|
static void |
walkDefmoduleTree(Cons tree)
|
static void |
walkDefslotTree(Cons tree)
|
static void |
walkDeftypeTree(Cons tree)
|
static Stella_Object |
walkEqualityTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Stella_Object |
walkError(Cons body)
|
static Cons |
walkExceptionCaseTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkExceptionHandlerTrees(Cons tree)
|
static Cons |
walkExistsTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkForallTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkForeachTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkFuncallTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkHardcodedSymbolCaseTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Stella_Object |
walkInform(Cons body)
|
static Cons |
walkLetTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkListOfStatements(Cons trees)
|
static Cons |
walkListOfTrees(Cons trees)
|
static Cons |
walkLoopExitTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkLoopTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Stella_Object |
walkMacroTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkMakeTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkMvBindTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkMvSetqTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkMvValuesTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkNewTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkNonBuiltInCaseTree(Cons tree,
Symbol equalitytest,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkPrefixCollectIntoTree(Cons collectintotree,
Cons iterators,
Cons docode,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkPrefixForeachBody(Cons iteratorclauses,
Stella_Object wheretest,
Cons doactions)
|
static Cons |
walkPrefixForeachTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkPrintStreamTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Stella_Object |
walkQuotedTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkReturnAndUnbindSpecials(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkReturnTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkSetfTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkSetqTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkSignalExceptionTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkSlotOnAbstractTypeTree(Cons tree,
Surrogate abstracttype,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkSlotValueSetterTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkSlotValueTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkSomeTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkSpecialTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static void |
walkStartupTimePrognTree(Cons tree)
|
static Cons |
walkSysCallTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkTheCodeTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static void |
walkTopLevelTree(Cons tree,
boolean createannotationP)
|
static Cons |
walkTypecaseTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkUndefinedSlotTree(Cons tree,
StandardObject firstargtype,
boolean warnP,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkUnwindProtectSpecialTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkUnwindProtectTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkValuesTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkVariableArguments(Cons arguments,
MethodSlot method)
|
static Cons |
walkVariableDeclarations(Cons declarations)
|
static void |
walkVerbatimDefinitionTree(Cons tree)
|
static Stella_Object |
walkVerbatimTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Stella_Object |
walkWarn(Cons body)
|
static Cons |
walkWhileTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Cons |
walkWithProcessLockTree(Cons tree,
java.lang.Object[] MV_returnarray)
|
static Stella_Object |
warn(Cons body)
Signal warning message, placing non-string arguments in quotes. |
static Stella_Object |
withHtmlTag(Cons tagAndStream,
Cons body)
|
static Stella_Object |
withInputFile(Cons binding,
Cons body)
Sets up an unwind-protected form which opens a file for input and closes it afterwards. |
static Stella_Object |
withNetworkStream(Cons binding,
Cons body)
Sets up an unwind-protected form which opens a network socket stream to a host and port for input and output and closes it afterwards. |
static Stella_Object |
withOutputFile(Cons binding,
Cons body)
Sets up an unwind-protected form which opens a file for output and closes it afterwards. |
static Stella_Object |
withPermanentObjects(Cons body)
Allocate 'permanent' (as opposed to 'transient') objects within the scope of this declaration. |
static Stella_Object |
withTransientObjects(Cons body)
Allocate 'transient' (as opposed to 'permanent') objects within the scope of this declaration. |
static Stella_Object |
withXmlTag(Cons tagAndStream,
Cons body)
|
static Cons |
wrapMethodBodyWithCppAuxiliaryDeclarations(Cons methodbody,
Cons declarations)
|
static Cons |
wrapMethodBodyWithJavaAuxiliaryDeclarations(Cons methodbody,
Cons declarations)
|
static java.lang.String |
xmlLookupAttribute(Cons attributes,
java.lang.String name,
java.lang.String namespace)
Find the XML attribute in attributes with name and namespace and
return its value. |
static boolean |
xmlRegionMatchesP(Cons regionspec,
Cons regiontag)
|
static AnchoredTypeSpecifier |
yieldAnchoredTypeSpecifier(Cons typespectree)
|
static Cons |
yieldDownCastTree(Cons tree,
StandardObject returntype)
|
static Cons |
yieldFormatArguments(Cons tree)
|
static Cons |
yieldInCursorClauses(Cons intree,
boolean dontoptimizeP,
java.lang.Object[] MV_returnarray)
|
static Cons |
yieldInCursorClausesForIntegerInterval(Cons collectiontree,
StandardObject collectiontype,
Symbol keyvar,
Symbol valuevar,
java.lang.Object[] MV_returnarray)
|
static Cons |
yieldListifiedVariableArguments(Cons walkedargs,
StandardObject targettype,
boolean wrapargsP)
|
static Cons |
yieldNewArgumentsTree(Cons keywordsandvalues,
StandardObject classtype,
Symbol selfvariable,
java.lang.Object[] MV_returnarray)
|
static Cons |
yieldOnCursorClauses(Cons ontree,
java.lang.Object[] MV_returnarray)
|
static Cons |
yieldOptimizedInCursorClausesForIntegerInterval(Cons collectiontree,
StandardObject collectiontype,
Symbol keyvar,
Symbol valuevar,
java.lang.Object[] MV_returnarray)
|
static ParametricTypeSpecifier |
yieldParametricTypeSpecifier(Cons typespectree)
|
static Cons |
yieldPrintTree(Cons tree)
|
StandardObject |
yieldTypeSpecifier()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Stella_Object value
public Cons rest
Constructor Detail |
---|
public Cons()
Method Detail |
---|
public static Cons newCons()
public static StringWrapper stellaInformationEvaluatorWrapper(Cons arguments)
public static void printOutlineEvaluatorWrapper(Cons arguments)
public static void idlOutputSignatures(Cons signatures)
public static void idlOutputSignature(Cons signature, boolean outputmethodclassP)
public static void idlOutputDeclarations(Cons declarations)
public static void idlOutputFunctionSignature(Cons function)
public static void idlOutputFormalParameters(Cons parameters)
public static void idlOutputOneFormalParameter(Cons parameter)
public static void idlOutputStruct(Cons classdef)
public static void idlOutputInterface(Cons classdef)
public static void idlOutputTemplateParameters(Cons parameters)
public static void idlOutputDerivedClasses(Cons classList)
public static void idlOutputTypeExpression(Cons typeexpression)
public static void idlOutputEnum(Cons renamed_Enum)
public static void idlOutputEnumerands(Cons enumerands)
public static void idlOutputTypedef(Cons typedef)
public static void idlOutputParseTree(Cons constree)
public static void javaOutputActualParameters(Cons parameters)
public static void javaOutputFunctionCall(Cons functioncall)
public static void javaOutputMethodCall(Cons methodcall)
public static void javaOutputTernaryOperator(Cons expression)
public static void javaOutputBinaryOperator(Cons expression)
public static void javaHelpOutputBinaryOperator(Cons expression, int nestlevel)
public static void javaOutputUnaryOperator(Cons expression)
public static Cons javaReverseAndConsolidateStrings(Cons items)
public static boolean javaLiteralStringP(Cons item)
public static void javaOutputPrintStream(Cons exps, boolean nativestreamP)
public static void javaOutputForeach(Cons loop)
public static void javaOutputWhile(Cons loop)
public static void javaOutputLoop(Cons loop)
public static void javaOutputAssignment(Cons assignment)
public static void javaOutputUnless(Cons tree)
public static void javaOutputWhen(Cons tree)
public static void javaOutputIf(Cons tree)
public static void javaOutputCond(Cons cond)
public static void javaOutputCase(Cons renamed_Case)
public static boolean javaLastStatementReturnsP(Cons statements)
public static boolean javaStatementReturnsP(Cons statement)
public static void javaOutputContinue(Cons tag)
public static void javaOutputBreak(Cons tag)
public static void javaOutputMethodCodeCall(Cons methodcall)
public static void javaOutputFuncall(Cons funcall)
public static void javaOutputActualsAsConsExpression(Cons arglist)
public static void javaOutputGlobalDefinition(Cons global)
public static void javaOutputSignal(Cons tree)
public static void javaOutputHandlerCase(Cons tree)
public static void javaOutputUnwindProtect(Cons tree)
public static void javaOutputCatch(Cons tree)
public static void javaOutputThrow(Cons tree)
public static void javaOutputReturn(Cons returnstatement)
public static void javaOutputWithProcessLock(Cons synch)
public static void javaOutputBlock(Cons block)
public static void javaOutputProgn(Cons progn)
public static void javaOutputCast(Cons tree)
public static void javaOutputMake(Cons statement)
public static void javaOutputDeclarations(Cons declarations)
public static void javaOutputStatements(Cons statementlist)
public static boolean javaIllegalStatementP(Cons statement)
public static boolean javaIndentStatementP(Cons statement)
public static boolean javaOutputSemicolonP(Cons statement)
public static void javaOutputTypeExpression(Cons typeexpression)
public void javaOutputLiteral()
javaOutputLiteral
in class Stella_Object
public static void javaOutputMethod(Cons method)
public static Cons javaSeparateCommentFromBody(Cons body, java.lang.Object[] MV_returnarray)
public static void javaOutputMethodSignature(Cons method)
public static void javaOutputFormalParameters(Cons parameters)
public static void javaOutputNamedStatement(Cons namedstatement)
public static void javaOutputClassMethods(Cons methods)
public static void javaOutputClassConstructors(Cons constructors, java.lang.String classname, boolean exceptionclassP)
public static void javaOutputClassVariableDefinitions(Cons variabletranslations)
public static void javaOutputClassDeclaration(Cons classdef)
public static void javaOutputClass(Cons classdef, boolean exceptionclassP)
public static void javaOutputImplementsInterfaces(Cons interfacelist)
public static void javaOutputSlotValueSetter(Cons statement)
public static void javaOutputSlotValue(Cons statement)
public static void javaOutputAref(Cons statement)
public static void javaOutputAnonymousArray(Cons statement)
public static void javaOutputArray(Cons arrayelements)
public static void javaOutputMakeArray(Cons statement)
public static void javaOutputParseTree(Cons constree)
public static Cons javaTranslateOperatorCall(Cons operatornames, Cons arguments, int arity)
public static Cons javaTranslateOperatorTree(Cons tree)
public static Cons javaTranslateMethodCall(Cons tree)
public static Cons javaTranslateFunctionCall(Cons tree, MethodSlot method)
public static Cons javaTranslateActualParameters(Cons tree)
public static Cons javaTranslateVariableLengthActuals(Cons actuals, MethodSlot unusedMethod)
public static Cons javaWrapMethodBodyWithVarargValueSetup(Cons methodbody)
public static Cons javaWrapMethodBodyWithVarargDeclarations(Cons methodbody)
public static Cons javaDeleteQuotedNullStatements(Cons trees)
public static Cons javaTranslatePrintNativeStream(Cons tree)
public static Cons javaTranslatePrintStream(Cons tree)
public static Stella_Object javaTranslateIgnoreTree(Cons tree)
public static Stella_Object javaTranslateTheCode(Cons tree)
public static Cons javaTranslateCallMethodCode(Cons tree)
public static Cons javaTranslateCallFunctionCode(Cons tree)
public static Cons javaTranslateObjectToReturnType(Cons tree, StandardObject returntype)
public static Cons javaWrapWithNativeValueExtraction(Cons tree, StandardObject primaryreturntype)
public static Cons javaTranslateActualParametersWithNativeWrappers(Cons trees, Cons parametertypes)
public static Cons javaTranslateCodeSignature(Cons signature)
public static Cons javaTranslateMvFunctionCall(Cons functioncall, Symbol mvvectorname)
public static Cons javaTranslateMvSetq(Cons tree)
public static Cons javaTranslateNewArray(Cons tree)
public static Cons javaTranslateSysNew(Cons tree)
public static Cons javaTranslateMakeTree(Cons tree)
public static Cons javaTranslateUnlessTree(Cons tree)
public static Cons javaTranslateWhenTree(Cons tree)
public static Cons javaTranslateChooseTree(Cons tree)
public static Cons javaTranslateWhile(Cons tree)
public static Cons javaTranslateCondTree(Cons tree)
public static Cons javaTranslateCaseTree(Cons tree)
public static Cons javaTranslateCondition(Cons condition, boolean symbolcasep)
public static Cons javaTranslateIfTree(Cons tree)
public static Cons javaTranslateContinue(Cons tree)
public static Cons javaTranslateBreak(Cons tree)
public static Cons javaTranslateReturnTree(Cons tree)
public static Cons javaTranslateCast(Cons tree)
public static Cons javaTranslateLetTree(Cons tree)
public static Cons javaTranslateForeachTree(Cons tree)
public static Cons javaTranslateLoop(Cons tree)
public static Cons javaTranslateWithProcessLock(Cons tree)
public static Cons javaTranslateProgn(Cons tree)
public static Cons javaTranslateSysSlotValue(Cons tree)
public static Cons javaTranslateSysSlotValueSetter(Cons tree)
public static Stella_Object javaTranslateSysSetDefault(Cons tree)
public static Stella_Object javaTranslateSetqTree(Cons tree)
public static Stella_Object javaTranslateBadSys(Cons tree)
public static Cons javaTranslateTypedSys(Cons tree)
public static Cons javaTranslateVoidSys(Cons tree)
public static Cons javaTranslateHandleException(Cons tree)
public static Cons javaTranslateHandlerCase(Cons tree)
public static Cons javaTranslateSignal(Cons tree)
public static Cons javaTranslateUnwindProtect(Cons tree)
public static Stella_Object javaTranslateInlineCallTree(Cons tree)
public static Cons javaTranslateVerbatimTree(Cons tree)
public static Cons javaTranslateSpecialTree(Cons tree)
public static Cons javaTranslateListOfTrees(Cons trees)
public static Cons wrapMethodBodyWithJavaAuxiliaryDeclarations(Cons methodbody, Cons declarations)
public static void cppOutputFunction(Cons function)
public static void cppOutputFunctionSignature(Cons function)
public static void cppOutputDefprint(Cons defprint)
public static void cppOutputDefprintSignature(Cons defprint)
public static void cppOutputFunctionCall(Cons functioncall)
public static void cppOutputReferencedMethodCall(Cons methodcall)
public static void cppOutputMethodCall(Cons methodcall)
public static void cppOutputMethodSetterCall(Cons methodsettercall)
public static void cppOutputActualParameters(Cons parameters)
public static void cppOutputFormalParameters(Cons parameters)
public static void cppOutputClass(Cons classdef)
public static void cppOutputTemplateParameters(Cons parameters)
public static void cppOutputDerivedClasses(Cons classlist)
public static void cppOutputWithProcessLock(Cons synch)
public static void cppOutputBlock(Cons block)
public static void cppOutputProgn(Cons progn)
public static void cppOutputSignature(Cons signature, boolean outputmethodclassP)
public static void cppOutputTypeExpression(Cons typeexpression)
public static void cppOutputReturn(Cons returnstatement)
public static void cppOutputStatementLine(Cons statement)
public static void cppOutputTernaryOperator(Cons expression)
public static void cppOutputBinaryOperator(Cons expression)
public static void cppHelpOutputBinaryOperator(Cons expression, int nestlevel)
public static void cppOutputUnaryOperator(Cons expression)
public static boolean cppAssignmentP(Cons statement)
public static void cppOutputPrintNativeStream(Cons exps)
public static void cppOutputPrintStream(Cons exps)
public static void cppOutputStreamPrintItems(Cons items)
public static void cppOutputStatements(Cons statementlist)
public static boolean illegalCppStatementP(Cons statement)
public static boolean cppIndentStatementP(Cons statement)
public static boolean cppOutputSemicolonP(Cons statement)
public void cppOutputLiteral()
cppOutputLiteral
in class Stella_Object
public static void cppOutputMake(Cons statement)
public static void cppOutputSlotValueSetter(Cons statement)
public static void cppOutputReferencedSlotValue(Cons statement)
public static void cppOutputSlotValue(Cons statement)
public static void cppOutputForeach(Cons loop)
public static void cppOutputWhile(Cons loop)
public static void cppOutputLoop(Cons loop)
public static void cppOutputAssignment(Cons assignment)
public static void cppOutputUnless(Cons tree)
public static void cppOutputWhen(Cons tree)
public static void cppOutputIf(Cons tree)
public static void cppOutputCond(Cons cond)
public static void cppOutputCase(Cons renamed_Case)
public static boolean cppLastStatementIsReturnP(Cons statements)
public static void cppOutputMethodCodeCall(Cons methodcall)
public static void cppOutputFuncall(Cons funcall)
public static void cppOutputMethodCodeCallSignature(Cons signature)
public static void cppOutputFuncallFunctionSignature(Cons signature)
public static void cppOutputVariableDefinition(Cons variable)
public static void cppOutputGlobalDeclaration(Cons global)
public static void cppOutputUnwindProtect(Cons tree)
public static void cppOutputCatch(Cons tree)
public static void cppOutputHandlerCase(Cons tree)
public static void cppOutputSignal(Cons tree)
public static void cppOutputCast(Cons tree)
public static void cppOutputArrayReference(Cons tree)
public static void cppOutputDereference(Cons tree)
public static Cons cppFlattenStatements(Cons statements)
public static void cppOutputParseTree(Cons constree)
public static Stella_Object cppOutputToString(Cons statement)
public static Cons cppTranslateOperatorCall(Cons operatornames, Cons arguments, int arity)
public static Cons cppTranslateOperatorTree(Cons tree)
public static Cons cppTranslateFunctionCall(Cons tree, MethodSlot method)
public static Cons getLastNElements(Cons list, int n)
public static Cons cppTranslateCallMethodCode(Cons tree)
public static Cons cppTranslateCallFunctionCode(Cons tree)
public static Cons cppTranslateMethodCodeSignature(Cons signature)
public static Cons cppTranslateCodeSignature(Cons signature)
public static Cons cppTranslateMethodCall(Cons tree, boolean referencedP)
public static Cons cppTranslateCallMethodSetter(Cons tree)
public static Cons cppTranslateVariableLengthActuals(Cons actuals, MethodSlot method)
public static Cons cppTranslateActualParameters(Cons tree)
public static Cons cppTranslateReturnTree(Cons tree)
public static Cons wrapMethodBodyWithCppAuxiliaryDeclarations(Cons methodbody, Cons declarations)
public static Cons deleteQuotedNullStatements(Cons trees)
public static Cons cppTranslateLetTree(Cons tree)
public static Cons cppTranslateSetqTree(Cons tree)
public static Cons cppTranslatePrintStream(Cons tree)
public static Cons cppTranslateStartupTimeProgn(Cons tree)
public static Cons cppTranslateMakeTree(Cons tree)
public static Cons cppTranslateSysSlotValueSetter(Cons tree)
public static Cons cppTranslateSysSlotValue(Cons tree)
public static Cons cppTranslateSysReferencedSlotValue(Cons tree)
public static Stella_Object cppTranslateBadSys(Cons tree)
public static Cons cppTranslateTypedSys(Cons tree)
public static Cons cppTranslateVoidSys(Cons tree)
public static Cons cppTranslateNewArray(Cons tree)
public static Cons cppTranslateSysNew(Cons tree)
public static Cons cppTranslateSysPointerToFunction(Cons tree)
public static Cons cppTranslateTheCode(Cons tree)
public static Cons cppTranslateForeachTree(Cons tree)
public static Cons cppTranslateUnlessTree(Cons tree)
public static Cons cppTranslateWhenTree(Cons tree)
public static Cons cppTranslateChooseTree(Cons tree)
public static Cons cppTranslateIfTree(Cons tree)
public static Cons cppTranslateContinue(Cons tree)
public static Cons cppTranslateBreak(Cons tree)
public static Cons cppTranslateWithProcessLock(Cons tree)
public static Cons cppTranslateProgn(Cons tree)
public static Cons cppTranslateWhile(Cons tree)
public static Cons cppTranslateLoop(Cons tree)
public static Cons cppTranslateCondTree(Cons tree)
public static Cons cppTranslateCaseTree(Cons tree)
public static Cons cppTranslateCondition(Cons condition, boolean symbolcasep)
public static Cons cppTranslateMvFunctionCall(Cons functioncall, Cons variables)
public static Cons cppTranslateMvSetq(Cons tree)
public static Cons cppTranslateCast(Cons tree)
public static Cons cppTranslateUnwindProtect(Cons tree)
public static Cons cppTranslateHandleException(Cons tree)
public static Cons cppTranslateHandlerCase(Cons tree)
public static Cons cppTranslateSignal(Cons tree)
public static Cons cppTranslatePrintNativeStream(Cons tree)
public static Stella_Object cppTranslateInlineCallTree(Cons tree)
public static Cons tokenizeVerbatimMethodBody(Cons tree)
public static Cons cppTranslateInlineTree(Cons tree)
public static Cons cppTranslateSpecialTree(Cons tree)
public static Cons cppTranslateVerbatimTree(Cons tree)
public static Cons cppTranslateListOfTrees(Cons trees)
public static void cppOutputClassHeadDeclarations(Cons classes)
public static void prettyPrintDefinitionTree(Cons tree, OutputStream stream)
public static void prettyPrintStellaTree(Cons tree, OutputStream stream)
public static void describeEvaluatorWrapper(Cons arguments)
public static Stella_Object getEvaluatorWrapper(Cons arguments)
public static Cons startupNamesFromFiles(Cons files)
public static boolean compileAndLoadFiles(Cons files, Keyword language, boolean forcerecompilationP)
public static Cons filesPlusSystemStartup(Cons files)
public static BooleanWrapper makeSystemEvaluatorWrapper(Cons arguments)
public static SystemDefinition defsystemEvaluatorWrapper(Cons arguments)
public static Cons parseListOfFilePaths(Cons files)
public static void loadFileEvaluatorWrapper(Cons arguments)
public static boolean helpTranslateSystem(Cons files, boolean twopassP, boolean forcetranslationP)
public static boolean handleInModuleTree(Cons tree, boolean seeninmoduleP, java.lang.Object[] MV_returnarray)
public static java.lang.String composeNamestringFull(Cons strings, java.lang.String prefix, java.lang.String suffix, Keyword outputcase, java.lang.String outputseparator, StringHashTable translationtable, boolean useacronymheuristicsP)
composeNamestring
, which will probably be
easier to use when called from non-Lisp languages.
strings
- prefix
- suffix
- outputcase
- outputseparator
- translationtable
- useacronymheuristicsP
-
public static java.lang.String composeNamestring(Cons nameComponents, Cons options)
nameComponents
is a cons to be processed into a namestring.
':prefix' and ':suffix' are strings that will NOT be case-converted.
':case' is one of :UPCASE :TitleCase :titleCaseX :downcase :Capitalize
default is :TitleCase
':separator' is a string that should separate word elements. It does not
separate the prefix or suffix. Default is ""
':translation-table' should be a STRING-HASH-TABLE hash table that strings into their
desired printed representation as a string. In general the argument
will be strings, but that is not strictly necessary.
nameComponents
- options
-
public static void inPlaceNormalizeDemonOptions(Cons optionstree)
public static Cons destructureDefdemonBody(Cons demontree, java.lang.Object[] MV_returnarray)
public static Stella_Object memoize(Cons inputargs, Cons body)
inputargs
.
inputargs
should characterize the complete set of values upon which
the computation of the result depended.
Calls to memoize
should be of the form
(memoize (<arg>+) {:<option> <value>}* <expression>)
and have the status of an expression. The following options are supported:
:timestamps A single or list of keywords specifying the names of
timestamps which when bumped should invalidate all
entries currently memoized in this table.
:name Names the memoization table so it can be shared by other
memoization sites. By default, a gensymed name is used.
CAUTION: IT IS ASSUMED THAT ALL ENTRIES IN A MEMOZATION
TABLE DEPEND ON THE SAME NUMBER OF ARGUMENTS!!
:max-values The maximum number of values to be memoized. Only the
CmaxValues
most recently used values will be kept
in the memoization table, older values will be discarded
and recomputed if needed. Without a CmaxValues
specification, the memoization table will grow
indefinitely.
PERFORMANCE NOTES: For most efficient lookup, input arguments that vary the most should be listed first. Also, arguments of type STANDARD-OBJECT (and all its subtypes) can be memoized more efficiently than arguments of type OBJECT or wrapped literals (with the exception of BOOLEANs).
inputargs
- body
-
public static PropertyList parseMemoizeOptions(Cons options)
public static Cons findMemoizedValueEntryn(Cons bucket, Cons tuple, int eqvector, boolean deleteentryP)
public static Cons findMemoizedValueEntry(Cons bucket, Stella_Object arg1, Stella_Object arg2, Stella_Object arg3, Stella_Object arg4, int eqvector, boolean deleteentryP)
public static int hashMemoizedArgumentsn(Cons tuple, int eqvector)
public static Stella_Object defmain(Cons varlist, Cons body)
varlist
must have two symbols, which will be the names for the
INTEGER argument count and an array of STRINGs with the argument values. It
can also be empty to indicate that no command line arguments will be handled.
The startup function for the containing system will automatically be called
before body
is executed unless the option :STARTUP-SYSTEM? was supplied as
FALSE. There can only be one DEFMAIN per module.
varlist
- body
-
public static Stella_Object ignore(Cons variables)
variables
-
public static Stella_Object withTransientObjects(Cons body)
withTransientObjects
should be as small as possible, and
the user has to make sure that code that wasn't explicitly written to
account for transient objects will continue to work correctly.
body
-
public static Stella_Object withPermanentObjects(Cons body)
body
-
public static Stella_Object collect(Cons body)
foreach
expression following
the foreach
keyword.
body
-
public static Stella_Object allDefinedP(Cons forms)
forms
-
public static Stella_Object firstDefined(Cons forms)
forms
whose value is defined
or NULL otherwise.
forms
-
public static Stella_Object pushf(Cons place, Stella_Object value)
place
- value
-
public static java.lang.String xmlLookupAttribute(Cons attributes, java.lang.String name, java.lang.String namespace)
attributes
with name
and namespace
and
return its value. Note that it is assumed that all attributes
come from
the same known tag, hence, the parent elements of any local attributes are
not considered by the lookup.
attributes
- name
- namespace
-
public static java.lang.String getXmlCdataContent(Cons form)
form
. Does NOT make sure that form
actually is a CDATA form, so bad things can happen if it is given wrong input.
form
-
public static Cons getXmlContent(Cons expression)
expression
(may be empty).
expression
-
public static Cons getXmlAttributes(Cons expression)
expression
(may be empty).
expression
-
public static XmlElement getXmlTag(Cons expression)
expression
.
expression
-
public static boolean xmlRegionMatchesP(Cons regionspec, Cons regiontag)
public static Cons processAttributeList(Cons reverseattributelist, XmlElement element, KvCons namespaceTable)
public static XmlDoctype processDoctype(Cons doctypeDeclaration)
doctypeDeclaration
-
public static Stella_Object getQualifiedSymbolSeparatorPosition(Cons escapemode)
public static Stella_Object getNextStellaToken(Cons options)
public static Stella_Object getNextToken(Cons options)
public static Stella_Object getTokenText(Cons options)
public static TokenizerTable parseTokenizerDefinition(Cons definition)
public static Context cccEvaluatorWrapper(Cons arguments)
public static Context ccEvaluatorWrapper(Cons arguments)
public static void clearModuleEvaluatorWrapper(Cons arguments)
public static void callClearModuleEvaluatorWrapper(Cons arguments)
public static Cons listModulesEvaluatorWrapper(Cons arguments)
public static void defmoduleEvaluatorWrapper(Cons arguments)
public static Cons yieldDownCastTree(Cons tree, StandardObject returntype)
public static boolean clCompileAndLoadFiles(Cons files, boolean relativeP, boolean forcerecompilationP)
public static Cons clYieldDeclareTree(Cons declarations, boolean includeTypeChecksP)
public static Cons clYieldLetVariableTypeDeclarationTrees(Cons bindingstree)
public static Cons clTranslateInlineTree(Cons tree)
public static Stella_Object clTranslateVerbatimTree(Cons tree)
public static Cons clTranslateTheCodeTree(Cons tree)
public static Stella_Object clTranslateInlineCallTree(Cons tree)
public static Cons clTranslateCallFunctionCodeTree(Cons tree)
public static Cons clTranslatePrintStreamTree(Cons tree)
public static Cons yieldPrintTree(Cons tree)
public static Cons yieldFormatArguments(Cons tree)
public static Cons clTranslateOperatorTree(Cons tree)
public static Cons clTranslateNewArrayTree(Cons tree)
public static Cons clTranslateNewTree(Cons tree)
public static Cons clTranslateMakeTree(Cons tree)
public static Cons clTranslateBooleanTree(Cons tree)
public static Cons clTranslateCaseTree(Cons tree)
public static Cons clTranslateCondTree(Cons tree)
public static Cons clTranslateConditionalTree(Cons tree)
public static Cons clTranslateWhileTree(Cons tree)
public static Stella_Object clTranslateReturnTree(Cons tree)
public static Stella_Object clTranslateCastTree(Cons tree)
public static Cons clTranslateHandleExceptionTree(Cons tree)
public static Cons clTranslateHandlerCaseTree(Cons tree)
public static Cons clTranslateSignalTree(Cons tree)
public static Cons clTranslateUnwindProtectTree(Cons tree)
public static Cons clTranslateStartupTimePrognTree(Cons tree)
public static Cons clTranslateSpecialTree(Cons tree)
public static Cons clTranslateLetTree(Cons tree, boolean specialP)
public static Cons maybeWrapWithContinueLabel(Cons translatedloopbody)
public static Cons clTranslateForeachTree(Cons tree)
public static Stella_Object clTranslateArgumentListTree(Cons tree)
public static Cons clTranslateArefTree(Cons tree)
public static Cons clTranslateNthTree(Cons tree)
public static Stella_Object clTranslateCallMethodTree(Cons tree)
public static Cons clTranslateFixedSlotValueSetterTree(Cons tree)
public static Cons clTranslateFixedSlotValueTree(Cons tree)
public static Cons clTranslateSetqTree(Cons tree)
public static Stella_Object clTranslateBadSys(Cons tree)
public static Stella_Object clTranslateTypedSys(Cons tree)
public static Cons clTranslateVoidSys(Cons tree)
public static Cons clTranslateListOfTrees(Cons trees)
public static Symbol destructureCallTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Stella_Object evaluateConsTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons deUglifyArguments(Cons uglyarguments)
public static Cons walkTheCodeTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkFuncallTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkMakeTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkNewTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons yieldNewArgumentsTree(Cons keywordsandvalues, StandardObject classtype, Symbol selfvariable, java.lang.Object[] MV_returnarray)
public static void walkDefmoduleTree(Cons tree)
public static Stella_Object lookupVerbatimTree(Cons tree, Keyword language)
public static Stella_Object walkVerbatimTree(Cons tree, java.lang.Object[] MV_returnarray)
public static void walkVerbatimDefinitionTree(Cons tree)
public static Cons walkUnwindProtectTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkExceptionHandlerTrees(Cons tree)
public static Cons walkExceptionCaseTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkSignalExceptionTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Keyword extractStartupTimePhase(Cons tree)
public static void walkStartupTimePrognTree(Cons tree)
public static void walkDeftypeTree(Cons tree)
public static void walkDefglobalTree(Cons tree)
public static void walkDefmacroTree(Cons tree)
public static void walkDefslotTree(Cons tree)
public static void walkDefclassTree(Cons tree)
public static Cons walkSysCallTree(Cons tree, java.lang.Object[] MV_returnarray)
public static void walkDefmethodTree(Cons tree)
public static Stella_Object walkCallSlotTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkVariableArguments(Cons arguments, MethodSlot method)
public static Cons yieldListifiedVariableArguments(Cons walkedargs, StandardObject targettype, boolean wrapargsP)
public static Cons walkSlotOnAbstractTypeTree(Cons tree, Surrogate abstracttype, java.lang.Object[] MV_returnarray)
public static Cons walkUndefinedSlotTree(Cons tree, StandardObject firstargtype, boolean warnP, java.lang.Object[] MV_returnarray)
public static Cons walkPrintStreamTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Stella_Object walkMacroTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Stella_Object expandMacro(Cons tree)
public static Stella_Object walkBquoteTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Stella_Object walkQuotedTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Stella_Object walkArithmeticTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Stella_Object walkEqualityTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons finishWalkingEqualTree(Cons tree, Surrogate type1, Surrogate type2, java.lang.Object[] MV_returnarray)
public static Cons finishWalkingEqlTree(Cons tree, Surrogate type1, Surrogate type2, java.lang.Object[] MV_returnarray)
public static Cons walkWithProcessLockTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkTypecaseTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkCaseTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkNonBuiltInCaseTree(Cons tree, Symbol equalitytest, java.lang.Object[] MV_returnarray)
public static Cons attachUnhandledCaseErrorClause(Cons casetree, Stella_Object testtree)
public static int countCaseTestClauses(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkHardcodedSymbolCaseTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons condTreeToIfTree(Cons tree)
public static Cons walkCondTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Stella_Object helpWalkBooleanTree(Cons tree)
public static Stella_Object walkBooleanTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkChooseTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkConditionalTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkWhileTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkLoopExitTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkLoopTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkMvBindTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkMvSetqTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkReturnTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkReturnAndUnbindSpecials(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkMvValuesTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Slot slotFromExpressionTree(Cons tree)
public static Cons walkValuesTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkCastTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkUnwindProtectSpecialTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkClSpecialTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkSpecialTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkLetTree(Cons tree, java.lang.Object[] MV_returnarray)
public static void popLocalVariableBindings(Cons declarations)
public static Cons transformLetWithProceduralExpression(Cons tree)
public static Cons walkVariableDeclarations(Cons declarations)
public static Cons walkArefTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkSlotValueSetterTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkSlotValueTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkSetfTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkSetqTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons percolateOutVrletExpression(Cons statement, Cons vrexpression, StandardObject type, java.lang.Object[] MV_returnarray)
public static Cons transformProceduralExpression(Cons statement, Cons vrexpression, StandardObject type, java.lang.Object[] MV_returnarray)
public static Cons percolateOutBooleanVrletExpressions(Cons booleanexpression)
public static Cons transformBooleanProceduralExpression(Cons statement, Cons vrexpression, java.lang.Object[] MV_returnarray)
public static Cons transformVrletExpression(Cons statement, Cons vrexpression, java.lang.Object[] MV_returnarray)
public static Cons walkAConsTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons setTargetLanguageType(Cons systree, Surrogate type, java.lang.Object[] MV_returnarray)
public static Cons eliminateVrletStatement(Cons tree)
public static Cons walkListOfStatements(Cons trees)
public static Cons walkListOfTrees(Cons trees)
public static Stella_Object optimizeProgn(Cons prognTree)
public static Stella_Object prognify(Cons trees)
public static boolean badArgumentCountP(Cons tree, int arity)
public static boolean badArgumentRangeP(Cons tree, int minarity, int maxarity)
public static void setCallLogBreakPointEvaluatorWrapper(Cons arguments)
public static void startFunctionCallLoggingEvaluatorWrapper(Cons arguments)
public static TranslationUnit helpWalkAuxiliaryTree(Cons tree, boolean finalizeP)
public static void walkAuxiliaryTree(Cons tree)
public static void walkTopLevelTree(Cons tree, boolean createannotationP)
public static java.lang.String createAnnotation(Cons topLevelTree)
public static boolean declarationTreeP(Cons tree)
public static java.lang.String nameQuotedTree(Cons tree)
public static List dropTraceEvaluatorWrapper(Cons arguments)
public static List addTraceEvaluatorWrapper(Cons arguments)
public static void unsetStellaFeatureEvaluatorWrapper(Cons arguments)
public static void setStellaFeatureEvaluatorWrapper(Cons arguments)
public static Cons walkSomeTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkForallTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkExistsTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkPrefixForeachTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons walkPrefixForeachBody(Cons iteratorclauses, Stella_Object wheretest, Cons doactions)
public static Cons walkPrefixCollectIntoTree(Cons collectintotree, Cons iterators, Cons docode, java.lang.Object[] MV_returnarray)
public static Cons walkCursorsTree(Cons cursorstree, boolean dontoptimizeP, java.lang.Object[] MV_returnarray)
public static Cons collectCursorClauses(Cons cursorstree, boolean dontoptimizeP, java.lang.Object[] MV_returnarray)
public static Cons yieldOnCursorClauses(Cons ontree, java.lang.Object[] MV_returnarray)
public static Cons yieldOptimizedInCursorClausesForIntegerInterval(Cons collectiontree, StandardObject collectiontype, Symbol keyvar, Symbol valuevar, java.lang.Object[] MV_returnarray)
public static Cons yieldInCursorClausesForIntegerInterval(Cons collectiontree, StandardObject collectiontype, Symbol keyvar, Symbol valuevar, java.lang.Object[] MV_returnarray)
public static Cons yieldInCursorClauses(Cons intree, boolean dontoptimizeP, java.lang.Object[] MV_returnarray)
public static Cons walkForeachTree(Cons tree, java.lang.Object[] MV_returnarray)
public static Cons foreachToPrefixForeachTree(Cons foreachtree)
public static Cons extractDoClause(Cons tail, java.lang.Object[] MV_returnarray)
public static Cons extractGeneratorsClause(Cons tail, java.lang.Object[] MV_returnarray)
public static Cons extractOneGeneratorTerm(Cons tail, java.lang.Object[] MV_returnarray)
public static Cons extractOneInClause(Cons tail, java.lang.Object[] MV_returnarray)
public static StorageSlot defineExternalSlotFromParseTree(Cons parsetree)
public static java.lang.String stringifyMethodSignature(Cons parsetree)
public static MethodSlot defineMethodFromParseTree(Cons parsetree)
public static MethodSlot helpDefineMethodFromParseTree(Cons inputtree, java.lang.String stringifiedsource, java.lang.Object[] MV_returnarray)
public static Stella_Object destructureDefmethodTree(Cons methodTree, KeyValueList optionsTable, java.lang.Object[] MV_returnarray)
methodTree
. Fill
optionsTable
with a dictionary of method options.
Storage note: Options are treated specially because the other return
values are subtrees of methodTree
, while optionsTable
is a newly-created
cons tree. Note also, the parameter and body trees are destructively
removed from methodTree
.
methodTree
- optionsTable
- MV_returnarray
-
public static Cons extractOptions(Cons tree, KeyValueList optionstable)
public static Stella_Class defineClassFromParseTree(Cons parsetree)
public static StorageSlot defineStorageSlotFromParseTree(Cons slotdef, Surrogate owner)
public static Stella_Class helpDefineClassFromParseTree(Cons parsetree, java.lang.String stringifiedsource)
public static void setTimeValues(Cons stringForm, DecodedDateTime parsedValues, DecodedDateTime defaultValues)
public static Cons matchPattern(Cons pattern, Cons datum, int datumLength)
public static Surrogate defineStellaTypeFromParseTree(Cons tree)
public static GlobalVariable defineStellaGlobalVariableFromParseTree(Cons tree, java.lang.String stringifiedsource, java.lang.Object[] MV_returnarray)
public static AnchoredTypeSpecifier yieldAnchoredTypeSpecifier(Cons typespectree)
public static ParametricTypeSpecifier yieldParametricTypeSpecifier(Cons typespectree)
public StandardObject yieldTypeSpecifier()
yieldTypeSpecifier
in class Stella_Object
public static void printUnboundSurrogatesEvaluatorWrapper(Cons arguments)
public static void inPlaceObjectsToTypes(Cons conslist)
public static void inPlaceObjectsToSymbols(Cons conslist)
public static Cons removeShadowedSymbols(Cons visiblesymbols)
public Iterator allocateDestructiveListIterator()
public List listify()
self
.
public static Stella_Object searchPlist(Cons plist, Stella_Object key)
public static int safeTreeSize(Cons tree, java.lang.Object[] MV_returnarray)
public static int safelyComputeTreeSize(Cons tree, int depthcount, int cutoff)
public static void pprintCons(Cons tree, java.io.PrintStream stream, java.lang.String lparen, java.lang.String rparen)
public static void printCons(Cons tree, java.io.PrintStream stream, java.lang.String lparen, java.lang.String rparen)
public static Cons consTreeNthRest(Cons tree, Cons index)
tree
identified by a path
specified as a list of index
values. The first index
specifies the
index
-th element of tree
, the second index
the index
-th subelement
of that element, ..., the last index specifies the nthRest
of the previous
element (different from consTreeNth
). Example:
(cons-tree-nth-rest (quote (a (b (c d e) f) g)) 1 1 1) => (d e)
tree
- index
-
public static Stella_Object consTreeNth(Cons tree, Cons index)
tree
identified by a path
specified as a list of index
values. The first index
specifies the
index
-th element of tree
, the second index
the index
-th subelement
of that element, etc. Example:
(cons-tree-nth (quote (a (b (c d e) f) g)) 1 1 2) => e
tree
- index
-
public int equalHashCode()
equalP
hash code for self
. Note that this
is O(N) in the number of elements of self
.
equalHashCode
in class Stella_Object
public boolean objectEqualP(Stella_Object tree2)
true
iff the cons trees tree1
and tree2
are
structurally equivalent. Uses equalP
to test equality of subtrees.
objectEqualP
in class Stella_Object
tree2
-
public Cons sortTuples(int n, java.lang.reflect.Method predicate)
sort
but assumes each element of self
is a tuple (a cons)
whose n
-th element (0-based) will be used for comparison.
n
- predicate
-
public static boolean sortTupleCompareP(Cons x, Cons y)
public static java.lang.reflect.Method chooseSortPredicate(Cons self)
public static Cons mergeConsLists(Cons list1, Cons list2, java.lang.reflect.Method predicate)
public static Cons helpSortConsList(Cons list, int length, java.lang.reflect.Method predicate)
public Cons sort(java.lang.reflect.Method predicate)
self
according to
predicate
, and return the result. If predicate
has a '<' semantics, the
result will be in ascending order. It is not guaranteed that self
will
point to the beginning of the sorted result. If predicate
is null
, a
suitable '<' predicate is chosen depending on the first element of self
,
and it is assumed that all elements of self
have the same type (supported
element types are GENERALIZED-SYMBOL, STRING, INTEGER, and FLOAT).
predicate
-
public Cons subtract(Cons otherlist)
self
and otherlist
by destructively
removing elements from self
that also occur in otherlist
. Uses an eqlP
test and a simple quadratic-time algorithm. Note that the result is only
guaranteed to be a set if self
is a set.
otherlist
-
public Cons difference(Cons otherlist)
self
and otherlist
(i.e., all elements
that are in self
but not in otherSet
). Uses an eqlP
test and a simple
quadratic-time algorithm. Note that the result is only guaranteed to be a
set if both self
and otherlist
are sets.
otherlist
-
public Cons union(Cons otherlist)
self
and otherlist
. Uses an eqlP
test
and a simple quadratic-time algorithm. Note that the result is only
guaranteed to be a set if both self
and otherlist
are sets.
otherlist
-
public Cons intersection(Cons otherlist)
self
and otherlist
. Uses an eqlP
test and a simple quadratic-time algorithm. Note that the result is only
guaranteed to be a set if both self
and otherlist
are sets.
otherlist
-
public boolean equivalentSetsP(Cons otherlist)
self
occurs in otherlist
and vice versa.
Uses an eqlP
test and a simple quadratic-time algorithm. Note that
this does not check whether self
and otherlist
actually are sets.
otherlist
-
public boolean subsetP(Cons otherlist)
self
also occurs in otherlist
.
Uses an eqlP
test and a simple quadratic-time algorithm. Note that
this does not check whether self
and otherlist
actually are sets.
otherlist
-
public static Cons append(Cons conslist1, Cons conslist2)
conslist1
and conslist2
. The concatenation is NOT destructive.
conslist1
- conslist2
-
public static Cons copyConsList(Cons self)
self
.
self
-
public Cons removeDeletedMembers()
public Cons consify()
self
.
consify
in class Stella_Object
public Iterator butLast()
self
.
public static void addConsToEndOfConsList(Cons self, Cons lastcons)
public ConsIterator allocateIterator()
public Stella_Object nthRestSetter(Stella_Object value, int position)
public Stella_Object fifthSetter(Stella_Object value)
public Stella_Object fourthSetter(Stella_Object value)
public Stella_Object nthSetter(Stella_Object value, int position)
public Stella_Object thirdSetter(Stella_Object value)
public Stella_Object secondSetter(Stella_Object value)
public Stella_Object firstSetter(Stella_Object value)
public Stella_Object last()
self
.
public static Cons lastCons(Cons self)
self
.
self
-
public Cons nthRest(int position)
rest
position
times to self
.
position
-
public Stella_Object nth(int position)
self
at position
. The nth element
of self
can be set with setf
. Note, that '(nth NIL <pos>)' = null
.
position
-
public Stella_Object fifth()
self
. The fifth element
of self
can be set with setf
. Note, that '(fifth NIL)' = null
.
public Stella_Object fourth()
self
. The fourth element
of self
can be set with setf
. Note that '(fourth NIL)' = null
.
public Stella_Object third()
self
. The third element
of self
can be set with setf
. Note that '(third NIL)' = null
.
public Stella_Object second()
self
. The second element
of self
can be set with setf
. Note that '(second NIL)' = null
.
public Stella_Object first()
self
. The first element
of self
can be set with setf
. Note that '(first NIL)' = null
.
public static Cons mapNullToNil(Cons self)
nil
iff self
is null
or self
otherwise.
self
-
public Cons substitute(Stella_Object invalue, Stella_Object outvalue)
outvalue
by
invalue
in the cons list self
.
invalue
- outvalue
-
public Cons reverse()
self
.
public Cons prepend(Cons list1)
list1
and self
. A copy of list1
is prepended to self
. This
operation results in structure sharing of self
; to avoid this, self
should not be pointed to by anything other than the tail of the prepended
copy.
list1
-
public Cons concatenate(Cons list2, Cons otherlists)
list1
, list2
, and otherlists
. The operation is destructive wrt all
but the last list argument which is left intact. The two mandatory
parameters allow us to optimize the common binary case by not relying on
the somewhat less efficient variable arguments mechanism.
list2
- otherlists
-
public static Cons removeDuplicatesFromLongList(Cons self)
public Cons removeDuplicates()
self
and return the
result. Removes all but the first occurrence of items in the list.
Preserves the original order of the remaining members. Runs in linear time.
public Cons removeIf(java.lang.reflect.Method testP)
self
for which testP
evaluates to true
. test
takes a single
argument of type OBJECT and returns true
or false
. Returns a cons list.
In case the first element is removed, the return result should be
assigned to a variable.
testP
-
public Cons remove(Stella_Object value)
self
that
match value
. Unless the remaining list is nil
, insure that the cons that
heads the list is unchanged.
value
-
public boolean membP(Stella_Object renamed_Object)
true
iff renamed_Object
is a member of the cons list
self
(uses an eqP
test).
renamed_Object
-
public boolean memberP(Stella_Object renamed_Object)
true
iff renamed_Object
is a member of the cons list
self
(uses an eqlP
test).
renamed_Object
-
public int lastPosition(Stella_Object renamed_Object, int end)
renamed_Object
within the cons-list
self
(counting from zero); or return null
if renamed_Object
does not occur within
self
(uses an eqlP
test). If start
was supplied as non-null
, only
consider the sublist ending at end
, however, the returned position
will always be relative to the entire list.
renamed_Object
- end
-
public int position(Stella_Object renamed_Object, int start)
renamed_Object
within the cons-list
self
(counting from zero); or return null
if renamed_Object
does not occur within
self
(uses an eqlP
test). If start
was supplied as non-null
, only
consider the sublist starting at start
, however, the returned position
will always be relative to the entire list.
renamed_Object
- start
-
public int length()
self
.
public boolean nonEmptyP()
true
iff self
is not equal to nil
.
public boolean emptyP()
true
iff self
equals nil
.
public static double base60ToFloat(Cons l)
l
-
public static Stella_Object withXmlTag(Cons tagAndStream, Cons body)
public static Stella_Object withHtmlTag(Cons tagAndStream, Cons body)
public static Cons expandMarkupTagFunction(Cons tagAndStream, Cons body, boolean xmlP)
public static Stella_Object withNetworkStream(Cons binding, Cons body)
binding
- body
-
public static Stella_Object withOutputFile(Cons binding, Cons body)
_WITH_OUTPUT_FILE__var_filename_options$__bodyI_
where options
can be any that are legal for openOutputFile
(which see).
binding
- body
-
public static Stella_Object withInputFile(Cons binding, Cons body)
_WITH_INPUT_FILE__var_filename_options$__bodyI_
where options
can be any that are legal for openInputFile
(which see).
binding
- body
-
public static Stella_Object messageToString(Cons body)
public static Cons formatStringMessageArguments(Cons messagearguments, boolean trailingeolP)
public static Stella_Object evaluationError(Cons body)
public static Stella_Object walkWarn(Cons body)
public static Stella_Object walkInform(Cons body)
public static Stella_Object walkError(Cons body)
public static Cons formatWalkMessageArguments(Cons messageargumentstree)
public static Stella_Object signalReadError(Cons body)
signal
that throws a READ-EXCEPTION.
body
-
public static Stella_Object continuableError(Cons body)
body
-
public static Stella_Object error(Cons body)
body
-
public static Stella_Object warn(Cons body)
body
-
public static Stella_Object inform(Cons body)
body
-
public static Stella_Object printSpaces(Cons body)
body
-
public static Stella_Object print(Cons body)
body
-
public static Cons formatMessageArguments(Cons messageargumentstree, boolean trailingeolP)
public void printObject(java.io.PrintStream stream)
printObject
in class Stella_Object
public static Stella_Object accessConsSlotValue(Cons self, Symbol slotname, Stella_Object value, boolean setvalueP)
public Surrogate primaryType()
Stella_Object
self
.
Gets defined automatically for every non-abstract subclass of OBJECT.
primaryType
in class Stella_Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |