Uses of Class
gnu.expr.Declaration
-
Packages that use Declaration Package Description gnu.expr SupportsExpression
, and various related classes need to compile programming languages.gnu.kawa.functions gnu.kawa.lispexpr gnu.kawa.reflect Contains classes to use reflection.gnu.kawa.xml gnu.xquery.lang kawa.lang kawa.standard -
-
Uses of Declaration in gnu.expr
Fields in gnu.expr declared as Declaration Modifier and Type Field 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.Methods in gnu.expr that return Declaration Modifier and Type Method Description Declaration
ScopeExp. addDeclaration(Object name)
Create a new declaration in the current Scope.Declaration
ScopeExp. addDeclaration(Object name, Type type)
Create a new declaration in the current Scope.Declaration
ClassExp. addMethod(LambdaExp lexp, Object mname)
Declaration
LambdaExp. addParameter(Object name)
Declaration
AccessExp. contextDecl()
Declaration
Language. declFromField(ModuleExp mod, 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(Object proc, String name)
static Declaration
Declaration. getDeclarationFromStatic(String cname, String fname)
Create a declaration corresponding to a static field.static Declaration
Declaration. getDeclarationValueFromStatic(String className, String fieldName, String name)
Similar togetDeclarationFromStatic
, but also donoteValue
with the field's value.Declaration
ScopeExp. getDefine(Object name, Compilation parser)
Add a new Declaration, with a message if there is an existing one.Declaration
ScopeExp. getNoDefine(Object name)
Lookup a declaration, create a non-defining declaration if needed.Declaration
ScopeExp. lastDecl()
Declaration
Compilation. letVariable(Object name, Type type, Expression init)
Declaration
Compilation. lookup(Object name, int namespace)
Declaration
NameLookup. lookup(Object symbol, boolean function)
Declaration
NameLookup. lookup(Object symbol, int namespace)
Declaration
ResolveNames. lookup(Expression exp, Object symbol, boolean function)
Declaration
ScopeExp. lookup(Object sym)
Find a Declaration by name.Declaration
ScopeExp. lookup(Object sym, Language language, int namespace)
Declaration
Compilation. loopVariable(Object name, Type type, Expression init)
Add a new loop variable, with initializer.Declaration
Declaration. nextDecl()
Methods in gnu.expr with parameters of type Declaration Modifier and Type Method 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
FindCapturedVars. capture(Declaration decl, ReferenceExp rexp)
void
LambdaExp. capture(Declaration decl)
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, String msg1, String msg2)
protected Object
CatchClause. evalVariable(Declaration decl, CallContext ctx)
protected Object
LetExp. evalVariable(Declaration decl, CallContext ctx)
static Declaration
Declaration. followAliases(Declaration decl)
Object
Language. getEnvPropertyFor(Declaration decl)
static Target
CheckedTarget. getInstance(Declaration decl)
static PrimProcedure
PrimProcedure. getMethodFor(ClassType procClass, String name, Declaration decl, Type[] atypes, Language language)
static PrimProcedure
PrimProcedure. getMethodFor(ClassType procClass, String name, Declaration decl, Expression[] args, Language language)
static PrimProcedure
PrimProcedure. getMethodFor(Procedure pproc, 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(Class procClass, String name, Declaration decl, Expression[] args, Language language)
Get PrimProcedure for matching method in given class.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
Compilation. push(Declaration decl)
void
NameLookup. 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 theprev.next
bynewDecl
.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
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)
Expression
ReferenceExp. 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)
Constructors in gnu.expr with parameters of type Declaration Constructor Description BindingInitializer(Declaration decl, Expression value)
CatchClause(Declaration decl, Expression body)
ReferenceExp(Declaration binding)
ReferenceExp(Object symbol, Declaration binding)
SetExp(Declaration decl, Expression val)
ThisExp(Declaration binding)
-
Uses of Declaration in gnu.kawa.functions
Fields in gnu.kawa.functions declared as Declaration Modifier and Type Field Description static Declaration
CompilationHelpers. setterDecl
Methods in gnu.kawa.functions with parameters of type Declaration Modifier and Type Method Description Expression
CurryExp. validateApply(ApplyExp exp, InlineCalls visitor, Type required, Declaration decl)
-
Uses of Declaration in gnu.kawa.lispexpr
Methods in gnu.kawa.lispexpr that return Declaration Modifier and Type Method Description Declaration
LispLanguage. declFromField(ModuleExp mod, Object fvalue, Field fld)
Methods in gnu.kawa.lispexpr with parameters of type Declaration Modifier and Type Method Description Expression
LangObjType.SimpleVectorBuilder. buildAddChild(Declaration target, Expression child)
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)
-
Uses of Declaration in gnu.kawa.reflect
Methods in gnu.kawa.reflect that return Declaration Modifier and Type Method Description Declaration
FieldLocation. getDeclaration()
Methods in gnu.kawa.reflect with parameters of type Declaration Modifier and Type Method Description Expression
CompileBuildObject. buildAddChild(Declaration target, Expression child)
Expression
CompileBuildObject. buildSetter(Declaration target, Member member, Expression value)
void
MappedArrayType. emitTestIf(Variable incoming, Declaration decl, Compilation comp)
void
OccurrenceType. emitTestIf(Variable incoming, Declaration decl, Compilation comp)
static FieldLocation
FieldLocation. make(Object instance, Declaration decl)
static StaticFieldLocation
StaticFieldLocation. make(Declaration decl)
void
FieldLocation. setDeclaration(Declaration decl)
-
Uses of Declaration in gnu.kawa.xml
Methods in gnu.kawa.xml with parameters of type Declaration Modifier and Type Method Description void
NodeType. emitTestIf(Variable incoming, Declaration decl, Compilation comp)
void
XDataType. emitTestIf(Variable incoming, Declaration decl, Compilation comp)
-
Uses of Declaration in gnu.xquery.lang
Fields in gnu.xquery.lang declared as Declaration Modifier and Type Field Description static Declaration
XQResolveNames. castableAsDecl
static Declaration
XQResolveNames. castAsDecl
static Declaration
XQResolveNames. handleExtensionDecl
static Declaration
XQResolveNames. lastDecl
Declaration for thefn:last()
function.static Declaration
XQResolveNames. resolvePrefixDecl
static Declaration
XQResolveNames. staticBaseUriDecl
static Declaration
XQResolveNames. xsQNameDecl
static Declaration
XQResolveNames. xsQNameIgnoreDefaultDecl
Methods in gnu.xquery.lang that return Declaration Modifier and Type Method Description static Declaration
XQResolveNames. makeBuiltin(Symbol name, int code)
Create aDeclaration
for a builtin function.static Declaration
XQResolveNames. makeBuiltin(String name, int code)
Create aDeclaration
for a builtin function.Declaration
XQParser. parseVariableDeclaration()
Methods in gnu.xquery.lang with parameters of type Declaration Modifier and Type Method Description int
XQuery. getNamespaceOf(Declaration decl)
boolean
XQuery. hasNamespace(Declaration decl, int namespace)
void
XQParser. maybeSetLine(Declaration decl, int line, int column)
-
Uses of Declaration in kawa.lang
Fields in kawa.lang declared as Declaration Modifier and Type Field Description static Declaration
Translator. getNamedPartDecl
Declaration
PatternScope. matchArray
Declaration
Translator. matchArray
A variable to hold the matched values for syntax-case pattern variables.Declaration
Translator. templateScopeDecl
Methods in kawa.lang that return Declaration Modifier and Type Method Description protected Declaration
Lambda. addParam(Symbol name, TemplateScope templateScope, LambdaExp lexp, Translator tr)
Declaration
Translator.ScanContext. addSeqDecl(Declaration scanVar)
Declaration
BindDecls. define(Symbol name, TemplateScope templateScope, ScopeExp scope, Translator comp)
Declaration
Translator. define(Object name, ScopeExp defs)
Declaration
Translator. define(Object name, SyntaxForm nameSyntax, ScopeExp defs)
Declaration
Translator. define(Object name, TemplateScope templateScope, ScopeExp defs)
Declaration
Translator. lookup(Object name, int namespace)
Declaration
Translator. lookupGlobal(Object name)
Find global Declaration, creating one if not found.Declaration
Translator. lookupGlobal(Object name, int namespace)
Find global Declaration, creating one if not found.Declaration
Translator. makeRenamedAlias(Declaration decl, ScopeExp templateScope)
Declaration
Translator. makeRenamedAlias(Object name, Declaration decl, ScopeExp templateScope)
Methods in kawa.lang with parameters of type Declaration Modifier and Type Method 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(Object name, Declaration decl, ScopeExp templateScope)
void
BindDecls. parseBracketListPattern(Pair patpair, int scanNesting, ScopeExp scope, Declaration decl, Translator comp)
Handle patterns of the form[pat1 ... patN]
.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, Object location)
-
Uses of Declaration in kawa.standard
Fields in kawa.standard declared as Declaration Modifier and Type Field Description static Declaration
SchemeCompilation. applyFieldDecl
Methods in kawa.standard with parameters of type Declaration Modifier and Type Method 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.
-