Uses of Class
org.fife.rsta.ac.js.ast.type.TypeDeclaration
-
Packages that use TypeDeclaration Package Description org.fife.rsta.ac.js JavaScript code completion classes.org.fife.rsta.ac.js.ast org.fife.rsta.ac.js.ast.jsType org.fife.rsta.ac.js.ast.parser org.fife.rsta.ac.js.ast.type org.fife.rsta.ac.js.ast.type.ecma org.fife.rsta.ac.js.completion org.fife.rsta.ac.js.resolver -
-
Uses of TypeDeclaration in org.fife.rsta.ac.js
Methods in org.fife.rsta.ac.js that return TypeDeclaration Modifier and Type Method Description private 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(java.lang.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(java.lang.String name, SourceCompletionProvider provider)static TypeDeclarationJavaScriptHelper. getTypeDeclaration(java.lang.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)TypeDeclarationSourceCompletionProvider. resolveTypeDeclation(java.lang.String name)Convenience method to call variable resolverTypeDeclarationSourceCompletionProvider. resolveTypeFromFunctionNode(org.mozilla.javascript.ast.AstNode functionNode)Get the source of the node and try to resolve function node:static 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 TypeDeclaration Modifier and Type Field Description private TypeDeclarationJavaScriptVariableDeclaration. originalTypeDecprivate TypeDeclarationJavaScriptFunctionDeclaration. typeDecprotected TypeDeclarationJavaScriptVariableDeclaration. typeDecMethods in org.fife.rsta.ac.js.ast that return TypeDeclaration Modifier and Type Method Description TypeDeclarationJavaScriptFunctionDeclaration. getTypeDeclaration()TypeDeclarationJavaScriptFunctionTypeDeclaration. getTypeDeclaration()TypeDeclarationJavaScriptVariableDeclaration. getTypeDeclaration()TypeDeclarationVariableResolver. getTypeDeclarationForVariable(java.lang.String name, int dot)Find theTypeDeclarationfor the variable and check the scope of the caret positionTypeDeclarationVariableResolver. resolveType(java.lang.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 TypeDeclaration Modifier and Type Method Description voidJavaScriptVariableDeclaration. setTypeDeclaration(TypeDeclaration typeDec)Set TypeDeclarationConstructors in org.fife.rsta.ac.js.ast with parameters of type TypeDeclaration Constructor Description JavaScriptFunctionDeclaration(java.lang.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 TypeDeclaration Modifier and Type Field Description protected TypeDeclarationJavaScriptType. typeFields in org.fife.rsta.ac.js.ast.jsType with type parameters of type TypeDeclaration Modifier and Type Field Description private java.util.List<TypeDeclaration>JavaScriptFunctionType. argumentsprotected java.util.HashMap<TypeDeclaration,JavaScriptType>JavaScriptTypesFactory. cachedTypesMethods in org.fife.rsta.ac.js.ast.jsType that return TypeDeclaration Modifier and Type Method Description private TypeDeclarationJavaScriptFunctionType. convertParamType(TypeDeclaration type, SourceCompletionProvider provider)Convert parameter into TypeDeclarationTypeDeclarationJavaScriptTypesFactory. createNewTypeDeclaration(ClassFile cf, boolean staticOnly)TypeDeclarationJavaScriptTypesFactory. createNewTypeDeclaration(ClassFile cf, boolean staticOnly, boolean addToCache)TypeDeclarationJavaScriptFunctionType. getArgument(int index)TypeDeclarationJavaScriptType. getType()Methods in org.fife.rsta.ac.js.ast.jsType that return types with arguments of type TypeDeclaration Modifier and Type Method Description java.util.List<TypeDeclaration>JavaScriptFunctionType. getArguments()Methods in org.fife.rsta.ac.js.ast.jsType with parameters of type TypeDeclaration Modifier and Type Method Description voidJavaScriptFunctionType. 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 TypeDeclarationJavaScriptTypeJavaScriptTypesFactory. getCachedType(TypeDeclaration type, JarManager manager, org.fife.ui.autocomplete.DefaultCompletionProvider provider, java.lang.String text)Find CachedType for TypeDeclaration.ClassFileJavaScriptTypesFactory. getClassFile(JarManager manager, TypeDeclaration type)ClassFileRhinoJavaScriptTypesFactory. getClassFile(JarManager manager, TypeDeclaration type)Override getClassFile that checks the imported packages and classnames based on the TypeDeclaration.getAPITypeName()JavaScriptTypeJavaScriptTypesFactory. makeJavaScriptType(TypeDeclaration type)JavaScriptTypeJSR223JavaScriptTypesFactory. 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 TypeDeclaration Constructor Description JavaScriptType(TypeDeclaration type)JSR223Type(TypeDeclaration type)Constructor parameters in org.fife.rsta.ac.js.ast.jsType with type arguments of type TypeDeclaration Constructor Description JavaScriptFunctionType(java.lang.String name, java.util.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 TypeDeclaration Modifier and Type Method Description TypeDeclarationJavaScriptAstParser.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 TypeDeclaration Modifier and Type Method Description private JavaScriptFunctionDeclarationJavaScriptAstParser. createJavaScriptFunction(java.lang.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.type Modifier and Type Class Description classArrayTypeDeclarationExtended TypeDeclaration that stores the TypeDeclaration for the Array.Fields in org.fife.rsta.ac.js.ast.type declared as TypeDeclaration Modifier and Type Field Description private TypeDeclarationArrayTypeDeclaration. arrayTypeMethods in org.fife.rsta.ac.js.ast.type that return TypeDeclaration Modifier and Type Method Description TypeDeclarationArrayTypeDeclaration. getArrayType()TypeDeclarationTypeDeclarationFactory. getDefaultTypeDeclaration()TypeDeclarationTypeDeclarationFactory. getTypeDeclaration(java.lang.String name)Methods in org.fife.rsta.ac.js.ast.type that return types with arguments of type TypeDeclaration Modifier and Type Method Description java.util.List<TypeDeclaration>TypeDeclarationFactory. getAllJavaScriptTypes()Methods in org.fife.rsta.ac.js.ast.type with parameters of type TypeDeclaration Modifier and Type Method Description voidTypeDeclarationFactory. addType(java.lang.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 TypeDeclaration Modifier and Type Field Description private java.util.HashMap<java.lang.String,TypeDeclaration>TypeDeclarations. typesMethods in org.fife.rsta.ac.js.ast.type.ecma that return TypeDeclaration Modifier and Type Method Description private TypeDeclarationTypeDeclarations. getJSType(java.lang.String lookupName)Lookup the JavaScript name for a given nameTypeDeclarationTypeDeclarations. getTypeDeclaration(java.lang.String name)Methods in org.fife.rsta.ac.js.ast.type.ecma that return types with arguments of type TypeDeclaration Modifier and Type Method Description java.util.List<TypeDeclaration>TypeDeclarations. getAllJavaScriptTypeDeclarations()Methods in org.fife.rsta.ac.js.ast.type.ecma with parameters of type TypeDeclaration Modifier and Type Method Description voidTypeDeclarations. addTypeDeclaration(java.lang.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 TypeDeclaration Modifier and Type Field Description private TypeDeclarationJavaScriptInScriptFunctionCompletion. returnTypeConstructors in org.fife.rsta.ac.js.completion with parameters of type TypeDeclaration Constructor Description JavaScriptInScriptFunctionCompletion(org.fife.ui.autocomplete.CompletionProvider provider, java.lang.String name, TypeDeclaration returnType) -
Uses of TypeDeclaration in org.fife.rsta.ac.js.resolver
Methods in org.fife.rsta.ac.js.resolver that return TypeDeclaration Modifier and Type Method Description protected 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.TypeDeclarationJavaScriptCompletionResolver. 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.TypeDeclarationJavaScriptCompletionResolver. resolveParamNode(java.lang.String text)Resolve node type to TypeDeclaration.abstract TypeDeclarationJavaScriptResolver. resolveParamNode(java.lang.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.
-