Uses of Class
gnu.expr.Compilation
Packages that use Compilation
Package
Description
Supports
Expression
,
and various related classes need to compile programming languages.Contains classes to use reflection.
-
Uses of Compilation in gnu.expr
Methods in gnu.expr that return CompilationModifier and TypeMethodDescriptionstatic Compilation
Compilation.findForImmediateLiterals
(int key) CommandCompleter.getCompilation()
ExpVisitor.getCompilation()
Get the Compilation associated with this visitor.final Compilation
Language.getCompilation
(Lexer lexer, int options, ModuleInfo info) final Compilation
Language.getCompilation
(SourceMessages messages, NameLookup lexical) ModuleInfo.getCompilation()
static Compilation
Compilation.getCurrent()
final Compilation
Language.parse
(gnu.kawa.io.InPort port, SourceMessages messages, int options) Parse one or more expressions.final Compilation
Language.parse
(gnu.kawa.io.InPort port, SourceMessages messages, int options, ModuleInfo info) final Compilation
Language.parse
(Lexer lexer, int options, ModuleInfo info) static Compilation
Compilation.setSaveCurrent
(Compilation comp) Methods in gnu.expr with parameters of type CompilationModifier and TypeMethodDescriptionvoid
LambdaExp.allocChildClasses
(Compilation comp) void
ModuleExp.allocChildClasses
(Compilation comp) void
LambdaExp.allocFrame
(Compilation comp) static void
ANormalize.aNormalize
(Expression exp, Compilation comp) static void
ChainLambdas.chainLambdas
(Expression exp, Compilation comp) ModuleExp.classFor
(Compilation comp) Return the class for this module.static void
ApplyExp.compile
(ApplyExp exp, Compilation comp, Target target) void
ApplyExp.compile
(Compilation comp, Target target) void
BeginExp.compile
(Compilation comp, Target target) void
BlockExp.compile
(Compilation comp, Target target) void
CaseExp.compile
(Compilation comp, Target target) void
CatchClause.compile
(Compilation comp, Target target) void
ClassExp.compile
(Compilation comp, Target target) void
ErrorExp.compile
(Compilation comp, Target target) void
ExitExp.compile
(Compilation comp, Target target) final void
Expression.compile
(Compilation comp, Type type) final void
Expression.compile
(Compilation comp, Declaration lhs) Compile an expression with checking suitable for a known Declaration.abstract void
Expression.compile
(Compilation comp, Target target) void
FluidLetExp.compile
(Compilation comp, Target target) void
IfExp.compile
(Compilation comp, Target target) static void
IfExp.compile
(Expression test, Expression then_clause, Expression else_clause, Compilation comp, Target target) void
Inlineable.compile
(ApplyExp exp, Compilation comp, Target target) void
LambdaExp.compile
(Compilation comp, Target target) void
LangExp.compile
(Compilation comp, Target target) void
LetExp.compile
(Compilation comp, Target target) void
ObjectExp.compile
(Compilation comp, Target target) boolean
PrimProcedure.compile
(ApplyExp exp, Compilation comp, Target target) void
QuoteExp.compile
(Compilation comp, Target target) void
ReferenceExp.compile
(Compilation comp, Target target) void
SetExp.compile
(Compilation comp, Target target) void
SynchronizedExp.compile
(Compilation comp, Target target) void
ThisExp.compile
(Compilation comp, Target target) void
TryExp.compile
(Compilation comp, Target target) static void
ApplyExp.compileArgsToContext
(ApplyExp exp, Method setupMethod, Compilation comp) void
LambdaExp.compileBody
(Compilation comp) void
LambdaExp.compileEnd
(Compilation comp) void
ConditionalTarget.compileFromStack
(Compilation comp, Type stackType) void
ConsumerTarget.compileFromStack
(Compilation comp, Type stackType) void
IgnoreTarget.compileFromStack
(Compilation comp, Type stackType) void
StackTarget.compileFromStack
(Compilation comp, Type stackType) abstract void
Target.compileFromStack
(Compilation comp, Type stackType) protected boolean
StackTarget.compileFromStack0
(Compilation comp, Type stackType) static void
PrimProcedure.compileInvoke
(Compilation comp, Method method, Target target, boolean isTailCall, int op_code, Type returnType, boolean doFixUnsigned) Emit the actual invoke operation, after arguments have been pushed.ClassExp.compileMembers
(Compilation comp) void
ClassExp.compilePushClass
(Compilation comp, Target target) static final void
PrimProcedure.compileRestArg
(Type arg_type, ApplyExp exp, int startArg, int i, Compilation comp) ClassExp.compileSetField
(Compilation comp) LambdaExp.compileSetField
(Compilation comp) void
Declaration.compileStore
(Compilation comp) static void
ConsumerTarget.compileUsingConsumer
(Expression exp, Compilation comp, Target target) Compile an expression using a temporary Consumer, if needed.static void
ConsumerTarget.compileUsingConsumer
(Expression exp, Compilation comp, Target target, Method makeMethod, Method resultMethod) static void
ConsumerTarget.compileUsingValues
(Expression exp, Compilation comp, Target target) final void
Expression.compileWithPosition
(Compilation comp, Target target) Same as compile, but emit line number beforehard.final void
Expression.compileWithPosition
(Compilation comp, Target target, Expression position) Same as 2-argument compileWithPosition, but use some other Expression's line number.boolean
ConsumerTarget.compileWrite
(Expression exp, Compilation comp) static void
StackTarget.convert
(Compilation comp, Type stackType, Type targetType) static void
BindingInitializer.create
(Declaration decl, Expression value, Compilation comp) Create a BindingInitializer and link it into the correct initializer chain.void
ClassExp.createFields
(Compilation comp) Create a Field in the instanceClass for each declared field.void
ClassExp.declareParts
(Compilation comp) protected void
CheckedTarget.doCoerce
(Compilation comp) protected void
StackTarget.doCoerce
(Compilation comp) static void
ScopeExp.duplicateDeclarationError
(Declaration oldDecl, Declaration newDecl, Compilation comp) void
BindingInitializer.emit
(Compilation comp) void
ClassInitializer.emit
(Compilation comp) abstract void
Initializer.emit
(Compilation comp) void
ProcInitializer.emit
(Compilation comp) static void
CheckedTarget.emitCheckedCoerce
(Compilation comp, LambdaExp proc, int argno, Type stackType, Type type, Variable argValue) static void
CheckedTarget.emitCheckedCoerce
(Compilation comp, String procname, int argno, Type type) protected static void
StackTarget.emitCoerceFromObject
(Type type, Compilation comp) void
TypeValue.emitIsInstance
(Variable incoming, Compilation comp, Target target) Emit code for incoming instanceof this_type.static void
ProcInitializer.emitLoadModuleMethod
(LambdaExp proc, Compilation comp) Create and load a CompiledProc for the given procedure.void
TypeValue.emitTestIf
(Variable incoming, Declaration decl, Compilation comp) Emit code for if (incoming instanceof this_type) decl = incoming ....static final boolean
ModuleExp.evalModule
(Environment env, CallContext ctx, Compilation comp, URL url, gnu.kawa.io.OutPort msg) static final Object
ModuleExp.evalModule1
(Environment env, Compilation comp, URL url, gnu.kawa.io.OutPort msg) Parse and compile a module.static Class
ModuleExp.evalToClass
(Compilation comp, URL url) Compile to a class for immediate evaluation.ModuleManager.find
(Compilation comp) static void
FindCapturedVars.findCapturedVars
(Expression exp, Compilation comp) static void
FindTailCalls.findTailCalls
(Expression exp, Compilation comp) static Type
StackTarget.forceLazy
(Compilation comp, Type stackType, Type type) static Type
StackTarget.forceLazyIfNeeded
(Compilation comp, Type stackType, Type type) void
LambdaExp.generateApplyMethods
(Compilation comp) final void
ClassExp.generateBridgeMethod
(Compilation comp, Method src_method, Type[] bridge_arg_types, Type bridge_return_type) Given an existing method and a desired bridge method signature, generates an appropriate bridge method.ClassExp.getClassName
(Compilation comp) protected ClassType
ClassExp.getCompiledClassType
(Compilation comp) protected ClassType
LambdaExp.getCompiledClassType
(Compilation comp) Return the ClassType of the Procedure this is being compiled into.ScopeExp.getDefine
(Object name, Compilation parser) Add a new Declaration, with a message if there is an existing one.boolean
Declaration.inExternalModule
(Compilation comp) static Expression
InlineCalls.inlineCalls
(Expression exp, Compilation comp) void
Declaration.load
(AccessExp access, int flags, Compilation comp, Target target) Declaration.loadFieldLocation
(Declaration owner, Compilation comp) void
LambdaExp.loadHeapFrame
(Compilation comp) Generate code to load heapFrame on the JVM stack.static Target
ConsumerTarget.makeContextTarget
(Compilation comp, Type type) Make a Target that uses the current CallContext's current Consumer.void
Declaration.makeField
(ClassType frameType, Compilation comp, Expression value) void
Declaration.makeField
(Compilation comp, Expression value) static Expression
Expression.makeWhile
(Object cond, Object body, Compilation parser) Helper method to create a `while' statement.void
Declaration.maybeIndirectBinding
(Compilation comp) final boolean
Language.parse
(Compilation tr) abstract boolean
Language.parse
(Compilation comp, int options) void
BeginExp.popOptions
(Compilation comp) static void
PushApply.pushApply
(Expression exp, Compilation comp) void
Declaration.pushIndirectBinding
(Compilation comp) Create a Location object, given that isIndirectBinding().void
BeginExp.pushOptions
(Compilation comp) static int
Compilation.registerForImmediateLiterals
(Compilation comp) void
Initializer.reportError
(String message, Compilation comp) void
ProcInitializer.reportError
(String message, Compilation comp) void
Language.resolve
(Compilation comp) Perform any need post-processing after we've read all the modules to be compiled.static void
Compilation.restoreCurrent
(Compilation saved) void
LambdaExp.setCallConvention
(Compilation comp) void
ModuleInfo.setCompilation
(Compilation comp) void
ExpVisitor.setContext
(Compilation comp) static void
Compilation.setCurrent
(Compilation comp) void
Expression.setLine
(Compilation comp) Set line number from current position inCompilation
.static Compilation
Compilation.setSaveCurrent
(Compilation comp) void
ClassExp.setTypes
(Compilation comp) Constructors in gnu.expr with parameters of type CompilationModifierConstructorDescriptionClassInitializer
(ClassExp cexp, Field field, Compilation comp) CommandCompleter
(int prefixLength, List<String> candidates, String word, int wordCursor, Compilation comp) ErrorExp
(String message, Compilation comp) InlineCalls
(Compilation comp) LitTable
(Compilation comp) ProcInitializer
(LambdaExp lexp, Compilation comp, Field field) ResolveNames
(Compilation comp) -
Uses of Compilation in gnu.kawa.functions
Methods in gnu.kawa.functions with parameters of type CompilationModifier and TypeMethodDescriptionvoid
AppendValues.compile
(ApplyExp exp, Compilation comp, Target target) void
CallCC.compile
(ApplyExp exp, Compilation comp, Target target) void
CompileArith.compile
(ApplyExp exp, Compilation comp, Target target) void
GetModuleClass.compile
(ApplyExp exp, Compilation comp, Target target) void
MakeList.compile
(ApplyExp exp, Compilation comp, Target target) static void
MakeList.compile
(Expression[] args, int offset, Compilation comp) void
ValuesMap.compile
(ApplyExp exp, Compilation comp, Target target) static void
CompileMisc.compileCallCC
(ApplyExp exp, Compilation comp, Target target, Procedure proc) static boolean
CompileMisc.compileConvert
(ApplyExp exp, Compilation comp, Target target, Procedure procedure) static boolean
CompileMisc.compileEq
(ApplyExp exp, Compilation comp, Target target, Procedure proc) void
CompileArith.compileGeneric
(ApplyExp exp, Compilation comp, Target target) static void
ValuesMap.compileInlined
(LambdaExp lambda, Expression vals, int startCounter, Method matchesMethod, Compilation comp, Target target) boolean
CompileArith.compileIntNum
(Expression arg1, Expression arg2, int kind1, int kind2, Compilation comp) static boolean
CompileMisc.compileMakeDynamic
(ApplyExp exp, Compilation comp, Target target, Procedure procedure) static boolean
CompileMisc.compileNot
(ApplyExp exp, Compilation comp, Target target, Procedure procedure) static boolean
CompileMisc.compileNumberCompare
(ApplyExp exp, Compilation comp, Target target, Procedure procedure) static boolean
CompileMisc.compileNumPredicate
(ApplyExp exp, Compilation comp, Target target, Procedure procedure) static Expression
GetModuleClass.getModuleClassURI
(Compilation comp) Return an expression that evaluates to a module-relative URL. -
Uses of Compilation in gnu.kawa.lispexpr
Methods in gnu.kawa.lispexpr with parameters of type CompilationModifier and TypeMethodDescriptionvoid
GenArrayType.emitIsInstance
(Variable incoming, Compilation comp, Target target) void
LangObjType.emitIsInstance
(Variable incoming, Compilation comp, Target target) void
LangPrimType.emitIsInstance
(Variable incoming, Compilation comp, Target target) void
GenArrayType.emitTestIf
(Variable incoming, Declaration decl, Compilation comp) void
LangObjType.emitTestIf
(Variable incoming, Declaration decl, Compilation comp) void
LangPrimType.emitTestIf
(Variable incoming, Declaration decl, Compilation comp) static void
LangPrimType.emitTestIfNumber
(Variable incoming, Declaration decl, Type type, Compilation comp) boolean
LispLanguage.parse
(Compilation comp, int options) void
LispLanguage.resolve
(Compilation comp) Resolve names and other post-parsing processing. -
Uses of Compilation in gnu.kawa.reflect
Methods in gnu.kawa.reflect that return CompilationMethods in gnu.kawa.reflect with parameters of type CompilationModifier and TypeMethodDescriptionstatic int
CompileReflect.checkKnownClass
(Type type, Compilation comp) Check if class exists.void
InstanceOf.compile
(ApplyExp exp, Compilation comp, Target target) void
SlotGet.compile
(ApplyExp exp, Compilation comp, Target target) void
SlotSet.compile
(ApplyExp exp, Compilation comp, Target target) void
StaticGet.compile
(ApplyExp exp, Compilation comp, Target target) void
StaticSet.compile
(ApplyExp exp, Compilation comp, Target target) void
Throw.compile
(ApplyExp exp, Compilation comp, Target target) void
TypeSwitch.compile
(ApplyExp exp, Compilation comp, Target target) static boolean
CompileArrays.compileGet
(ApplyExp exp, Compilation comp, Target target, Procedure proc) static boolean
CompileArrays.compileLength
(ApplyExp exp, Compilation comp, Target target, Procedure proc) static boolean
CompileArrays.compileMake
(ApplyExp exp, Compilation comp, Target target, Procedure proc) static boolean
CompileArrays.compileNew
(ApplyExp exp, Compilation comp, Target target, Procedure proc) static boolean
CompileArrays.compileSet
(ApplyExp exp, Compilation comp, Target target, Procedure proc) static void
CompileArrays.createArray
(Type elementType, Compilation comp, Expression[] args, int start, int end) Optimized code generation of array creation with splicing support.static void
InstanceOf.emitIsInstance
(TypeValue type, Variable incoming, Compilation comp, Target target) void
MappedArrayType.emitIsInstance
(Variable incoming, Compilation comp, Target target) void
OccurrenceType.emitIsInstance
(Variable incoming, Compilation comp, Target target) void
MappedArrayType.emitTestIf
(Variable incoming, Declaration decl, Compilation comp) void
OccurrenceType.emitTestIf
(Variable incoming, Declaration decl, Compilation comp) -
Uses of Compilation in gnu.kawa.xml
Methods in gnu.kawa.xml with parameters of type CompilationModifier and TypeMethodDescriptionvoid
CoerceNodes.compile
(ApplyExp exp, Compilation comp, Target target) void
MakeText.compile
(ApplyExp exp, Compilation comp, Target target) void
NodeConstructor.compile
(ApplyExp exp, Compilation comp, Target target) void
SortNodes.compile
(ApplyExp exp, Compilation comp, Target target) void
UnionNodes.compile
(ApplyExp exp, Compilation comp, Target target) static void
NodeConstructor.compileChild
(Expression arg, boolean stringIsText, Compilation comp, ConsumerTarget target) static void
Focus.compileGetCurrent
(Compilation comp) void
DocumentConstructor.compileToNode
(ApplyExp exp, Compilation comp, ConsumerTarget target) void
MakeAttribute.compileToNode
(ApplyExp exp, Compilation comp, ConsumerTarget target) void
MakeElement.compileToNode
(ApplyExp exp, Compilation comp, ConsumerTarget target) void
MakeProcInst.compileToNode
(ApplyExp exp, Compilation comp, ConsumerTarget target) void
MakeText.compileToNode
(ApplyExp exp, Compilation comp, ConsumerTarget target) void
MakeWithBaseUri.compileToNode
(ApplyExp exp, Compilation comp, ConsumerTarget target) abstract void
NodeConstructor.compileToNode
(ApplyExp exp, Compilation comp, ConsumerTarget target) static void
NodeConstructor.compileUsingNodeTree
(Expression exp, Compilation comp, Target target) Compile an expression using a fresh NodeTree.protected void
AttributeType.emitCoerceOrNullMethod
(Variable incoming, Compilation comp) protected void
ElementType.emitCoerceOrNullMethod
(Variable incoming, Compilation comp) protected void
NodeType.emitCoerceOrNullMethod
(Variable incoming, Compilation comp) protected void
ProcessingInstructionType.emitCoerceOrNullMethod
(Variable incoming, Compilation comp) void
NodeType.emitIsInstance
(Variable incoming, Compilation comp, Target target) void
XDataType.emitIsInstance
(Variable incoming, Compilation comp, Target target) void
NodeType.emitTestIf
(Variable incoming, Declaration decl, Compilation comp) void
XDataType.emitTestIf
(Variable incoming, Declaration decl, Compilation comp) -
Uses of Compilation in gnu.kawa.xslt
Methods in gnu.kawa.xslt with parameters of type CompilationModifier and TypeMethodDescriptionvoid
ApplyTemplates.compileToNode
(ApplyExp exp, Compilation comp, ConsumerTarget target) boolean
XSLT.parse
(Compilation comp, int options) void
XslTranslator.parse
(Compilation comp) -
Uses of Compilation in gnu.xquery.lang
Methods in gnu.xquery.lang that return CompilationModifier and TypeMethodDescriptionXQuery.getCompilation
(Lexer lexer, SourceMessages messages, NameLookup lexical) Methods in gnu.xquery.lang with parameters of type CompilationModifier and TypeMethodDescriptionXQParser.parse
(Compilation comp) Parse an expression.boolean
XQuery.parse
(Compilation tr, int options) void
XQuery.resolve
(Compilation comp) Constructors in gnu.xquery.lang with parameters of type Compilation -
Uses of Compilation in gnu.xquery.util
Methods in gnu.xquery.util with parameters of type CompilationModifier and TypeMethodDescriptionvoid
CastableAs.compile
(ApplyExp exp, Compilation comp, Target target) void
CastAs.compile
(ApplyExp exp, Compilation comp, Target target) void
OrderedMap.compile
(ApplyExp exp, Compilation comp, Target target) void
RelativeStep.compile
(ApplyExp exp, Compilation comp, Target target) void
ValuesFilter.compile
(ApplyExp exp, Compilation comp, Target target) static void
CompileMisc.compileOrderedMap
(ApplyExp exp, Compilation comp, Target target, Procedure proc) -
Uses of Compilation in kawa.lang
Subclasses of Compilation in kawa.langMethods in kawa.lang that return CompilationModifier and TypeMethodDescriptionstatic final Compilation
CompileFile.read
(gnu.kawa.io.InPort port, SourceMessages messages) static final Compilation
CompileFile.read
(String name, SourceMessages messages) Methods in kawa.lang with parameters of type CompilationModifier and TypeMethodDescriptionvoid
GetFieldProc.compile
(ApplyExp exp, Compilation comp, Target target) void
SetFieldProc.compile
(ApplyExp exp, Compilation comp, Target target) -
Uses of Compilation in kawa.standard
Subclasses of Compilation in kawa.standardMethods in kawa.standard with parameters of type CompilationModifier and TypeMethodDescriptionstatic boolean
require.importDefinitions
(String className, ModuleInfo info, require.DeclSetMapper mapper, Translator.FormStack forms, ScopeExp defs, Compilation tr) Import a module with a known source path.require.DeclSetMapper.map
(Map<Symbol, Expression> decls, Compilation comp)