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.baseIf non-null, field is relative to base.LambdaExp.nameDeclIf non-null, a Declaration whose value is (only) this LambdaExp.Methods in gnu.expr that return DeclarationModifier and TypeMethodDescriptionfinal DeclarationScopeExp.addDeclaration(Object name) Create a new declaration in the current Scope.final DeclarationScopeExp.addDeclaration(Object name, Type type) Create a new declaration in the current Scope.LambdaExp.addParameter(Object name) final DeclarationAccessExp.contextDecl()Language.declFromField(ModuleExp mod, Object fvalue, Field fld) ModuleExp.firstDecl()ScopeExp.firstDecl()static DeclarationDeclaration.followAliases(Declaration decl) final DeclarationAccessExp.getBinding()If non-null, the local Declaration this refers to.static DeclarationDeclaration.getDeclaration(Named proc) static DeclarationDeclaration.getDeclaration(Object proc, String name) static DeclarationDeclaration.getDeclarationFromStatic(String cname, String fname) Create a declaration corresponding to a static field.static DeclarationDeclaration.getDeclarationValueFromStatic(String className, String fieldName, String name) Similar togetDeclarationFromStatic, but also donoteValuewith 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 DeclarationDeclaration.nextDecl()Methods in gnu.expr with parameters of type DeclarationModifier and TypeMethodDescriptionvoidScopeExp.add(Declaration decl) voidScopeExp.add(Declaration prev, Declaration decl) Add a Declaration at a specified position.voidTryExp.addCatchClause(Declaration decl, Expression body) final voidScopeExp.addDeclaration(Declaration decl) Add a Declaration to the current Scope.static intSetExp.canUseInc(Expression rhs, Declaration target) voidFindCapturedVars.capture(Declaration decl, ReferenceExp rexp) voidLambdaExp.capture(Declaration decl) final voidExpression.compile(Compilation comp, Declaration lhs) Compile an expression with checking suitable for a known Declaration.static voidBindingInitializer.create(Declaration decl, Expression value, Compilation comp) Create a BindingInitializer and link it into the correct initializer chain.static voidScopeExp.duplicateDeclarationError(Declaration oldDecl, Declaration newDecl, Compilation comp) voidTypeValue.emitTestIf(Variable incoming, Declaration decl, Compilation comp) Emit code for if (incoming instanceof this_type) decl = incoming ....voidCompilation.error(char severity, Declaration decl, String msg1, String msg2) protected ObjectCatchClause.evalVariable(Declaration decl, CallContext ctx) protected ObjectLetExp.evalVariable(Declaration decl, CallContext ctx) static DeclarationDeclaration.followAliases(Declaration decl) Language.getEnvPropertyFor(Declaration decl) static TargetCheckedTarget.getInstance(Declaration decl) static PrimProcedurePrimProcedure.getMethodFor(ClassType procClass, String name, Declaration decl, Type[] atypes, Language language) static PrimProcedurePrimProcedure.getMethodFor(ClassType procClass, String name, Declaration decl, Expression[] args, Language language) static PrimProcedurePrimProcedure.getMethodFor(Procedure pproc, Declaration decl, Type[] atypes, 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(Class procClass, String name, Declaration decl, Expression[] args, Language language) Get PrimProcedure for matching method in given class.intLanguage.getNamespaceOf(Declaration decl) Return the namespace (e.g value or function) of a Declaration.booleanLanguage.hasNamespace(Declaration decl, int namespace) True if a Declaration is in the specified namespace.static final booleanDeclaration.isUnknown(Declaration decl) voidCompilation.letVariable(Declaration decl, Expression init) Declaration.loadFieldLocation(Declaration owner, Compilation comp) static SetExpSetExp.makeDefinition(Declaration decl, Expression val) voidVarValueTracker.noteSet(Declaration decl, IntNum source) voidVarValueTracker.noteUnitialized(Declaration decl) Note that decl is uninitialized.booleanNameLookup.pop(Declaration decl) voidCompilation.push(Declaration decl) voidNameLookup.push(Declaration decl) voidScopeExp.remove(Declaration decl) voidScopeExp.remove(Declaration prev, Declaration decl) voidNameLookup.removeSubsumed(Declaration decl) Remove visible declarations subsumed (hidden) by a given declaration.voidScopeExp.replaceFollowing(Declaration prev, Declaration newDecl) Replace theprev.nextbynewDecl.final voidAccessExp.setBinding(Declaration decl) final voidAccessExp.setContextDecl(Declaration decl) voidBlockExp.setLabel(Declaration label) final voidDeclaration.setNext(Declaration next) protected booleanNameLookup.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 voidInlineCalls.visitAnnotations(Declaration decl) protected voidExpVisitor.visitDeclarationType(Declaration decl) protected final voidFindCapturedVars.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) voidGenArrayType.emitTestIf(Variable incoming, Declaration decl, Compilation comp) voidLangObjType.emitTestIf(Variable incoming, Declaration decl, Compilation comp) voidLangPrimType.emitTestIf(Variable incoming, Declaration decl, Compilation comp) static voidLangPrimType.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) voidMappedArrayType.emitTestIf(Variable incoming, Declaration decl, Compilation comp) voidOccurrenceType.emitTestIf(Variable incoming, Declaration decl, Compilation comp) static FieldLocationFieldLocation.make(Object instance, Declaration decl) static StaticFieldLocationStaticFieldLocation.make(Declaration decl) voidFieldLocation.setDeclaration(Declaration decl) -
Uses of Declaration in gnu.kawa.xml
Methods in gnu.kawa.xml with parameters of type DeclarationModifier and TypeMethodDescriptionvoidNodeType.emitTestIf(Variable incoming, Declaration decl, Compilation comp) voidXDataType.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 DeclarationXQResolveNames.castableAsDeclstatic final DeclarationXQResolveNames.castAsDeclstatic final DeclarationXQResolveNames.handleExtensionDeclstatic final DeclarationXQResolveNames.lastDeclDeclaration for thefn:last()function.static final DeclarationXQResolveNames.resolvePrefixDeclstatic final DeclarationXQResolveNames.staticBaseUriDeclstatic final DeclarationXQResolveNames.xsQNameDeclstatic final DeclarationXQResolveNames.xsQNameIgnoreDefaultDeclMethods in gnu.xquery.lang that return DeclarationModifier and TypeMethodDescriptionstatic DeclarationXQResolveNames.makeBuiltin(Symbol name, int code) Create aDeclarationfor a builtin function.static DeclarationXQResolveNames.makeBuiltin(String name, int code) Create aDeclarationfor a builtin function.XQParser.parseVariableDeclaration()Methods in gnu.xquery.lang with parameters of type DeclarationModifier and TypeMethodDescriptionintXQuery.getNamespaceOf(Declaration decl) booleanXQuery.hasNamespace(Declaration decl, int namespace) voidXQParser.maybeSetLine(Declaration decl, int line, int column) -
Uses of Declaration in kawa.lang
Fields in kawa.lang declared as DeclarationModifier and TypeFieldDescriptionstatic final DeclarationTranslator.getNamedPartDeclPatternScope.matchArrayTranslator.matchArrayA variable to hold the matched values for syntax-case pattern variables.Translator.templateScopeDeclMethods in kawa.lang that return DeclarationModifier and TypeMethodDescriptionprotected DeclarationLambda.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 MacroMacro.make(Declaration decl) Translator.makeRenamedAlias(Declaration decl, ScopeExp templateScope) Translator.makeRenamedAlias(Object name, Declaration decl, ScopeExp templateScope) voidBindDecls.parseBracketListPattern(Pair patpair, int scanNesting, ScopeExp scope, Declaration decl, Translator comp) Handle patterns of the form[pat1 ... patN].voidTranslator.pushRenamedAlias(Declaration alias) Push an alias for a declaration in a scope.static voidLambda.rewriteAnnotations(Declaration decl, Translator tr) static voidBindDecls.setInitializer(Declaration decl, Expression init, ScopeExp scope, Translator comp) static voidTranslator.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 TypeMethodDescriptionintScheme.getNamespaceOf(Declaration decl) static booleanIfFeature.isProvide(Declaration decl) protected voidlet.maybeSetProcedure(Declaration decl) Set the procedure flag of a declaration if binding a function property.