Package | Description |
---|---|
gnu.commonlisp.lang | |
gnu.expr |
Supports
Expression ,
and various related classes need to compile programming languages. |
gnu.kawa.functions |
Various core run-time functions and operators.
|
gnu.kawa.lispexpr |
Support classes for compiling and running Lisp languages.
|
gnu.kawa.reflect |
Contains classes to use reflection.
|
gnu.kawa.xml |
Classes for using XML within Kawa.
|
gnu.xquery.lang | |
kawa.lang |
Core Kawa classes for Scheme and Lisp compile-time.
|
kawa.standard |
Primitive Scheme syntax and functions.
|
Modifier and Type | Method and Description |
---|---|
int |
Lisp2.getNamespaceOf(Declaration decl)
Get the namespace of a declaration.
|
Modifier and Type | Field and Description |
---|---|
Declaration |
Declaration.base
If non-null, field is relative to base.
|
Declaration |
LambdaExp.nameDecl
If non-null, a Declaration whose value is (only) this LambdaExp.
|
Modifier and Type | Method and Description |
---|---|
Declaration |
ScopeExp.addDeclaration(java.lang.Object name)
Create a new declaration in the current Scope.
|
Declaration |
ScopeExp.addDeclaration(java.lang.Object name,
Type type)
Create a new declaration in the current Scope.
|
Declaration |
ClassExp.addMethod(LambdaExp lexp,
java.lang.Object mname) |
Declaration |
LambdaExp.addParameter(java.lang.Object name) |
Declaration |
AccessExp.contextDecl() |
Declaration |
Language.declFromField(ModuleExp mod,
java.lang.Object fvalue,
Field fld) |
Declaration |
ModuleExp.firstDecl() |
Declaration |
ScopeExp.firstDecl() |
static Declaration |
Declaration.followAliases(Declaration decl) |
Declaration |
AccessExp.getBinding()
If non-null, the local Declaration this refers to.
|
static Declaration |
Declaration.getDeclaration(Named proc) |
static Declaration |
Declaration.getDeclaration(java.lang.Object proc,
java.lang.String name) |
static Declaration |
Declaration.getDeclarationFromStatic(java.lang.String cname,
java.lang.String fname)
Create a declaration corresponding to a static field.
|
static Declaration |
Declaration.getDeclarationValueFromStatic(java.lang.String className,
java.lang.String fieldName,
java.lang.String name)
Similar to
getDeclarationFromStatic ,
but also do noteValue with the field's value. |
Declaration |
ScopeExp.getDefine(java.lang.Object name,
Compilation parser)
Add a new Declaration, with a message if there is an existing one.
|
Declaration |
ScopeExp.getNoDefine(java.lang.Object name)
Lookup a declaration, create a non-defining declaration if needed.
|
Declaration |
ScopeExp.lastDecl() |
Declaration |
Compilation.letVariable(java.lang.Object name,
Type type,
Expression init) |
Declaration |
ResolveNames.lookup(Expression exp,
java.lang.Object symbol,
boolean function) |
Declaration |
ScopeExp.lookup(java.lang.Object sym)
Find a Declaration by name.
|
Declaration |
NameLookup.lookup(java.lang.Object symbol,
boolean function) |
Declaration |
NameLookup.lookup(java.lang.Object symbol,
int namespace) |
Declaration |
Compilation.lookup(java.lang.Object name,
int namespace) |
Declaration |
ScopeExp.lookup(java.lang.Object sym,
Language language,
int namespace) |
Declaration |
Compilation.loopVariable(java.lang.Object name,
Type type,
Expression init)
Add a new loop variable, with initializer.
|
Declaration |
Declaration.nextDecl() |
Modifier and Type | Method and Description |
---|---|
void |
ScopeExp.add(Declaration decl) |
void |
ScopeExp.add(Declaration prev,
Declaration decl)
Add a Declaration at a specified position.
|
void |
TryExp.addCatchClause(Declaration decl,
Expression body) |
void |
ScopeExp.addDeclaration(Declaration decl)
Add a Declaration to the current Scope.
|
static int |
SetExp.canUseInc(Expression rhs,
Declaration target) |
void |
LambdaExp.capture(Declaration decl) |
void |
FindCapturedVars.capture(Declaration decl,
ReferenceExp rexp) |
void |
Expression.compile(Compilation comp,
Declaration lhs)
Compile an expression with checking suitable for a known Declaration.
|
static void |
BindingInitializer.create(Declaration decl,
Expression value,
Compilation comp)
Create a BindingInitializer and link it into the correct
initializer chain.
|
static void |
ScopeExp.duplicateDeclarationError(Declaration oldDecl,
Declaration newDecl,
Compilation comp) |
void |
TypeValue.emitTestIf(Variable incoming,
Declaration decl,
Compilation comp)
Emit code for
if (incoming instanceof this_type) decl = incoming ....
|
void |
Compilation.error(char severity,
Declaration decl,
java.lang.String msg1,
java.lang.String msg2) |
protected java.lang.Object |
CatchClause.evalVariable(Declaration decl,
CallContext ctx) |
protected java.lang.Object |
LetExp.evalVariable(Declaration decl,
CallContext ctx) |
static Declaration |
Declaration.followAliases(Declaration decl) |
java.lang.Object |
Language.getEnvPropertyFor(Declaration decl) |
static Target |
CheckedTarget.getInstance(Declaration decl) |
static PrimProcedure |
PrimProcedure.getMethodFor(java.lang.Class procClass,
java.lang.String name,
Declaration decl,
Expression[] args,
Language language)
Get PrimProcedure for matching method in given class.
|
static PrimProcedure |
PrimProcedure.getMethodFor(ClassType procClass,
java.lang.String name,
Declaration decl,
Expression[] args,
Language language) |
static PrimProcedure |
PrimProcedure.getMethodFor(ClassType procClass,
java.lang.String name,
Declaration decl,
Type[] atypes,
Language language) |
static PrimProcedure |
PrimProcedure.getMethodFor(Procedure pproc,
Declaration decl,
Expression[] args,
Language language)
Search for a matching static method in a procedure's class.
|
static PrimProcedure |
PrimProcedure.getMethodFor(Procedure pproc,
Declaration decl,
Type[] atypes,
Language language) |
int |
Language.getNamespaceOf(Declaration decl)
Return the namespace (e.g value or function) of a Declaration.
|
boolean |
Language.hasNamespace(Declaration decl,
int namespace)
True if a Declaration is in the specified namespace.
|
static boolean |
Declaration.isUnknown(Declaration decl) |
void |
Compilation.letVariable(Declaration decl,
Expression init) |
Type |
Declaration.loadFieldLocation(Declaration owner,
Compilation comp) |
static SetExp |
SetExp.makeDefinition(Declaration decl,
Expression val) |
void |
VarValueTracker.noteSet(Declaration decl,
IntNum source) |
void |
VarValueTracker.noteUnitialized(Declaration decl)
Note that decl is uninitialized.
|
boolean |
NameLookup.pop(Declaration decl) |
void |
NameLookup.push(Declaration decl) |
void |
Compilation.push(Declaration decl) |
void |
ScopeExp.remove(Declaration decl) |
void |
ScopeExp.remove(Declaration prev,
Declaration decl) |
void |
NameLookup.removeSubsumed(Declaration decl)
Remove visible declarations subsumed (hidden) by a given declaration.
|
void |
ScopeExp.replaceFollowing(Declaration prev,
Declaration newDecl)
Replace the
prev.next by newDecl . |
void |
AccessExp.setBinding(Declaration decl) |
void |
AccessExp.setContextDecl(Declaration decl) |
void |
BlockExp.setLabel(Declaration label) |
void |
Declaration.setNext(Declaration next) |
protected boolean |
NameLookup.subsumedBy(Declaration decl,
Declaration other)
True if decl subsumes (hides) other.
|
Expression |
ReferenceExp.validateApply(ApplyExp exp,
InlineCalls visitor,
Type required,
Declaration decl) |
Expression |
Expression.validateApply(ApplyExp exp,
InlineCalls visitor,
Type required,
Declaration decl)
Apply inlining transformations on a given ApplyExp.
|
Expression |
LambdaExp.validateApply(ApplyExp exp,
InlineCalls visitor,
Type required,
Declaration decl) |
Expression |
QuoteExp.validateApply(ApplyExp exp,
InlineCalls visitor,
Type required,
Declaration decl) |
protected void |
InlineCalls.visitAnnotations(Declaration decl) |
protected void |
ExpVisitor.visitDeclarationType(Declaration decl) |
protected void |
FindCapturedVars.visitDeclarationType(Declaration decl) |
Constructor and Description |
---|
BindingInitializer(Declaration decl,
Expression value) |
CatchClause(Declaration decl,
Expression body) |
ReferenceExp(Declaration binding) |
ReferenceExp(java.lang.Object symbol,
Declaration binding) |
SetExp(Declaration decl,
Expression val) |
ThisExp(Declaration binding) |
Modifier and Type | Field and Description |
---|---|
static Declaration |
CompilationHelpers.setterDecl |
Modifier and Type | Method and Description |
---|---|
Expression |
CurryExp.validateApply(ApplyExp exp,
InlineCalls visitor,
Type required,
Declaration decl) |
Modifier and Type | Method and Description |
---|---|
Declaration |
LispLanguage.declFromField(ModuleExp mod,
java.lang.Object fvalue,
Field fld) |
Modifier and Type | Method and Description |
---|---|
Expression |
LangObjType.SimpleVectorBuilder.buildAddChild(Declaration target,
Expression child) |
void |
LangObjType.emitTestIf(Variable incoming,
Declaration decl,
Compilation comp) |
void |
LangPrimType.emitTestIf(Variable incoming,
Declaration decl,
Compilation comp) |
void |
GenArrayType.emitTestIf(Variable incoming,
Declaration decl,
Compilation comp) |
static void |
LangPrimType.emitTestIfNumber(Variable incoming,
Declaration decl,
Type type,
Compilation comp) |
Modifier and Type | Method and Description |
---|---|
Declaration |
FieldLocation.getDeclaration() |
Modifier and Type | Method and Description |
---|---|
Expression |
CompileBuildObject.buildAddChild(Declaration target,
Expression child) |
Expression |
CompileBuildObject.buildSetter(Declaration target,
Member member,
Expression value) |
void |
OccurrenceType.emitTestIf(Variable incoming,
Declaration decl,
Compilation comp) |
void |
MappedArrayType.emitTestIf(Variable incoming,
Declaration decl,
Compilation comp) |
static StaticFieldLocation |
StaticFieldLocation.make(Declaration decl) |
static FieldLocation |
FieldLocation.make(java.lang.Object instance,
Declaration decl) |
void |
FieldLocation.setDeclaration(Declaration decl) |
Modifier and Type | Method and Description |
---|---|
void |
NodeType.emitTestIf(Variable incoming,
Declaration decl,
Compilation comp) |
void |
XDataType.emitTestIf(Variable incoming,
Declaration decl,
Compilation comp) |
Modifier and Type | Field and Description |
---|---|
static Declaration |
XQResolveNames.castableAsDecl |
static Declaration |
XQResolveNames.castAsDecl |
static Declaration |
XQResolveNames.handleExtensionDecl |
static Declaration |
XQResolveNames.lastDecl
Declaration for the
fn:last() function. |
static Declaration |
XQResolveNames.resolvePrefixDecl |
static Declaration |
XQResolveNames.staticBaseUriDecl |
static Declaration |
XQResolveNames.xsQNameDecl |
static Declaration |
XQResolveNames.xsQNameIgnoreDefaultDecl |
Modifier and Type | Method and Description |
---|---|
static Declaration |
XQResolveNames.makeBuiltin(java.lang.String name,
int code)
Create a
Declaration for a builtin function. |
static Declaration |
XQResolveNames.makeBuiltin(Symbol name,
int code)
Create a
Declaration for a builtin function. |
Declaration |
XQParser.parseVariableDeclaration() |
Modifier and Type | Method and Description |
---|---|
int |
XQuery.getNamespaceOf(Declaration decl) |
boolean |
XQuery.hasNamespace(Declaration decl,
int namespace) |
void |
XQParser.maybeSetLine(Declaration decl,
int line,
int column) |
Modifier and Type | Field and Description |
---|---|
static Declaration |
Translator.getNamedPartDecl |
Declaration |
Translator.matchArray
A variable to hold the matched values for syntax-case
pattern variables.
|
Declaration |
PatternScope.matchArray |
Declaration |
Translator.templateScopeDecl |
Modifier and Type | Method and Description |
---|---|
protected Declaration |
Lambda.addParam(Symbol name,
TemplateScope templateScope,
LambdaExp lexp,
Translator tr) |
Declaration |
Translator.ScanContext.addSeqDecl(Declaration scanVar) |
Declaration |
Translator.define(java.lang.Object name,
ScopeExp defs) |
Declaration |
Translator.define(java.lang.Object name,
SyntaxForm nameSyntax,
ScopeExp defs) |
Declaration |
Translator.define(java.lang.Object name,
TemplateScope templateScope,
ScopeExp defs) |
Declaration |
BindDecls.define(Symbol name,
TemplateScope templateScope,
ScopeExp scope,
Translator comp) |
Declaration |
Translator.lookup(java.lang.Object name,
int namespace) |
Declaration |
Translator.lookupGlobal(java.lang.Object name)
Find global Declaration, creating one if not found.
|
Declaration |
Translator.lookupGlobal(java.lang.Object name,
int namespace)
Find global Declaration, creating one if not found.
|
Declaration |
Translator.makeRenamedAlias(Declaration decl,
ScopeExp templateScope) |
Declaration |
Translator.makeRenamedAlias(java.lang.Object name,
Declaration decl,
ScopeExp templateScope) |
Modifier and Type | Method and Description |
---|---|
Declaration |
Translator.ScanContext.addSeqDecl(Declaration scanVar) |
Expression |
BindDecls.compareLiteral(Declaration param,
QuoteExp literal) |
Type |
Translator.exp2Type(Pair typeSpecPair,
Declaration decl,
SyntaxForm syntax) |
static Macro |
Macro.make(Declaration decl) |
Declaration |
Translator.makeRenamedAlias(Declaration decl,
ScopeExp templateScope) |
Declaration |
Translator.makeRenamedAlias(java.lang.Object name,
Declaration decl,
ScopeExp templateScope) |
void |
BindDecls.parseBracketListPattern(Pair patpair,
int scanNesting,
ScopeExp scope,
Declaration decl,
Translator comp)
Handle patterns of the form {@code [pat1 ...
|
void |
Translator.pushRenamedAlias(Declaration alias)
Push an alias for a declaration in a scope.
|
static void |
Lambda.rewriteAnnotations(Declaration decl,
Translator tr) |
static void |
BindDecls.setInitializer(Declaration decl,
Expression init,
ScopeExp scope,
Translator comp) |
static void |
Translator.setLine(Declaration decl,
java.lang.Object location) |
Modifier and Type | Field and Description |
---|---|
static Declaration |
SchemeCompilation.applyFieldDecl |
Modifier and Type | Method and Description |
---|---|
int |
Scheme.getNamespaceOf(Declaration decl) |
static boolean |
IfFeature.isProvide(Declaration decl) |
protected void |
let.maybeSetProcedure(Declaration decl)
Set the procedure flag of a declaration if binding a function property.
|