Uses of Class
gnu.expr.Expression
Packages that use Expression
Package
Description
Supports
Expression,
and various related classes need to compile programming languages.Contains classes to use reflection.
Supports
Procedure,
and various related classes needed at run-time by dynamically typed
languages (such as Scheme and ECMAScript).-
Uses of Expression in gnu.ecmascript
Fields in gnu.ecmascript declared as ExpressionModifier and TypeFieldDescriptionstatic final Expression[]Parser.emptyArgsstatic ExpressionParser.eofExprMethods in gnu.ecmascript that return ExpressionModifier and TypeMethodDescriptionParser.buildLoop(Expression init, Expression test, Expression incr, Expression body) Parser.makeCallExpression(Expression exp, Expression[] args) Parser.makeNewExpression(Expression exp, Expression[] args) Parser.makePropertyAccessor(Expression exp, Expression prop) Parser.parseArguments()Parser.parseAssignmentExpression()Parser.parseBinaryExpression(int prio) Parser.parseBlock()Parser.parseConditionalExpression()Parser.parseExpression()Parser.parseFunctionDefinition()Parser.parseIfStatement()Parser.parseLeftHandSideExpression()Parser.parsePostfixExpression()Parser.parsePrimaryExpression()Parser.parseStatement()Parser.parseUnaryExpression()Parser.parseWhileStatement()Parser.syntaxError(String message) Methods in gnu.ecmascript with parameters of type ExpressionModifier and TypeMethodDescriptionParser.buildLoop(Expression init, Expression test, Expression incr, Expression body) Parser.makeCallExpression(Expression exp, Expression[] args) Parser.makeNewExpression(Expression exp, Expression[] args) Parser.makePropertyAccessor(Expression exp, Expression prop) -
Uses of Expression in gnu.expr
Subclasses of Expression in gnu.exprModifier and TypeClassDescriptionclassA common super-type for ReferenceExpa and SetExp.classThis class is used to represent "combination" or "application".classThis class represents a sequence of Expressions.classClass used to implement a block that can be exited.classThis class represents a case expressionclassA "catch" clause of a "try-catch" form.classclassClass used to mark an erroneous expressionclassExpression to exit a lexically surrounding block.classClass used to implement "fluid-let" for Scheme and "let" for Emacs.classThis class represents a conditional.classClass used to implement Scheme lambda expressions.classA language-specific expression.classClass used to implement "let" syntax (and variants) for Scheme.classClass used to implement Scheme top-level environments.classAn expression that evaluated to an instance of an anonymous class.classAn Expression that evaluates to a constant value.classThis class represents a variable reference (an identifier).classAbstract class for expressions that add local variable bindings.classAn Expression to set (bind) or define a new value to a named variable.classclassEvaluates to the "this" implicit variable.classThis class represents try/catch/finally.Fields in gnu.expr declared as ExpressionModifier and TypeFieldDescriptionDeclaration.ValueSource.baseLambdaExp.bodystatic final Expression[]Expression.noExpressionsLambdaExp.returnContinuationThe unique call site that calls this lambda.ClassExp.supersList of base classes and implemented interfaces.Declaration.typeExpFields in gnu.expr with type parameters of type ExpressionModifier and TypeFieldDescriptionCompilation.exprStackA help vector for building expressions.FindTailCalls.savedReturnContinuationsFindTailCalls.savedReturnContinuationsMethods in gnu.expr that return ExpressionModifier and TypeMethodDescriptionCompilation.applyFunction(Expression func) A language-dependent "apply" function for generic application.static final ExpressionBeginExp.canonicalize(Expression exp) Simplifies BeginExp.static final ExpressionBeginExp.canonicalize(Expression[] exps) InlineCalls.checkType(Expression exp, Type required) TypeValue.convertValue(Expression value) Return converted expression or null.ApplyExp.deepCopy(IdentityHashTable mapper) protected ExpressionExitExp.deepCopy(IdentityHashTable mapper) protected static ExpressionExpression.deepCopy(Expression exp) static Expression[]Expression.deepCopy(Expression[] exps, IdentityHashTable mapper) static ExpressionExpression.deepCopy(Expression exp, IdentityHashTable mapper) Make a deep copy of this expression, if possible.protected ExpressionExpression.deepCopy(IdentityHashTable mapper) QuoteExp.deepCopy(IdentityHashTable mapper) protected ExpressionReferenceExp.deepCopy(IdentityHashTable mapper) protected ExpressionExpExpVisitor.defaultValue(Expression r, D d) protected ExpressionPushApply.defaultValue(Expression r, Void ignored) Declaration.getAnnotation(int i) Indexed get of one of the annotations associated with this declaration.ApplyExp.getArg(int i) final Expression[]ApplyExp.getArgs()final ExpressionCatchClause.getBody()LetExp.getBody()LambdaExp.getBodyFirstExpression()Get the first expression/statement in the body.IfExp.getElseClause()final Expression[]BeginExp.getExpressions()final ExpressionTryExp.getFinallyClause()final ExpressionApplyExp.getFunction()Declaration.getInitValue()Get the "initial value" expression.final ExpressionSetExp.getNewValue()Get the Expression for calculating the new ("right-hand") value.IfExp.getTest()IfExp.getThenClause()final ExpressionDeclaration.getTypeExp()Declaration.getTypeExpRaw()final ExpressionDeclaration.getValue()The value of thisDeclaration, if known.Declaration.getValueRaw()static ExpressionInlineCalls.inlineCall(LambdaExp lexp, ApplyExp aexp, boolean makeCopy) Attempt to inline a function call.static ExpressionInlineCalls.inlineCalls(Expression exp, Compilation comp) final ExpressionApplyExp.inlineIfConstant(Procedure proc, InlineCalls visitor) final ExpressionApplyExp.inlineIfConstant(Procedure proc, SourceMessages messages) Inline this ApplyExp if parameters are constant.Compilation.loopDone(Expression body) Finish building a loop and return resulting expression.Compilation.loopRepeat(LambdaExp loop, Expression... exps) Recurse to next iteration of specified loop.Compilation.loopRepeatDone(Expression... exps) Combine loopRepeat and loopDone.static ExpressionExpression.makeWhile(Object cond, Object body, Compilation parser) Helper method to create a `while' statement.InlineCalls.maybeInline(ApplyExp exp, Type required, Procedure proc) final ExpressionExpression.maybeSetLine(Expression old) protected ExpressionANormalize.normalizeName(Expression exp, gnu.expr.ANormalize.Context context) Performs the bind operation, introducing a new let expression to capture the result of non-trivial expressions, which is bound to a new let variable.protected ExpressionANormalize.normalizeNames(Expression[] exps, int index, gnu.expr.ANormalize.MultiContext context) Deals with the normalization of multiple expressions.protected ExpressionANormalize.normalizeTerm(Expression exp) Starts the normalization of expression exp.This may not make sense, except for Lisp-like languages.CaseExp.selectCase(Object keyValue) Search for a clause containing the specified key.final ExpressionExpression.setLine(Expression old) protected ExpressionExpExpVisitor.update(Expression exp, Expression r) protected ExpressionExpVisitor.update(Expression exp, R r) protected ExpressionPushApply.update(Expression exp, Expression r) Expression.validateApply(ApplyExp exp, InlineCalls visitor, Type required, Declaration decl) Apply inlining transformations on a given ApplyExp.LambdaExp.validateApply(ApplyExp exp, InlineCalls visitor, Type required, Declaration decl) QuoteExp.validateApply(ApplyExp exp, InlineCalls visitor, Type required, Declaration decl) ReferenceExp.validateApply(ApplyExp exp, InlineCalls visitor, Type required, Declaration decl) InlineCalls.visit(Expression exp, Type required) ExpVisitor.visitAndUpdate(Expression exp, D d) protected ExpressionANormalize.visitApplyExp(ApplyExp exp, gnu.expr.ANormalize.Context context) protected ExpressionChainLambdas.visitApplyExp(ApplyExp exp, ScopeExp scope) protected ExpressionFindCapturedVars.visitApplyExp(ApplyExp exp, Void ignored) protected ExpressionFindTailCalls.visitApplyExp(ApplyExp exp, Expression returnContinuation) protected ExpressionInlineCalls.visitApplyExp(ApplyExp exp, Type required) protected ExpressionPushApply.visitApplyExp(ApplyExp exp, Void ignored) final ExpressionInlineCalls.visitApplyOnly(ApplyExp exp, Type required) Visit an ApplyExp assuming function and arguments have been visited.protected ExpressionANormalize.visitBeginExp(BeginExp exp, gnu.expr.ANormalize.Context context) protected ExpressionChainLambdas.visitBeginExp(BeginExp exp, ScopeExp scope) protected ExpressionFindTailCalls.visitBeginExp(BeginExp exp, Expression returnContinuation) protected ExpressionInlineCalls.visitBeginExp(BeginExp exp, Type required) protected ExpressionANormalize.visitBlockExp(BlockExp exp, gnu.expr.ANormalize.Context context) protected ExpressionFindTailCalls.visitBlockExp(BlockExp exp, Expression returnContinuation) protected ExpressionPushApply.visitBlockExp(BlockExp exp, Void ignored) protected ExpressionANormalize.visitCaseExp(CaseExp exp, gnu.expr.ANormalize.Context context) protected ExpressionChainLambdas.visitCaseExp(CaseExp exp, ScopeExp scope) protected ExpressionFindCapturedVars.visitCaseExp(CaseExp exp, Void ignored) protected ExpressionFindTailCalls.visitCaseExp(CaseExp exp, Expression returnContinuation) protected ExpressionInlineCalls.visitCaseExp(CaseExp exp, Type required) protected ExpressionPushApply.visitCaseExp(CaseExp exp, Void ignored) protected ExpressionANormalize.visitClassExp(ClassExp exp, gnu.expr.ANormalize.Context context) protected ExpressionChainLambdas.visitClassExp(ClassExp exp, ScopeExp scope) protected ExpressionFindCapturedVars.visitClassExp(ClassExp exp, Void ignored) protected ExpressionFindTailCalls.visitClassExp(ClassExp exp, Expression returnContinuation) protected ExpressionInlineCalls.visitClassExp(ClassExp exp, Type required) protected ExpressionPushApply.visitClassExp(ClassExp exp, Void ignored) protected ExpressionANormalize.visitExitExp(ExitExp exp, gnu.expr.ANormalize.Context context) protected ExpressionFindTailCalls.visitExitExp(ExitExp exp, Expression returnContinuation) protected ExpressionPushApply.visitExitExp(ExitExp exp, Void ignored) protected ExpressionFindTailCalls.visitExpression(Expression exp, Expression returnContinuation) ExpVisitor.visitExps(Expression[] exps, int n, D d) Call visit on the Expressions in an array.ExpVisitor.visitExps(Expression[] exps, D d) FindTailCalls.visitExps(Expression[] exps) protected ExpressionFindCapturedVars.visitFluidLetExp(FluidLetExp exp, Void ignored) protected ExpressionFindTailCalls.visitFluidLetExp(FluidLetExp exp, Expression returnContinuation) protected ExpressionInlineCalls.visitFluidLetExp(FluidLetExp exp, Type required) protected ExpressionANormalize.visitIfExp(IfExp exp, gnu.expr.ANormalize.Context context) protected ExpressionChainLambdas.visitIfExp(IfExp exp, ScopeExp scope) protected ExpressionFindTailCalls.visitIfExp(IfExp exp, Expression returnContinuation) protected ExpressionInlineCalls.visitIfExp(IfExp exp, Type required) protected ExpressionPushApply.visitIfExp(IfExp exp, Void ignored) protected ExpressionANormalize.visitLambdaExp(LambdaExp exp, gnu.expr.ANormalize.Context context) protected ExpressionChainLambdas.visitLambdaExp(LambdaExp exp, ScopeExp scope) protected ExpressionFindCapturedVars.visitLambdaExp(LambdaExp exp, Void ignored) protected ExpressionFindTailCalls.visitLambdaExp(LambdaExp exp, Expression returnContinuation) protected ExpressionInlineCalls.visitLambdaExp(LambdaExp exp, Type required) protected ExpressionPushApply.visitLambdaExp(LambdaExp exp, Void ignored) protected ExpressionANormalize.visitLetExp(LetExp exp, gnu.expr.ANormalize.Context context) Besides handling "let" and "fluidlet" normalization, it flattens the nesting of let expressions.protected ExpressionChainLambdas.visitLetExp(LetExp exp, ScopeExp scope) protected ExpressionFindCapturedVars.visitLetExp(LetExp exp, Void ignored) protected ExpressionFindTailCalls.visitLetExp(LetExp exp, Expression returnContinuation) protected ExpressionInlineCalls.visitLetExp(LetExp exp, Type required) protected ExpressionResolveNames.visitLetExp(LetExp exp, Void ignored) protected ExpressionANormalize.visitModuleExp(ModuleExp exp, gnu.expr.ANormalize.Context context) protected ExpressionFindCapturedVars.visitModuleExp(ModuleExp exp, Void ignored) protected ExpressionFindTailCalls.visitModuleExp(ModuleExp exp, Expression returnContinuation) protected ExpressionInlineCalls.visitModuleExp(ModuleExp exp, Type required) protected ExpressionANormalize.visitQuoteExp(QuoteExp exp, gnu.expr.ANormalize.Context context) protected ExpressionInlineCalls.visitQuoteExp(QuoteExp exp, Type required) protected ExpressionANormalize.visitReferenceExp(ReferenceExp exp, gnu.expr.ANormalize.Context context) protected ExpressionFindCapturedVars.visitReferenceExp(ReferenceExp exp, Void ignored) protected ExpressionInlineCalls.visitReferenceExp(ReferenceExp exp, Type required) protected ExpressionPushApply.visitReferenceExp(ReferenceExp exp, Void ignored) protected ExpressionResolveNames.visitReferenceExp(ReferenceExp exp, Void ignored) protected ExpressionChainLambdas.visitScopeExp(ScopeExp exp, ScopeExp scope) protected ExpressionInlineCalls.visitScopeExp(ScopeExp exp, Type required) protected ExpressionResolveNames.visitScopeExp(ScopeExp exp, Void ignored) protected ExpressionANormalize.visitSetExp(SetExp exp, gnu.expr.ANormalize.Context context) protected ExpressionChainLambdas.visitSetExp(SetExp sexp, ScopeExp scope) protected ExpressionFindCapturedVars.visitSetExp(SetExp exp, Void ignored) protected ExpressionFindTailCalls.visitSetExp(SetExp exp, Expression returnContinuation) protected ExpressionInlineCalls.visitSetExp(SetExp exp, Type required) protected ExpressionResolveNames.visitSetExp(SetExp exp, Void ignored) protected ExpressionANormalize.visitSynchronizedExp(SynchronizedExp exp, gnu.expr.ANormalize.Context context) protected ExpressionFindTailCalls.visitSynchronizedExp(SynchronizedExp exp, Expression returnContinuation) protected ExpressionFindCapturedVars.visitThisExp(ThisExp exp, Void ignored) protected ExpressionANormalize.visitTryExp(TryExp exp, gnu.expr.ANormalize.Context context) protected ExpressionFindTailCalls.visitTryExp(TryExp exp, Expression returnContinuation) protected ExpressionInlineCalls.visitTryExp(TryExp exp, Type required) protected ExpressionPushApply.visitTryExp(TryExp exp, Void ignored) Methods in gnu.expr with parameters of type ExpressionModifier and TypeMethodDescriptionfinal voidBeginExp.add(Expression exp) voidDeclaration.addAnnotation(Expression exp) Add an annotation to the set of our annotations.voidTryExp.addCatchClause(Declaration decl, Expression body) static voidANormalize.aNormalize(Expression exp, Compilation comp) Compilation.applyFunction(Expression func) A language-dependent "apply" function for generic application.protected ObjectCaseExp.calculateDatumValue(Expression datum) Given the expression generated from a datum returns the value of the datum as an Object.static final ExpressionBeginExp.canonicalize(Expression exp) Simplifies BeginExp.static final ExpressionBeginExp.canonicalize(Expression[] exps) static intSetExp.canUseInc(Expression rhs, Declaration target) static voidChainLambdas.chainLambdas(Expression exp, Compilation comp) LambdaExp.checkForInitCall(Expression bodyFirst) Check if argument is a this(...) or super(...) initializtion.static IntegerInlineCalls.checkIntValue(Expression exp) static LongInlineCalls.checkLongValue(Expression exp) InlineCalls.checkType(Expression exp, Type required) static voidIfExp.compile(Expression test, Expression then_clause, Expression else_clause, Compilation comp, Target target) static voidConsumerTarget.compileUsingConsumer(Expression exp, Compilation comp, Target target) Compile an expression using a temporary Consumer, if needed.static voidConsumerTarget.compileUsingConsumer(Expression exp, Compilation comp, Target target, Method makeMethod, Method resultMethod) static voidConsumerTarget.compileUsingValues(Expression exp, Compilation comp, Target target) final voidExpression.compileWithPosition(Compilation comp, Target target, Expression position) Same as 2-argument compileWithPosition, but use some other Expression's line number.booleanConsumerTarget.compileWrite(Expression exp, Compilation comp) TypeValue.convertValue(Expression value) Return converted expression or null.static voidBindingInitializer.create(Declaration decl, Expression value, Compilation comp) Create a BindingInitializer and link it into the correct initializer chain.protected static ExpressionExpression.deepCopy(Expression exp) static Expression[]Expression.deepCopy(Expression[] exps, IdentityHashTable mapper) static ExpressionExpression.deepCopy(Expression exp, IdentityHashTable mapper) Make a deep copy of this expression, if possible.protected ExpressionExpExpVisitor.defaultValue(Expression r, D d) protected RExpVisitor.defaultValue(Expression r, D d) protected ExpressionPushApply.defaultValue(Expression r, Void ignored) protected booleanInlineCalls.deferableInit(Expression init) static voidFindCapturedVars.findCapturedVars(Expression exp, Compilation comp) static voidFindTailCalls.findTailCalls(Expression exp, Compilation comp) InlineCalls.fixIntValue(Expression exp) InlineCalls.fixLongValue(Expression exp) static PrimProcedurePrimProcedure.getMethodFor(ClassType procClass, String name, Declaration decl, Expression[] args, Language language) static PrimProcedurePrimProcedure.getMethodFor(Procedure pproc, Declaration decl, Expression[] args, Language language) Search for a matching static method in a procedure's class.static PrimProcedurePrimProcedure.getMethodFor(Procedure pproc, Expression[] args) static PrimProcedurePrimProcedure.getMethodFor(Class procClass, String name, Declaration decl, Expression[] args, Language language) Get PrimProcedure for matching method in given class.PrimProcedure.getReturnType(Expression[] args) final TypeLanguage.getTypeFor(Expression exp) Language.getTypeFor(Expression exp, boolean lenient) Interpreting exp as a type specifier, get the actual type.static ExpressionInlineCalls.inlineCalls(Expression exp, Compilation comp) booleanCompilation.inlineOk(Expression proc) booleanCompilation.isApplyFunction(Expression exp) protected static booleanANormalize.isAtomic(Expression exp) Determines if an Expression is atomic, that is if it needs to be normalized or not.booleanCompilation.isSimpleApplyFunction(Expression exp) A simple apply function maps actual arguments to formals directly.Compilation.letDone(Expression body) voidCompilation.letVariable(Declaration decl, Expression init) Compilation.letVariable(Object name, Type type, Expression init) ResolveNames.lookup(Expression exp, Object symbol, boolean function) voidCompilation.loopBody(Expression body) Deprecated.voidCompilation.loopCond(Expression cond) Deprecated.Compilation.loopDone(Expression body) Finish building a loop and return resulting expression.Compilation.loopRepeat(LambdaExp loop, Expression... exps) Recurse to next iteration of specified loop.Compilation.loopRepeatDone(Expression... exps) Combine loopRepeat and loopDone.Compilation.loopVariable(Object name, Type type, Expression init) Add a new loop variable, with initializer.static ApplyExpCompilation.makeCoercion(Expression value, Type type) Convenience method to make an Expression that coerces a value.static ApplyExpCompilation.makeCoercion(Expression value, Expression type) Convenience method to make an Expression that coerces a value.static SetExpSetExp.makeDefinition(Declaration decl, Expression val) static SetExpSetExp.makeDefinition(Object symbol, Expression val) voidDeclaration.makeField(ClassType frameType, Compilation comp, Expression value) voidDeclaration.makeField(Compilation comp, Expression value) final ExpressionExpression.maybeSetLine(Expression old) protected voidChainLambdas.maybeWarnUnreachable(Expression exp) protected ExpressionANormalize.normalizeName(Expression exp, gnu.expr.ANormalize.Context context) Performs the bind operation, introducing a new let expression to capture the result of non-trivial expressions, which is bound to a new let variable.protected ExpressionANormalize.normalizeNames(Expression[] exps, int index, gnu.expr.ANormalize.MultiContext context) Deals with the normalization of multiple expressions.protected ExpressionANormalize.normalizeTerm(Expression exp) Starts the normalization of expression exp.voidDeclaration.noteValue(Expression value) static voidPushApply.pushApply(Expression exp, Compilation comp) voidDeclaration.setAnnotation(int i, Expression ann) Replace one of the annotations associated with this declaration.voidApplyExp.setArg(int i, Expression arg) voidApplyExp.setArgs(Expression[] args) voidBlockExp.setBody(Expression body) voidBlockExp.setBody(Expression body, Expression exitBody) final voidCatchClause.setBody(Expression body) voidLetExp.setBody(Expression body) final voidLambdaExp.setCoercedReturnValue(Expression type, Language language) Modify LambdaExp so result is coerced to given type.voidLambdaExp.setExceptions(Expression[] exceptions) final voidBeginExp.setExpressions(Expression[] exps) ApplyExp.setFuncArgs(Expression func, Expression[] args) ApplyExp.setFuncArgs(Procedure proc, Expression[] args) voidApplyExp.setFunction(Expression func) voidDeclaration.setInitValue(Expression init) final voidLambdaExp.setInlineOnly(Expression returnContinuation, LambdaExp caller) Note this function is inlined in a give context.final voidCompilation.setLine(Expression position) final ExpressionExpression.setLine(Expression old) voidSetExp.setNewValue(Expression newValue) final voidDeclaration.setType(Expression typeExp, Type type) final voidDeclaration.setTypeExp(Expression typeExp) final voidDeclaration.setValue(Expression value) Set the value associated with this Declaration.static TypeInlineCalls.typeForCalledFunction(Expression exp) Return a required type for procedure application context.protected ExpressionExpExpVisitor.update(Expression exp, Expression r) protected ExpressionExpVisitor.update(Expression exp, R r) protected ExpressionPushApply.update(Expression exp, Expression r) ExpVisitor.visit(Expression exp, D d) Call the visit method of argument Expression.static <R,D> R ExpVisitor.visit(ExpVisitor<R, D> visitor, Expression exp, D d) InlineCalls.visit(Expression exp, Type required) ExpVisitor.visitAndUpdate(Expression exp, D d) protected ExpressionFindTailCalls.visitApplyExp(ApplyExp exp, Expression returnContinuation) protected ExpressionFindTailCalls.visitBeginExp(BeginExp exp, Expression returnContinuation) protected ExpressionFindTailCalls.visitBlockExp(BlockExp exp, Expression returnContinuation) protected ExpressionFindTailCalls.visitCaseExp(CaseExp exp, Expression returnContinuation) protected ExpressionFindTailCalls.visitClassExp(ClassExp exp, Expression returnContinuation) voidFindTailCalls.visitDefaultArgs(LambdaExp exp, Expression d) protected ExpressionFindTailCalls.visitExitExp(ExitExp exp, Expression returnContinuation) protected RExpVisitor.visitExpression(Expression exp, D d) protected ExpressionFindTailCalls.visitExpression(Expression exp, Expression returnContinuation) ExpVisitor.visitExps(Expression[] exps, int n, D d) Call visit on the Expressions in an array.ExpVisitor.visitExps(Expression[] exps, D d) FindTailCalls.visitExps(Expression[] exps) protected ExpressionFindTailCalls.visitFluidLetExp(FluidLetExp exp, Expression returnContinuation) protected ExpressionFindTailCalls.visitIfExp(IfExp exp, Expression returnContinuation) protected ExpressionFindTailCalls.visitLambdaExp(LambdaExp exp, Expression returnContinuation) protected ExpressionFindTailCalls.visitLetExp(LetExp exp, Expression returnContinuation) protected ExpressionFindTailCalls.visitModuleExp(ModuleExp exp, Expression returnContinuation) protected ExpressionFindTailCalls.visitSetExp(SetExp exp, Expression returnContinuation) protected ExpressionFindTailCalls.visitSynchronizedExp(SynchronizedExp exp, Expression returnContinuation) protected ExpressionFindTailCalls.visitTryExp(TryExp exp, Expression returnContinuation) Constructors in gnu.expr with parameters of type ExpressionModifierConstructorDescriptionApplyExp(Method m, Expression... a) ApplyExp(Expression f, Expression... a) ApplyExp(Procedure p, Expression... a) BeginExp(Expression[] ex) BeginExp(Expression exp0, Expression exp1) BindingInitializer(Declaration decl, Expression value) CaseClause(Expression exp) Constructor for an else clause of the form (else expression+)CaseClause(Expression[] datums, Expression exp) Constructor for a clause of the form ((datum*) expression+)CaseExp(Expression key, CaseExp.CaseClause[] clauses) Constructor for a case expression with no else clause.CaseExp(Expression key, CaseExp.CaseClause[] clauses, CaseExp.CaseClause elseClause) Constructor for a case expression with an else clause.CatchClause(Declaration decl, Expression body) CatchClause(Object name, Type type, Expression body) ExitExp(Expression result, BlockExp block) IfExp(Expression i, Expression t, Expression e) LambdaExp(Expression body) SetExp(Declaration decl, Expression val) SetExp(Object symbol, Expression val) SynchronizedExp(Expression object, Expression body) TryExp(Expression try_clause, Expression finally_clause) -
Uses of Expression in gnu.kawa.functions
Subclasses of Expression in gnu.kawa.functionsModifier and TypeClassDescriptionclassA specialized ApplyExp class for curried function calls.Methods in gnu.kawa.functions that return ExpressionModifier and TypeMethodDescriptionstatic ExpressionMakeSplice.argIfSplice(Expression exp) static ExpressionGetModuleClass.getModuleClassExp()static ExpressionGetModuleClass.getModuleClassURI(Compilation comp) Return an expression that evaluates to a module-relative URL.static Expressionstatic ExpressionCompileNamedPart.makeExp(Expression clas, Expression member) static ExpressionCompileNamedPart.makeExp(Expression clas, String member) static ExpressionCompileNamedPart.makeGetNamedInstancePartExp(Expression member) static ExpressionCompileArith.pairwise(Procedure proc, Expression rproc, Expression[] args, InlineCalls visitor) Convert (PROC A B C) to (PROC (PROC A B) C) etc.CurryExp.validateApply(ApplyExp exp, InlineCalls visitor, Type required, Declaration decl) static ExpressionCompileArith.validateApplyAdd(AddOp proc, ApplyExp exp, InlineCalls visitor) static ExpressionCompileMisc.validateApplyAppendValues(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileArith.validateApplyArithOp(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileMisc.validateApplyCallCC(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileMisc.validateApplyConstantFunction0(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileMisc.validateApplyConvert(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileArith.validateApplyDiv(DivideOp proc, ApplyExp exp, InlineCalls visitor) static ExpressionCompileMisc.validateApplyFormat(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) Validate-apply handling for "format".static ExpressionCompileMisc.validateApplyMakeDynamic(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileMisc.validateApplyMakeProcedure(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileMisc.validateApplyMakePromise(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileArith.validateApplyNot(ApplyExp exp, int kind, InlineCalls visitor) static ExpressionCompileProcess.validateApplyRunProcess(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) Type-check and optimize RunProcess (i.e.static ExpressionCompileMisc.validateApplySimpleBoolean(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompilationHelpers.validateApplyToArgs(ApplyExp exp, InlineCalls visitor, Type required, Procedure applyToArgs) static ExpressionCompileMisc.validateApplyValuesMap(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileMisc.validateApplyWithExceptionHandler(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileValues.validateApplyWithValues(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileValues.validateCallWithValues(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileNamedPart.validateGetNamedInstancePart(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileNamedPart.validateGetNamedPart(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompilationHelpers.validateIsEqv(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileNamedPart.validateNamedPart(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileNamedPart.validateNamedPartSetter(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileNamedPart.validateSetNamedInstancePart(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileNamedPart.validateSetNamedPart(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompilationHelpers.validateSetter(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) Methods in gnu.kawa.functions with parameters of type ExpressionModifier and TypeMethodDescriptionstatic booleanCompileArith.appropriateIntConstant(Expression[] args, int iarg, InlineCalls visitor) static booleanCompileArith.appropriateLongConstant(Expression[] args, int iarg, InlineCalls visitor) static ExpressionMakeSplice.argIfSplice(Expression exp) static StringCompileNamedPart.combineName(Expression part1, Expression part2) static voidMakeList.compile(Expression[] args, int offset, Compilation comp) static voidValuesMap.compileInlined(LambdaExp lambda, Expression vals, int startCounter, Method matchesMethod, Compilation comp, Target target) booleanCompileArith.compileIntNum(Expression arg1, Expression arg2, int kind1, int kind2, Compilation comp) intCompileArith.getReturnKind(Expression[] args) This actually returns the "promoted argument type".CallCC.getReturnType(Expression[] args) CompileArith.getReturnType(Expression[] args) GetModuleClass.getReturnType(Expression[] args) MakeList.getReturnType(Expression[] args) ValuesMap.getReturnType(Expression[] args) static ExpressionCompileNamedPart.makeExp(Expression clas, Expression member) static ExpressionCompileNamedPart.makeExp(Expression clas, String member) static ExpressionCompileNamedPart.makeGetNamedInstancePartExp(Expression member) static booleanCompilationHelpers.maybeLazy(Expression exp) static ExpressionCompileArith.pairwise(Procedure proc, Expression rproc, Expression[] args, InlineCalls visitor) Convert (PROC A B C) to (PROC (PROC A B) C) etc.Constructors in gnu.kawa.functions with parameters of type ExpressionModifierConstructorDescriptionCurryExp(Procedure currier, Procedure actual, Expression... initial) -
Uses of Expression in gnu.kawa.lispexpr
Methods in gnu.kawa.lispexpr that return ExpressionModifier and TypeMethodDescriptionLangObjType.SimpleVectorBuilder.buildAddChild(Declaration target, Expression child) GenArrayType.convertValue(Expression value) LangObjType.convertValue(Expression value) LangPrimType.convertValue(Expression value) BracketApply.rewrite(Object obj, Translator tr) DefineNamespace.rewriteForm(Pair form, Translator tr) MakeXmlElement.rewriteForm(Pair form, Translator tr) ResolveNamespace.rewriteForm(Pair form, Translator tr) Methods in gnu.kawa.lispexpr with parameters of type ExpressionModifier and TypeMethodDescriptionLangObjType.SimpleVectorBuilder.buildAddChild(Declaration target, Expression child) GenArrayType.convertValue(Expression value) LangObjType.convertValue(Expression value) LangPrimType.convertValue(Expression value) -
Uses of Expression in gnu.kawa.reflect
Methods in gnu.kawa.reflect that return ExpressionModifier and TypeMethodDescriptionCompileBuildObject.build()CompileBuildObject.buildAddChild(Declaration target, Expression child) CompileBuildObject.buildSetter(Declaration target, Member member, Expression value) MappedArrayType.convertValue(Expression value) OccurrenceType.convertValue(Expression value) CompileBuildObject.getArg(int i) static ExpressionCompileReflect.makeSetterCall(Expression receiver, Object slot, Expression newValue) static ExpressionMakeAnnotation.validate(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileReflect.validateApplyInstanceOf(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileInvoke.validateApplyInvoke(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileReflect.validateApplySlotGet(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileReflect.validateApplySlotSet(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileReflect.validateApplyTypeSwitch(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileArrays.validateArrayGet(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileArrays.validateArrayLength(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileArrays.validateArrayNew(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileArrays.validateArraySet(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileInvoke.validateNamedInvoke(ApplyExp exp, InlineCalls visitor, ObjectType type, String name, PrimProcedure[] methods, Invoke iproc, Type required) static ExpressionCompileReflect.validateThrow(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) Methods in gnu.kawa.reflect with parameters of type ExpressionModifier and TypeMethodDescriptionCompileBuildObject.buildAddChild(Declaration target, Expression child) CompileBuildObject.buildSetter(Declaration target, Member member, Expression value) MappedArrayType.convertValue(Expression value) OccurrenceType.convertValue(Expression value) static voidCompileArrays.createArray(Type elementType, Compilation comp, Expression[] args, int start, int end) Optimized code generation of array creation with splicing support.InstanceOf.getReturnType(Expression[] args) StaticGet.getReturnType(Expression[] args) StaticSet.getReturnType(Expression[] args) TypeSwitch.getReturnType(Expression[] args) static PrimProcedureCompileInvoke.getStaticMethod(ClassType type, String name, Expression[] args) static PrimProcedureInvoke.getStaticMethod(ClassType type, String name, Expression[] args) Deprecated.voidCompileBuildObject.insertArgument(int index, Expression arg) Insert an expression into the argument list.static ApplyExpMakeAnnotation.makeAnnotationMaker(Expression classRef) static ApplyExpSlotGet.makeGetField(Expression value, String fieldName) Convenience method to make an Expression that gets the value of a field.static ApplyExpInvoke.makeInvokeStatic(ClassType type, String name, Expression... args) Return an ApplyExp that will call a method with given arguments.static ExpressionCompileReflect.makeSetterCall(Expression receiver, Object slot, Expression newValue) voidCompileBuildObject.setArg(int i, Expression arg) -
Uses of Expression in gnu.kawa.xml
Methods in gnu.kawa.xml that return ExpressionModifier and TypeMethodDescriptionNodeType.convertValue(Expression value) XDataType.convertValue(Expression value) static ExpressionCompileXmlFunctions.validateApplyMakeUnescapedData(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileXmlFunctions.validateApplyTreeScanner(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) Methods in gnu.kawa.xml with parameters of type ExpressionModifier and TypeMethodDescriptionstatic voidNodeConstructor.compileChild(Expression arg, boolean stringIsText, Compilation comp, ConsumerTarget target) static voidNodeConstructor.compileUsingNodeTree(Expression exp, Compilation comp, Target target) Compile an expression using a fresh NodeTree.NodeType.convertValue(Expression value) XDataType.convertValue(Expression value) CoerceNodes.getReturnType(Expression[] args) MakeAttribute.getReturnType(Expression[] args) MakeElement.getReturnType(Expression[] args) NodeConstructor.getReturnType(Expression[] args) SortNodes.getReturnType(Expression[] args) UnionNodes.getReturnType(Expression[] args) -
Uses of Expression in gnu.kawa.xslt
Methods in gnu.kawa.xslt that return Expression -
Uses of Expression in gnu.mapping
Methods in gnu.mapping with parameters of type ExpressionModifier and TypeMethodDescriptionProcedure.getReturnType(Expression[] args) Semi-deprecated - instead should be set at Inline time. -
Uses of Expression in gnu.xquery.lang
Fields in gnu.xquery.lang declared as ExpressionMethods in gnu.xquery.lang that return ExpressionModifier and TypeMethodDescriptionstatic ExpressionXQParser.booleanValue(Expression exp) Coerce the value of an expresison to a boolean value.XQResolveNames.checkPragma(Symbol name, Expression contents) static ExpressionXQParser.makeFunctionExp(String className, String name) static ExpressionXQParser.makeFunctionExp(String className, String fieldName, String name) XQParser.parse(Compilation comp) Parse an expression.XQParser.parseDataType()XQParser.parseFLWRExpression(boolean isFor) XQParser.parseFLWRInner(boolean isFor) Parse a let- or a for-expression.XQParser.parseFunctionDefinition(int declLine, int declColumn) XQParser.parseIfExpr()XQParser.parseItemType()XQParser.parseMaybeKindTest()XQParser.parseNamedNodeType(boolean attribute) XQParser.parseOptionalTypeDeclaration()Parse: ["as" SequenceType]XQParser.parseQuantifiedExpr(boolean isEvery) Parse a some- or an every-expression.XQParser.syntaxError(String message) XQParser.syntaxError(String message, String code) Handle syntax errors (at rewrite time).protected ExpressionXQResolveNames.visitApplyExp(ApplyExp exp, Void ignored) protected ExpressionXQResolveNames.visitReferenceExp(ReferenceExp exp, ApplyExp call) protected ExpressionXQResolveNames.visitReferenceExp(ReferenceExp exp, Void ignored) protected ExpressionXQResolveNames.visitSetExp(SetExp exp, Void ignored) Methods in gnu.xquery.lang with parameters of type ExpressionModifier and TypeMethodDescriptionstatic ExpressionXQParser.booleanValue(Expression exp) Coerce the value of an expresison to a boolean value.XQResolveNames.checkPragma(Symbol name, Expression contents) voidXQParser.maybeSetLine(Expression exp, int line, int column) voidXQParser.maybeSetLine(Expression exp, int startLine, int startColumn, int endLine, int endColumn) -
Uses of Expression in gnu.xquery.util
Methods in gnu.xquery.util that return ExpressionModifier and TypeMethodDescriptionstatic ExpressionCompileMisc.validateApplyCastableAs(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileMisc.validateApplyCastAs(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileMisc.validateApplyOrderedMap(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileMisc.validateApplyRelativeStep(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) static ExpressionCompileMisc.validateApplyValuesFilter(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) Inliner for theValuesFilterprocedure.static ExpressionCompileMisc.validateArithOp(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) Inliner for the ArithOp procedure.static ExpressionCompileMisc.validateBooleanValue(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) Inliner for the BooleanValue procedure.static ExpressionCompileMisc.validateCompare(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc) Inliner for the Compare procedure.Methods in gnu.xquery.util with parameters of type ExpressionModifier and TypeMethodDescriptionstatic TreeScannerRelativeStep.extractStep(Expression exp) OrderedMap.getReturnType(Expression[] args) RelativeStep.getReturnType(Expression[] args) ValuesFilter.getReturnType(Expression[] args) -
Uses of Expression in kawa.lang
Subclasses of Expression in kawa.langModifier and TypeClassDescriptionclassBindings from asyntax-case/syntax-rulespattern.classA scope created when expanding a SyntaxTemplate.Fields in kawa.lang declared as ExpressionMethods in kawa.lang that return ExpressionModifier and TypeMethodDescriptionLambda.auxillaryRewrite(Object body, Translator tr) Translator.checkDefaultBinding(Symbol symbol, Translator tr) If a symbol is lexically unbound, look for a default binding.protected ExpressionQuote.coerceExpression(Object val, Translator tr) BindDecls.compareLiteral(Declaration param, QuoteExp literal) protected ExpressionQuote.leaf(Object val, Translator tr) Translator.makeBody(Expression[] exps) Combine a 'body' consisting of a list of expression.protected ExpressionCombine a list of zero or more expression forms into a "body".Lambda.rewrite(Object obj, Translator tr) Quote.rewrite(Object obj, Translator tr) Syntax.rewrite(Object obj, Translator tr) Re-write an expression that is an "application" of this Syntax object.static ExpressionRe-write a Scheme expression in S-expression format into internal form.Re-write a Scheme expression in S-expression format into internal form.Re-write a Scheme expression in S-expression format into internal form.Translator.rewrite_body(Object exp) Re-write a Scheme 'body' in S-expression format into internal form.final ExpressionTranslator.rewrite_car(Pair pair, boolean function) final ExpressionTranslator.rewrite_car(Pair pair, ScopeExp templateScope) final ExpressionTranslator.rewrite_car(Pair pair, SyntaxForm syntax) final ExpressionTranslator.rewrite_car_for_lookup(Pair pair) Similar to rewrite_car.Translator.rewrite_lookup(Expression part1, Expression part2, boolean function) Translator.rewrite_pair(Pair p, boolean function) Translator.rewrite_with_position(Object exp, boolean function, PairWithPosition pair) static ExpressionSyntaxForms.rewriteBody(Object x) static ExpressionSyntaxForms.rewriteCar(Object x) AutoloadSyntax.rewriteForm(Pair form, Translator tr) Macro.rewriteForm(Pair form, Translator tr) Syntax.rewriteForm(Pair form, Translator tr) Methods in kawa.lang with parameters of type ExpressionModifier and TypeMethodDescriptionvoidTranslator.ScanContext.addSeqExpression(Expression scanExp) GetFieldProc.getReturnType(Expression[] args) SetFieldProc.getReturnType(Expression[] args) Translator.makeBody(Expression[] exps) Combine a 'body' consisting of a list of expression.Translator.namespaceResolve(Expression context, Expression member) Translator.namespaceResolve(Namespace ns, Expression member) Translator.namespaceResolvePrefix(Expression context) Object[]BindDecls.parsePatternCar(Pair patList, Expression init, TemplateScope templateScope, int scanNesting, ScopeExp scope, Translator comp) Translator.rewrite_lookup(Expression part1, Expression part2, boolean function) static voidBindDecls.setInitializer(Declaration decl, Expression init, ScopeExp scope, Translator comp) static voidTranslator.setLine(Expression exp, Object location) voidTranslator.setLineOf(Expression exp) Set the line position of the argument to the current position. -
Uses of Expression in kawa.standard
Methods in kawa.standard that return ExpressionModifier and TypeMethodDescriptionSchemeCompilation.applyFunction(Expression func) SchemeCompilation.checkDefaultBinding(Symbol symbol, Translator tr) If a symbol is lexically unbound, look for a default binding.static Expressionprotected Expressionsyntax.leaf(Object val, Translator tr) begin.rewrite(Object obj, Translator tr) constant_fold.rewrite(Object obj, Translator tr) fluid_let.rewrite(Object bindings, Object body, Translator tr) fluid_let.rewrite(Object obj, Translator tr) Include.rewrite(Object obj, Translator tr) let_syntax.rewrite(Object obj, Translator tr) let.rewrite(Object obj, Translator tr) static Expressionlocation.rewrite(Expression arg, Translator tr) location.rewrite(Object obj, Translator tr) prim_method.rewrite(Object obj, Translator tr) Scan.rewrite(Object obj, Translator tr) syntax_error.rewrite(Object obj, Translator tr) static Expressiondefine_alias.rewriteForm(Pair form, Translator tr) define_autoload.rewriteForm(Pair form, Translator tr) define_class.rewriteForm(Pair form, Translator tr) define_syntax.rewriteForm(Pair form, Translator tr) define_unit.rewriteForm(Pair form, Translator tr) define.rewriteForm(Pair form, Translator tr) export.rewriteForm(Pair form, Translator tr) IfFeature.rewriteForm(Pair form, Translator tr) ImportFromLibrary.rewriteForm(Pair form, Translator tr) MatchDef.rewriteForm(Pair form, Translator tr) module_compile_options.rewriteForm(Pair form, Translator tr) module_extends.rewriteForm(Pair form, Translator tr) module_implements.rewriteForm(Pair form, Translator tr) module_static.rewriteForm(Pair form, Translator tr) object.rewriteForm(Pair form, Translator tr) require.rewriteForm(Pair form, Translator tr) set_b.rewriteForm(Pair form, Translator tr) syntax_case.rewriteForm(Pair form, Translator tr) syntax_rules.rewriteForm(Pair form, Translator tr) syntax.rewriteForm(Pair form, Translator tr) thisRef.rewriteForm(Pair form, Translator tr) with_compile_options.rewriteForm(Pair form, Translator tr) Methods in kawa.standard that return types with arguments of type ExpressionModifier and TypeMethodDescriptionrequire.DeclSetMapper.map(Map<Symbol, Expression> decls, Compilation comp) Methods in kawa.standard with parameters of type ExpressionModifier and TypeMethodDescriptionSchemeCompilation.applyFunction(Expression func) static TypeScheme.exp2Type(Expression exp) Convert expression to a Type.static TypeScheme.getTypeValue(Expression exp) If exp is a "constant" Type, return that type, otherwise return null.booleanSchemeCompilation.isApplyFunction(Expression exp) booleanSchemeCompilation.isSimpleApplyFunction(Expression exp) static Expressionlocation.rewrite(Expression arg, Translator tr) Method parameters in kawa.standard with type arguments of type ExpressionModifier and TypeMethodDescriptionrequire.DeclSetMapper.map(Map<Symbol, Expression> decls, Compilation comp) Constructors in kawa.standard with parameters of type ExpressionModifierConstructorDescriptionfluid_let(boolean star, boolean warnIfUndefined, Expression defaultInit)