Package org.fife.rsta.ac.js.ast.type
Class ArrayTypeDeclaration
java.lang.Object
org.fife.rsta.ac.js.ast.type.TypeDeclaration
org.fife.rsta.ac.js.ast.type.ArrayTypeDeclaration
Extended TypeDeclaration that stores the TypeDeclaration for the Array.
e.g.
var a = [1, 2, 3]; //Array Type - Number
var b = ["","",""]; //Array Type - String
var c = [1, "", true] //Array Type - any (Default)
This is used to determine the type of object in the array when setting variables: e.g. var a = [1, 2, 3]; //Array Type - Number var d = a[1]; //var d is resolved as a Number
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionArrayTypeDeclaration(String pkg, String apiName, String jsName) ArrayTypeDeclaration(String pkg, String apiName, String jsName, boolean staticsOnly) -
Method Summary
Methods inherited from class org.fife.rsta.ac.js.ast.type.TypeDeclaration
getAPITypeName, getJSName, getPackageName, getQualifiedName, hashCode, isQualified, isStaticsOnly, setStaticsOnly, setSupportsBeanProperties, supportsBeanProperties
-
Field Details
-
arrayType
-
-
Constructor Details
-
ArrayTypeDeclaration
-
ArrayTypeDeclaration
-
-
Method Details
-
getArrayType
-
setArrayType
-
equals
- Overrides:
equalsin classTypeDeclaration
-