Class JavaScriptType
java.lang.Object
org.fife.rsta.ac.js.ast.jsType.JavaScriptType
- Direct Known Subclasses:
JSR223Type
Cached Type Tree Node with pointer to a list of super classes to make it easy
to walk through Completion hierarchy Contains a HashMap of lookup keys to
JSCompletion-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JSCompletionprotected HashMap<String, JSCompletion> private ArrayList<JavaScriptType> protected HashMap<String, JSCompletion> protected TypeDeclaration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JSCompletion_getCompletion(String completionLookup, SourceCompletionProvider provider) voidaddCompletion(JSCompletion completion) Add method or field completion to CachedTypevoidaddConstructor(JSCompletion completion) Adds a constructor completion to CachedType object typevoidaddExtension(JavaScriptType type) Add Cached Type extensionbooleangetCompletion(String completionLookup, SourceCompletionProvider provider) private static JSCompletiongetCompletion(JavaScriptType cachedType, String completionLookup, SourceCompletionProvider provider) getType()inthashCode()Overridden sinceequals(Object)is overridden.removeCompletion(String completionLookup, SourceCompletionProvider provider) private voidremoveCompletion(JavaScriptType type, JSCompletion completion) Recursively walk through completions for this and extended classes to remove completion for this lookup namevoidremoveConstructor(JSCompletion completion) voidsetClassTypeCompletion(JSCompletion classType) Set the class type completion e.g.
-
Field Details
-
type
-
methodFieldCompletions
-
constructors
-
classType
-
extended
-
-
Constructor Details
-
JavaScriptType
-
-
Method Details
-
addCompletion
Add method or field completion to CachedType- Parameters:
completion-- See Also:
-
removeCompletion
-
removeCompletion
Recursively walk through completions for this and extended classes to remove completion for this lookup name- Parameters:
type-completion- The completion to remove.
-
addConstructor
Adds a constructor completion to CachedType object type- Parameters:
completion-
-
removeConstructor
-
setClassTypeCompletion
Set the class type completion e.g. String, Number- Parameters:
classType- Completion to format the class
-
getClassTypeCompletion
- Returns:
- the class type completion for the javascript type
-
getCompletion
- Parameters:
completionLookup-- Returns:
- JSCompletion using lookup name
- See Also:
-
_getCompletion
- Parameters:
completionLookup-- Returns:
- JSCompletion using lookup name
- See Also:
-
getCompletion
private static JSCompletion getCompletion(JavaScriptType cachedType, String completionLookup, SourceCompletionProvider provider) - Parameters:
cachedType-completionLookup-- Returns:
- completion searches this typCompletions first and if not found, then tries the extended type. Recursive routine to drill down for JSCompletion
- See Also:
-
getMethodFieldCompletions
- Returns:
- A map of completion names to completions.
- See Also:
-
getConstructorCompletions
-
getType
- Returns:
- Get type declaration for CachedType
- See Also:
-
addExtension
Add Cached Type extension- Parameters:
type-- See Also:
-
getExtendedClasses
- Returns:
- list of CachedType extended classes
-
equals
-
hashCode
public int hashCode()Overridden sinceequals(Object)is overridden.
-