Uses of Class
org.fife.rsta.ac.js.ast.type.TypeDeclaration
Packages that use TypeDeclaration
Package
Description
JavaScript code completion classes.
-
Uses of TypeDeclaration in org.fife.rsta.ac.js
Methods in org.fife.rsta.ac.js that return TypeDeclarationModifier and TypeMethodDescriptionprivate static TypeDeclarationJavaScriptHelper.createArrayType(org.mozilla.javascript.ast.AstNode typeNode, SourceCompletionProvider provider) Create array type from AstNode and try to determine the array typestatic TypeDeclarationJavaScriptHelper.createNewTypeDeclaration(String newName) private static TypeDeclarationJavaScriptHelper.findArrayType(org.mozilla.javascript.ast.ArrayLiteral arrayLit, SourceCompletionProvider provider) Find the array type from ArrayLiteral.private static TypeDeclarationJavaScriptHelper.findGetElementType(org.mozilla.javascript.ast.AstNode node, SourceCompletionProvider provider) Check the Get Element and extract the Array type from the variable e.g var a = [1, 2, 3]; var b = a[1]; //b resolves to Numberstatic TypeDeclarationJavaScriptHelper.findOrMakeTypeDeclaration(String name, SourceCompletionProvider provider) static TypeDeclarationJavaScriptHelper.getTypeDeclaration(String name, SourceCompletionProvider provider) Convenience method to lookup TypeDeclaration through the TypeDeclarationFactory.private static TypeDeclarationJavaScriptHelper.getTypeFromInFixExpression(org.mozilla.javascript.ast.AstNode node, SourceCompletionProvider provider) Use a visitor to visit all the nodes to work out which type to return e.g 1 + 1 returns Number 1 + "" returns String true returns Boolean etc.private static TypeDeclarationJavaScriptHelper.processNewNode(org.mozilla.javascript.ast.AstNode typeNode, SourceCompletionProvider provider) SourceCompletionProvider.resolveTypeDeclation(String name) Convenience method to call variable resolverSourceCompletionProvider.resolveTypeFromFunctionNode(org.mozilla.javascript.ast.AstNode functionNode) Get the source of the node and try to resolve function node:static final TypeDeclarationJavaScriptHelper.tokenToNativeTypeDeclaration(org.mozilla.javascript.ast.AstNode typeNode, SourceCompletionProvider provider) Convert AstNode to TypeDeclaration -
Uses of TypeDeclaration in org.fife.rsta.ac.js.ast
Fields in org.fife.rsta.ac.js.ast declared as TypeDeclarationModifier and TypeFieldDescriptionprivate TypeDeclarationJavaScriptVariableDeclaration.originalTypeDecprivate TypeDeclarationJavaScriptFunctionDeclaration.typeDecprotected TypeDeclarationJavaScriptVariableDeclaration.typeDecMethods in org.fife.rsta.ac.js.ast that return TypeDeclarationModifier and TypeMethodDescriptionJavaScriptFunctionDeclaration.getTypeDeclaration()JavaScriptFunctionTypeDeclaration.getTypeDeclaration()JavaScriptVariableDeclaration.getTypeDeclaration()VariableResolver.getTypeDeclarationForVariable(String name, int dot) Find theTypeDeclarationfor the variable and check the scope of the caret positionVariableResolver.resolveType(String varName, int dot) Resolve the entered text by chopping up the text and working from left to right, resolving each type in turnMethods in org.fife.rsta.ac.js.ast with parameters of type TypeDeclarationModifier and TypeMethodDescriptionvoidJavaScriptVariableDeclaration.setTypeDeclaration(TypeDeclaration typeDec) Set TypeDeclarationConstructors in org.fife.rsta.ac.js.ast with parameters of type TypeDeclarationModifierConstructorDescriptionJavaScriptFunctionDeclaration(String name, int offset, CodeBlock block, TypeDeclaration typeDec) -
Uses of TypeDeclaration in org.fife.rsta.ac.js.ast.jsType
Fields in org.fife.rsta.ac.js.ast.jsType declared as TypeDeclarationFields in org.fife.rsta.ac.js.ast.jsType with type parameters of type TypeDeclarationModifier and TypeFieldDescriptionprivate List<TypeDeclaration> JavaScriptFunctionType.argumentsprotected HashMap<TypeDeclaration, JavaScriptType> JavaScriptTypesFactory.cachedTypesMethods in org.fife.rsta.ac.js.ast.jsType that return TypeDeclarationModifier and TypeMethodDescriptionprivate TypeDeclarationJavaScriptFunctionType.convertParamType(TypeDeclaration type, SourceCompletionProvider provider) Convert parameter into TypeDeclarationJavaScriptTypesFactory.createNewTypeDeclaration(ClassFile cf, boolean staticOnly) JavaScriptTypesFactory.createNewTypeDeclaration(ClassFile cf, boolean staticOnly, boolean addToCache) JavaScriptFunctionType.getArgument(int index) JavaScriptType.getType()Methods in org.fife.rsta.ac.js.ast.jsType that return types with arguments of type TypeDeclarationMethods in org.fife.rsta.ac.js.ast.jsType with parameters of type TypeDeclarationModifier and TypeMethodDescriptionvoidJavaScriptFunctionType.addArgument(TypeDeclaration type) private intJavaScriptFunctionType.compareParameters(TypeDeclaration param, TypeDeclaration compareParam, SourceCompletionProvider provider) Converts TypeDeclaration into Java Class and compares whether another parameter is compatible based on JSR-223private TypeDeclarationJavaScriptFunctionType.convertParamType(TypeDeclaration type, SourceCompletionProvider provider) Convert parameter into TypeDeclarationJavaScriptTypesFactory.getCachedType(TypeDeclaration type, JarManager manager, org.fife.ui.autocomplete.DefaultCompletionProvider provider, String text) Find CachedType for TypeDeclaration.JavaScriptTypesFactory.getClassFile(JarManager manager, TypeDeclaration type) RhinoJavaScriptTypesFactory.getClassFile(JarManager manager, TypeDeclaration type) Override getClassFile that checks the imported packages and classnames based on the TypeDeclaration.getAPITypeName()JavaScriptTypesFactory.makeJavaScriptType(TypeDeclaration type) JSR223JavaScriptTypesFactory.makeJavaScriptType(TypeDeclaration type) private voidJavaScriptTypesFactory.readClassFile(JavaScriptType cachedType, ClassFile cf, org.fife.ui.autocomplete.DefaultCompletionProvider provider, JarManager manager, TypeDeclaration type) Read the class file and extract all completions, add them all to the CachedTypevoidJavaScriptTypesFactory.removeCachedType(TypeDeclaration typeDef) Constructors in org.fife.rsta.ac.js.ast.jsType with parameters of type TypeDeclarationConstructor parameters in org.fife.rsta.ac.js.ast.jsType with type arguments of type TypeDeclarationModifierConstructorDescriptionprivateJavaScriptFunctionType(String name, List<TypeDeclaration> arguments, SourceCompletionProvider provider) -
Uses of TypeDeclaration in org.fife.rsta.ac.js.ast.parser
Methods in org.fife.rsta.ac.js.ast.parser that return TypeDeclarationModifier and TypeMethodDescriptionJavaScriptAstParser.FunctionReturnVisitor.getCommonReturnType()Iterate through all the return types and check they are all the same, otherwise return no typeprivate TypeDeclarationJavaScriptAstParser.getFunctionType(org.mozilla.javascript.ast.FunctionNode fn) Methods in org.fife.rsta.ac.js.ast.parser with parameters of type TypeDeclarationModifier and TypeMethodDescriptionprivate JavaScriptFunctionDeclarationJavaScriptAstParser.createJavaScriptFunction(String lookupName, int offset, CodeBlock block, TypeDeclaration returnType, org.mozilla.javascript.ast.FunctionNode fn) -
Uses of TypeDeclaration in org.fife.rsta.ac.js.ast.type
Subclasses of TypeDeclaration in org.fife.rsta.ac.js.ast.typeModifier and TypeClassDescriptionclassExtended TypeDeclaration that stores the TypeDeclaration for the Array.Fields in org.fife.rsta.ac.js.ast.type declared as TypeDeclarationMethods in org.fife.rsta.ac.js.ast.type that return TypeDeclarationModifier and TypeMethodDescriptionArrayTypeDeclaration.getArrayType()TypeDeclarationFactory.getDefaultTypeDeclaration()TypeDeclarationFactory.getTypeDeclaration(String name) Methods in org.fife.rsta.ac.js.ast.type that return types with arguments of type TypeDeclarationMethods in org.fife.rsta.ac.js.ast.type with parameters of type TypeDeclarationModifier and TypeMethodDescriptionvoidTypeDeclarationFactory.addType(String name, TypeDeclaration dec) booleanTypeDeclarationFactory.isJavaScriptType(TypeDeclaration td) Returns whether the qualified name is a built-in JavaScript typevoidArrayTypeDeclaration.setArrayType(TypeDeclaration containerType) -
Uses of TypeDeclaration in org.fife.rsta.ac.js.ast.type.ecma
Fields in org.fife.rsta.ac.js.ast.type.ecma with type parameters of type TypeDeclarationModifier and TypeFieldDescriptionprivate final HashMap<String, TypeDeclaration> TypeDeclarations.typesMethods in org.fife.rsta.ac.js.ast.type.ecma that return TypeDeclarationModifier and TypeMethodDescriptionprivate TypeDeclarationLookup the JavaScript name for a given nameTypeDeclarations.getTypeDeclaration(String name) Methods in org.fife.rsta.ac.js.ast.type.ecma that return types with arguments of type TypeDeclarationMethods in org.fife.rsta.ac.js.ast.type.ecma with parameters of type TypeDeclarationModifier and TypeMethodDescriptionvoidTypeDeclarations.addTypeDeclaration(String name, TypeDeclaration dec) booleanTypeDeclarations.isJavaScriptType(TypeDeclaration td) Returns whether the qualified name is a built-in JavaScript type -
Uses of TypeDeclaration in org.fife.rsta.ac.js.completion
Fields in org.fife.rsta.ac.js.completion declared as TypeDeclarationModifier and TypeFieldDescriptionprivate TypeDeclarationJavaScriptInScriptFunctionCompletion.returnTypeConstructors in org.fife.rsta.ac.js.completion with parameters of type TypeDeclarationModifierConstructorDescriptionJavaScriptInScriptFunctionCompletion(org.fife.ui.autocomplete.CompletionProvider provider, String name, TypeDeclaration returnType) -
Uses of TypeDeclaration in org.fife.rsta.ac.js.resolver
Methods in org.fife.rsta.ac.js.resolver that return TypeDeclarationModifier and TypeMethodDescriptionprotected TypeDeclarationJavaScriptCompletionResolver.findJavaStaticType(org.mozilla.javascript.ast.AstNode node) Try to resolve the Token.NAME AstNode and return a TypeDeclarationprotected TypeDeclarationJSR223JavaScriptCompletionResolver.findJavaStaticType(org.mozilla.javascript.ast.AstNode node) Try to resolve the Token.NAME AstNode and return a TypeDeclarationprotected TypeDeclarationJavaScriptCompletionResolver.resolveNativeType(org.mozilla.javascript.ast.AstNode node) Resolve node type to TypeDeclaration N.B called fromCompilerNodeVisitor.visit()protected abstract TypeDeclarationJavaScriptResolver.resolveNativeType(org.mozilla.javascript.ast.AstNode node) Resolve node type to TypeDeclarationprotected TypeDeclarationJSR223JavaScriptCompletionResolver.resolveNativeType(org.mozilla.javascript.ast.AstNode node) Try to resolve standard JavaScript type.JavaScriptCompletionResolver.resolveNode(org.mozilla.javascript.ast.AstNode node) Resolve node type to TypeDeclaration.abstract TypeDeclarationJavaScriptResolver.resolveNode(org.mozilla.javascript.ast.AstNode node) Resolve node type to TypeDeclaration.JavaScriptCompletionResolver.resolveParamNode(String text) Resolve node type to TypeDeclaration.abstract TypeDeclarationJavaScriptResolver.resolveParamNode(String text) Resolve node type to TypeDeclaration.protected TypeDeclarationJavaScriptCompletionResolver.resolveTypeFromLastJavaScriptType(org.mozilla.javascript.ast.AstNode node) Method called if the lastJavaScriptType is not null.protected TypeDeclarationJavaScriptCompletionResolver.testJavaStaticType(org.mozilla.javascript.ast.AstNode node) Test whether the node can be resolved as a static Java class.