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 DeclarationDeclaration. baseIf non-null, field is relative to base.DeclarationLambdaExp. nameDeclIf non-null, a Declaration whose value is (only) this LambdaExp.Methods in gnu.expr that return Declaration Modifier and Type Method Description DeclarationScopeExp. addDeclaration(Object name)Create a new declaration in the current Scope.DeclarationScopeExp. addDeclaration(Object name, Type type)Create a new declaration in the current Scope.DeclarationClassExp. addMethod(LambdaExp lexp, Object mname)DeclarationLambdaExp. addParameter(Object name)DeclarationAccessExp. contextDecl()DeclarationLanguage. declFromField(ModuleExp mod, Object fvalue, Field fld)DeclarationModuleExp. firstDecl()DeclarationScopeExp. firstDecl()static DeclarationDeclaration. followAliases(Declaration decl)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.DeclarationScopeExp. getDefine(Object name, Compilation parser)Add a new Declaration, with a message if there is an existing one.DeclarationScopeExp. getNoDefine(Object name)Lookup a declaration, create a non-defining declaration if needed.DeclarationScopeExp. lastDecl()DeclarationCompilation. letVariable(Object name, Type type, Expression init)DeclarationCompilation. lookup(Object name, int namespace)DeclarationNameLookup. lookup(Object symbol, boolean function)DeclarationNameLookup. lookup(Object symbol, int namespace)DeclarationResolveNames. lookup(Expression exp, Object symbol, boolean function)DeclarationScopeExp. lookup(Object sym)Find a Declaration by name.DeclarationScopeExp. lookup(Object sym, Language language, int namespace)DeclarationCompilation. loopVariable(Object name, Type type, Expression init)Add a new loop variable, with initializer.DeclarationDeclaration. nextDecl()Methods in gnu.expr with parameters of type Declaration Modifier and Type Method Description voidScopeExp. add(Declaration decl)voidScopeExp. add(Declaration prev, Declaration decl)Add a Declaration at a specified position.voidTryExp. addCatchClause(Declaration decl, Expression body)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)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)ObjectLanguage. 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 booleanDeclaration. isUnknown(Declaration decl)voidCompilation. letVariable(Declaration decl, Expression init)TypeDeclaration. 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.voidAccessExp. setBinding(Declaration decl)voidAccessExp. setContextDecl(Declaration decl)voidBlockExp. setLabel(Declaration label)voidDeclaration. setNext(Declaration next)protected booleanNameLookup. subsumedBy(Declaration decl, Declaration other)True if decl subsumes (hides) other.ExpressionExpression. validateApply(ApplyExp exp, InlineCalls visitor, Type required, Declaration decl)Apply inlining transformations on a given ApplyExp.ExpressionLambdaExp. validateApply(ApplyExp exp, InlineCalls visitor, Type required, Declaration decl)ExpressionQuoteExp. validateApply(ApplyExp exp, InlineCalls visitor, Type required, Declaration decl)ExpressionReferenceExp. validateApply(ApplyExp exp, InlineCalls visitor, Type required, Declaration decl)protected voidInlineCalls. visitAnnotations(Declaration decl)protected voidExpVisitor. visitDeclarationType(Declaration decl)protected voidFindCapturedVars. 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 DeclarationCompilationHelpers. setterDeclMethods in gnu.kawa.functions with parameters of type Declaration Modifier and Type Method Description ExpressionCurryExp. 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 DeclarationLispLanguage. declFromField(ModuleExp mod, Object fvalue, Field fld)Methods in gnu.kawa.lispexpr with parameters of type Declaration Modifier and Type Method Description ExpressionLangObjType.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 Declaration Modifier and Type Method Description DeclarationFieldLocation. getDeclaration()Methods in gnu.kawa.reflect with parameters of type Declaration Modifier and Type Method Description ExpressionCompileBuildObject. buildAddChild(Declaration target, Expression child)ExpressionCompileBuildObject. 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 Declaration Modifier and Type Method Description voidNodeType. 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 Declaration Modifier and Type Field Description static DeclarationXQResolveNames. castableAsDeclstatic DeclarationXQResolveNames. castAsDeclstatic DeclarationXQResolveNames. handleExtensionDeclstatic DeclarationXQResolveNames. lastDeclDeclaration for thefn:last()function.static DeclarationXQResolveNames. resolvePrefixDeclstatic DeclarationXQResolveNames. staticBaseUriDeclstatic DeclarationXQResolveNames. xsQNameDeclstatic DeclarationXQResolveNames. xsQNameIgnoreDefaultDeclMethods in gnu.xquery.lang that return Declaration Modifier and Type Method Description static DeclarationXQResolveNames. makeBuiltin(Symbol name, int code)Create aDeclarationfor a builtin function.static DeclarationXQResolveNames. makeBuiltin(String name, int code)Create aDeclarationfor a builtin function.DeclarationXQParser. parseVariableDeclaration()Methods in gnu.xquery.lang with parameters of type Declaration Modifier and Type Method Description intXQuery. 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 Declaration Modifier and Type Field Description static DeclarationTranslator. getNamedPartDeclDeclarationPatternScope. matchArrayDeclarationTranslator. matchArrayA variable to hold the matched values for syntax-case pattern variables.DeclarationTranslator. templateScopeDeclMethods in kawa.lang that return Declaration Modifier and Type Method Description protected DeclarationLambda. addParam(Symbol name, TemplateScope templateScope, LambdaExp lexp, Translator tr)DeclarationTranslator.ScanContext. addSeqDecl(Declaration scanVar)DeclarationBindDecls. define(Symbol name, TemplateScope templateScope, ScopeExp scope, Translator comp)DeclarationTranslator. define(Object name, ScopeExp defs)DeclarationTranslator. define(Object name, SyntaxForm nameSyntax, ScopeExp defs)DeclarationTranslator. define(Object name, TemplateScope templateScope, ScopeExp defs)DeclarationTranslator. lookup(Object name, int namespace)DeclarationTranslator. lookupGlobal(Object name)Find global Declaration, creating one if not found.DeclarationTranslator. lookupGlobal(Object name, int namespace)Find global Declaration, creating one if not found.DeclarationTranslator. makeRenamedAlias(Declaration decl, ScopeExp templateScope)DeclarationTranslator. makeRenamedAlias(Object name, Declaration decl, ScopeExp templateScope)Methods in kawa.lang with parameters of type Declaration Modifier and Type Method Description DeclarationTranslator.ScanContext. addSeqDecl(Declaration scanVar)ExpressionBindDecls. compareLiteral(Declaration param, QuoteExp literal)TypeTranslator. exp2Type(Pair typeSpecPair, Declaration decl, SyntaxForm syntax)static MacroMacro. make(Declaration decl)DeclarationTranslator. makeRenamedAlias(Declaration decl, ScopeExp templateScope)DeclarationTranslator. 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 Declaration Modifier and Type Field Description static DeclarationSchemeCompilation. applyFieldDeclMethods in kawa.standard with parameters of type Declaration Modifier and Type Method Description intScheme. 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.
-