Uses of Class
gnu.expr.Declaration
Packages that use Declaration
Package
Description
Supports
Expression
,
and various related classes need to compile programming languages.Contains classes to use reflection.
-
Uses of Declaration in gnu.expr
Fields in gnu.expr declared as DeclarationModifier and TypeFieldDescriptionDeclaration.base
If non-null, field is relative to base.LambdaExp.nameDecl
If non-null, a Declaration whose value is (only) this LambdaExp.Methods in gnu.expr that return DeclarationModifier and TypeMethodDescriptionfinal Declaration
ScopeExp.addDeclaration
(Object name) Create a new declaration in the current Scope.final Declaration
ScopeExp.addDeclaration
(Object name, Type type) Create a new declaration in the current Scope.LambdaExp.addParameter
(Object name) final Declaration
AccessExp.contextDecl()
Language.declFromField
(ModuleExp mod, Object fvalue, Field fld) ModuleExp.firstDecl()
ScopeExp.firstDecl()
static Declaration
Declaration.followAliases
(Declaration decl) final 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.ScopeExp.getDefine
(Object name, Compilation parser) Add a new Declaration, with a message if there is an existing one.ScopeExp.getNoDefine
(Object name) Lookup a declaration, create a non-defining declaration if needed.ScopeExp.lastDecl()
Compilation.letVariable
(Object name, Type type, Expression init) ResolveNames.lookup
(Expression exp, Object symbol, boolean function) Find a Declaration by name.Compilation.loopVariable
(Object name, Type type, Expression init) Add a new loop variable, with initializer.final Declaration
Declaration.nextDecl()
Methods in gnu.expr with parameters of type DeclarationModifier and TypeMethodDescriptionvoid
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) final 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) final 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) 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 final boolean
Declaration.isUnknown
(Declaration decl) void
Compilation.letVariable
(Declaration decl, Expression init) 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
.final void
AccessExp.setBinding
(Declaration decl) final void
AccessExp.setContextDecl
(Declaration decl) void
BlockExp.setLabel
(Declaration label) final void
Declaration.setNext
(Declaration next) protected boolean
NameLookup.subsumedBy
(Declaration decl, Declaration other) True if decl subsumes (hides) other.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) protected void
InlineCalls.visitAnnotations
(Declaration decl) protected void
ExpVisitor.visitDeclarationType
(Declaration decl) protected final void
FindCapturedVars.visitDeclarationType
(Declaration decl) Constructors in gnu.expr with parameters of type DeclarationModifierConstructorDescriptionBindingInitializer
(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 DeclarationMethods in gnu.kawa.functions with parameters of type DeclarationModifier and TypeMethodDescriptionCurryExp.validateApply
(ApplyExp exp, InlineCalls visitor, Type required, Declaration decl) -
Uses of Declaration in gnu.kawa.lispexpr
Methods in gnu.kawa.lispexpr that return DeclarationModifier and TypeMethodDescriptionLispLanguage.declFromField
(ModuleExp mod, Object fvalue, Field fld) Methods in gnu.kawa.lispexpr with parameters of type DeclarationModifier and TypeMethodDescriptionLangObjType.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 DeclarationMethods in gnu.kawa.reflect with parameters of type DeclarationModifier and TypeMethodDescriptionCompileBuildObject.buildAddChild
(Declaration target, Expression child) 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 DeclarationModifier and TypeMethodDescriptionvoid
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 DeclarationModifier and TypeFieldDescriptionstatic final Declaration
XQResolveNames.castableAsDecl
static final Declaration
XQResolveNames.castAsDecl
static final Declaration
XQResolveNames.handleExtensionDecl
static final Declaration
XQResolveNames.lastDecl
Declaration for thefn:last()
function.static final Declaration
XQResolveNames.resolvePrefixDecl
static final Declaration
XQResolveNames.staticBaseUriDecl
static final Declaration
XQResolveNames.xsQNameDecl
static final Declaration
XQResolveNames.xsQNameIgnoreDefaultDecl
Methods in gnu.xquery.lang that return DeclarationModifier and TypeMethodDescriptionstatic 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.XQParser.parseVariableDeclaration()
Methods in gnu.xquery.lang with parameters of type DeclarationModifier and TypeMethodDescriptionint
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 DeclarationModifier and TypeFieldDescriptionstatic final Declaration
Translator.getNamedPartDecl
PatternScope.matchArray
Translator.matchArray
A variable to hold the matched values for syntax-case pattern variables.Translator.templateScopeDecl
Methods in kawa.lang that return DeclarationModifier and TypeMethodDescriptionprotected Declaration
Lambda.addParam
(Symbol name, TemplateScope templateScope, LambdaExp lexp, Translator tr) Translator.ScanContext.addSeqDecl
(Declaration scanVar) BindDecls.define
(Symbol name, TemplateScope templateScope, ScopeExp scope, Translator comp) Translator.define
(Object name, SyntaxForm nameSyntax, ScopeExp defs) Translator.define
(Object name, TemplateScope templateScope, ScopeExp defs) Translator.lookupGlobal
(Object name) Find global Declaration, creating one if not found.Translator.lookupGlobal
(Object name, int namespace) Find global Declaration, creating one if not found.Translator.makeRenamedAlias
(Declaration decl, ScopeExp templateScope) Translator.makeRenamedAlias
(Object name, Declaration decl, ScopeExp templateScope) Methods in kawa.lang with parameters of type DeclarationModifier and TypeMethodDescriptionTranslator.ScanContext.addSeqDecl
(Declaration scanVar) BindDecls.compareLiteral
(Declaration param, QuoteExp literal) Translator.exp2Type
(Pair typeSpecPair, Declaration decl, SyntaxForm syntax) static Macro
Macro.make
(Declaration decl) Translator.makeRenamedAlias
(Declaration decl, ScopeExp templateScope) 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 DeclarationMethods in kawa.standard with parameters of type DeclarationModifier and TypeMethodDescriptionint
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.