Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.type |
Provides type-checking data structures and algorithms.
|
com.google.javascript.rhino.jstype |
Provides abstractions to represent types in JavaScript.
|
com.google.javascript.rhino.testing |
Modifier and Type | Field and Description |
---|---|
private ObjectType |
FunctionTypeBuilder.baseType |
private ObjectType |
DisambiguateProperties.BOTTOM_OBJECT |
private ObjectType |
TypedScopeCreator.LocalScopeBuilder.thisTypeForProperties |
private ObjectType |
TypedScopeCreator.unknownType |
private ObjectType |
TypeInference.unknownType |
Modifier and Type | Field and Description |
---|---|
private java.util.List<ObjectType> |
TypedScopeCreator.delegateProxyPrototypes |
private java.util.List<ObjectType> |
FunctionTypeBuilder.extendedInterfaces |
private java.util.Map<java.lang.String,java.util.IdentityHashMap<JSType,ObjectType>> |
DisambiguateProperties.gtwpCache |
private java.util.Map<FunctionType,java.lang.Iterable<ObjectType>> |
DisambiguateProperties.implementedInterfaces |
private java.util.List<ObjectType> |
FunctionTypeBuilder.implementedInterfaces |
Modifier and Type | Method and Description |
---|---|
private static ObjectType |
InferJSDocInfo.dereferenceToObject(JSType type)
Dereferences the given type to an object, or returns null.
|
(package private) static ObjectType |
TypeValidator.getInstanceOfCtor(TypedVar v)
Utility function for getting an instance type from a var pointing
to the constructor.
|
private ObjectType |
TypedScopeCreator.AbstractScopeBuilder.getObjectSlot(java.lang.String slotName)
Find the ObjectType associated with the given slot.
|
private static ObjectType |
CheckAccessControls.getObjectType(ObjectType referenceType,
boolean isOverride,
java.lang.String propertyName) |
private static ObjectType |
AccessControlUtils.getObjectType(ObjectType referenceType,
boolean isOverride,
java.lang.String propertyName)
Returns the lowest property defined on a class with visibility information.
|
private ObjectType |
TypedScopeCreator.AbstractScopeBuilder.getPrototypeOwnerType(ObjectType ownerType) |
private ObjectType |
TypedScopeCreator.LocalScopeBuilder.getThisTypeForCollectingProperties() |
(package private) ObjectType |
DisambiguateProperties.getTypeWithProperty(java.lang.String field,
JSType type)
Returns the type in the chain from the given type that contains the given
field or null if it is not found anywhere.
|
private ObjectType |
DisambiguateProperties.gtwpCacheGet(java.lang.String field,
JSType type) |
Modifier and Type | Method and Description |
---|---|
private Node |
RuntimeTypeCheck.AddMarkers.addMarker(FunctionType funType,
Node nodeToInsertAfter,
ObjectType interfaceType) |
void |
CodingConvention.applyDelegateRelationship(ObjectType delegateSuperclass,
ObjectType delegateBase,
ObjectType delegator,
FunctionType delegateProxy,
FunctionType findDelegate)
In many JS libraries, the function that creates a delegate relationship
also adds properties to the delegator and delegate base.
|
void |
CodingConventions.Proxy.applyDelegateRelationship(ObjectType delegateSuperclass,
ObjectType delegateBase,
ObjectType delegator,
FunctionType delegateProxy,
FunctionType findDelegate) |
void |
CodingConventions.DefaultCodingConvention.applyDelegateRelationship(ObjectType delegateSuperclass,
ObjectType delegateBase,
ObjectType delegator,
FunctionType delegateProxy,
FunctionType findDelegate) |
void |
ClosureCodingConvention.applySingletonGetterOld(FunctionType functionType,
FunctionType getterType,
ObjectType objectType) |
void |
CodingConvention.applySingletonGetterOld(FunctionType functionType,
FunctionType getterType,
ObjectType objectType)
In many JS libraries, the function that adds a singleton getter to a class
adds properties to the class.
|
void |
CodingConventions.Proxy.applySingletonGetterOld(FunctionType functionType,
FunctionType getterType,
ObjectType objectType) |
void |
CodingConventions.DefaultCodingConvention.applySingletonGetterOld(FunctionType functionType,
FunctionType getterType,
ObjectType objectType) |
private static void |
InferJSDocInfo.attachJSDocInfoToNominalTypeOrShape(ObjectType objType,
JSDocInfo docInfo,
java.lang.String qName)
Handle cases #1 and #3 in the class doc.
|
private JSType |
TypeTransformation.buildRecordTypeFromObject(ObjectType objType) |
java.util.Set<java.lang.String> |
GatherExternProperties.ExtractRecordTypePropertyNames.caseObjectType(ObjectType type) |
private static ConformanceRules.ConformanceResult |
ConformanceRules.NoImplicitlyPublicDecls.checkCtorProperties(ObjectType type) |
private void |
TypeCheck.checkInterfaceConflictProperties(NodeTraversal t,
Node n,
java.lang.String functionName,
java.util.Map<java.lang.String,ObjectType> properties,
java.util.Map<java.lang.String,ObjectType> currentProperties,
ObjectType interfaceType)
Check whether there's any property conflict for for a particular super
interface
|
private void |
CheckAccessControls.checkOverriddenPropertyVisibility(NodeTraversal t,
Node getprop,
Node parent,
JSDocInfo.Visibility visibility,
JSDocInfo.Visibility fileOverviewVisibility,
ObjectType objectType,
boolean sameInput) |
private void |
TypeCheck.checkPropertyInheritanceOnPrototypeLitKey(NodeTraversal t,
Node key,
java.lang.String propertyName,
ObjectType type) |
private boolean |
TypeCheck.classHasToString(ObjectType type)
Checks whether class has overridden toString() method.
|
private JSType |
TypeTransformation.createTemplatizedType(ObjectType baseType,
JSType[] params) |
private boolean |
TypeInference.ensurePropertyDeclaredHelper(Node getprop,
ObjectType objectType)
Declares a property on its owner, if necessary.
|
private void |
TypeValidator.expectInterfaceProperty(NodeTraversal t,
Node n,
ObjectType instance,
ObjectType implementedInterface,
java.lang.String prop)
Expect that the property in an interface that this type implements is
implemented and correctly typed.
|
(package private) void |
TypeValidator.expectSuperType(NodeTraversal t,
Node n,
ObjectType superObject,
ObjectType subObject)
Expect that the first type is the direct superclass of the second type.
|
private FunctionType |
TypedScopeCreator.AbstractScopeBuilder.findOverriddenFunction(ObjectType ownerType,
java.lang.String propName,
TemplateTypeMap typeMap)
Find the function that's being overridden on this type, if any.
|
private static StaticSourceFile |
CheckAccessControls.getDefiningSource(Node getprop,
ObjectType referenceType,
java.lang.String propertyName) |
private static StaticSourceFile |
AccessControlUtils.getDefiningSource(Node getprop,
ObjectType referenceType,
java.lang.String propertyName)
Returns the source file in which the given property is defined,
or null if it is not known.
|
(package private) static JSDocInfo.Visibility |
AccessControlUtils.getEffectivePropertyVisibility(Node property,
ObjectType referenceType,
com.google.common.collect.ImmutableMap<StaticSourceFile,JSDocInfo.Visibility> fileVisibilityMap,
CodingConvention codingConvention)
Returns the effective visibility of the given property.
|
private static JSDocInfo.Visibility |
AccessControlUtils.getEffectiveVisibilityForNonOverriddenProperty(Node getprop,
ObjectType objectType,
JSDocInfo.Visibility fileOverviewVisibility,
CodingConvention codingConvention)
Returns the effective visibility of the given non-overridden property.
|
private static ObjectType |
CheckAccessControls.getObjectType(ObjectType referenceType,
boolean isOverride,
java.lang.String propertyName) |
private static ObjectType |
AccessControlUtils.getObjectType(ObjectType referenceType,
boolean isOverride,
java.lang.String propertyName)
Returns the lowest property defined on a class with visibility information.
|
private static JSDocInfo.Visibility |
AccessControlUtils.getOverriddenPropertyVisibility(ObjectType objectType,
java.lang.String propertyName)
Returns the original visibility of an overridden property.
|
private static java.lang.String |
CheckAccessControls.getPropertyDeprecationInfo(ObjectType type,
java.lang.String prop)
Returns the deprecation reason for the property if it is marked
as being deprecated.
|
private ObjectType |
TypedScopeCreator.AbstractScopeBuilder.getPrototypeOwnerType(ObjectType ownerType) |
private void |
DisambiguateProperties.gtwpCachePut(java.lang.String field,
JSType type,
ObjectType top) |
private static boolean |
FunctionTypeBuilder.hasMoreTagsToResolve(ObjectType objectType)
Check whether a type is resolvable in the future
If this has a supertype that hasn't been resolved yet, then we can assume
this type will be OK once the super type resolves.
|
private boolean |
CheckAccessControls.isPropertyDeclaredConstant(ObjectType objectType,
java.lang.String prop)
Returns if a property is declared constant.
|
(package private) void |
TypedScopeCreator.AbstractScopeBuilder.processObjectLitProperties(Node objLit,
ObjectType objLitType,
boolean declareOnOwner)
Process an object literal and all the types on it.
|
private static boolean |
TypeCheck.propertyIsImplicitCast(ObjectType type,
java.lang.String prop)
Returns true if any type in the chain has an implicitCast annotation for
the given property.
|
private void |
FieldCleanupPass.QualifiedNameSearchTraversal.removeProperty(ObjectType type,
java.lang.String propName)
Removes a given property from a type and updates type-registry.
|
Modifier and Type | Method and Description |
---|---|
private void |
TypeCheck.checkInterfaceConflictProperties(NodeTraversal t,
Node n,
java.lang.String functionName,
java.util.Map<java.lang.String,ObjectType> properties,
java.util.Map<java.lang.String,ObjectType> currentProperties,
ObjectType interfaceType)
Check whether there's any property conflict for for a particular super
interface
|
private void |
TypeCheck.checkInterfaceConflictProperties(NodeTraversal t,
Node n,
java.lang.String functionName,
java.util.Map<java.lang.String,ObjectType> properties,
java.util.Map<java.lang.String,ObjectType> currentProperties,
ObjectType interfaceType)
Check whether there's any property conflict for for a particular super
interface
|
void |
CodingConvention.defineDelegateProxyPrototypeProperties(JSTypeRegistry registry,
StaticTypedScope<JSType> scope,
java.util.List<ObjectType> delegateProxyPrototypes,
java.util.Map<java.lang.String,java.lang.String> delegateCallingConventions)
Defines the delegate proxy prototype properties.
|
void |
CodingConventions.Proxy.defineDelegateProxyPrototypeProperties(JSTypeRegistry registry,
StaticTypedScope<JSType> scope,
java.util.List<ObjectType> delegateProxyPrototypes,
java.util.Map<java.lang.String,java.lang.String> delegateCallingConventions) |
void |
CodingConventions.DefaultCodingConvention.defineDelegateProxyPrototypeProperties(JSTypeRegistry registry,
StaticTypedScope<JSType> scope,
java.util.List<ObjectType> delegateProxyPrototypes,
java.util.Map<java.lang.String,java.lang.String> delegateCallingConventions) |
Modifier and Type | Field and Description |
---|---|
private ObjectType |
SemanticReverseAbstractInterpreter.RestrictByTrueInstanceOfResultVisitor.target |
private ObjectType |
SemanticReverseAbstractInterpreter.RestrictByFalseInstanceOfResultVisitor.target |
Modifier and Type | Method and Description |
---|---|
JSType |
ChainableReverseAbstractInterpreter.RestrictByTrueTypeOfResultVisitor.caseObjectType(ObjectType type) |
JSType |
ChainableReverseAbstractInterpreter.RestrictByFalseTypeOfResultVisitor.caseObjectType(ObjectType type) |
JSType |
ChainableReverseAbstractInterpreter.RestrictByOneTypeOfResultVisitor.caseObjectType(ObjectType type) |
JSType |
SemanticReverseAbstractInterpreter.RestrictByTrueInstanceOfResultVisitor.caseObjectType(ObjectType type) |
JSType |
SemanticReverseAbstractInterpreter.RestrictByFalseInstanceOfResultVisitor.caseObjectType(ObjectType type) |
Constructor and Description |
---|
RestrictByFalseInstanceOfResultVisitor(ObjectType target) |
RestrictByTrueInstanceOfResultVisitor(ObjectType target) |
Modifier and Type | Class and Description |
---|---|
class |
EnumElementType
The type of individual elements of an enum type
(see
EnumType ). |
class |
EnumType
An enum type representing a branded collection of elements.
|
(package private) class |
ErrorFunctionType
This type is for built-in error constructors.
|
class |
FunctionType
This derived type provides extended information about a function, including
its return type and argument types.
|
(package private) class |
InstanceObjectType
An object type that is an instance of some function constructor.
|
class |
NamedType
A
NamedType is a named reference to some other type. |
(package private) class |
NamespaceType
A namespace type is a reference to a particular object.
|
class |
NoObjectType
The bottom Object type, representing the subclass of all objects.
|
(package private) class |
NoResolvedType
An unresolved type that was forward declared.
|
class |
NoType
Bottom type, representing the subclass of any value or object.
|
class |
PrototypeObjectType
The object type represents instances of JavaScript objects such as
Object , Date , Function . |
class |
ProxyObjectType
An object type which uses composition to delegate all calls.
|
class |
RecordType
A record (structural) type.
|
class |
TemplateType |
class |
TemplatizedType
An object type with declared template types, such as
Array<string> . |
class |
UnknownType
The
Unknown type. |
Modifier and Type | Field and Description |
---|---|
private ObjectType |
PrototypeObjectType.implicitPrototypeFallback |
private ObjectType |
PropertyMap.parentSource |
private ObjectType |
EnumElementType.primitiveObjectType |
private ObjectType |
ProxyObjectType.referencedObjType |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.util.Map<java.lang.String,ObjectType>> |
JSTypeRegistry.eachRefTypeIndexedByProperty |
private com.google.common.collect.ImmutableList<ObjectType> |
FunctionType.extendedInterfaces
The interfaces directly extended by this function (for interfaces)
It is only relevant for constructors.
|
private com.google.common.collect.ImmutableList<ObjectType> |
FunctionType.implementedInterfaces
The interfaces directly implemented by this function (for constructors)
It is only relevant for constructors.
|
private static com.google.common.base.Function<ObjectType,PropertyMap> |
PropertyMap.PROP_MAP_FROM_TYPE |
Modifier and Type | Method and Description |
---|---|
static ObjectType |
ObjectType.cast(JSType type)
A null-safe version of JSType#toObjectType.
|
ObjectType |
JSTypeRegistry.createAnonymousObjectType(JSDocInfo info)
Create an anonymous object type.
|
ObjectType |
JSTypeRegistry.createObjectType(java.lang.String name,
ObjectType implicitPrototype)
Create an object type.
|
ObjectType |
JSType.dereference()
Dereference a type for property access.
|
(package private) ObjectType |
JSTypeRegistry.findCommonSuperObject(ObjectType a,
ObjectType b)
Finds the common supertype of the two given object types.
|
ObjectType |
UnknownType.getImplicitPrototype() |
abstract ObjectType |
ObjectType.getImplicitPrototype()
Gets the implicit prototype (a.k.a.
|
ObjectType |
EnumElementType.getImplicitPrototype() |
ObjectType |
RecordType.getImplicitPrototype() |
ObjectType |
ProxyObjectType.getImplicitPrototype() |
ObjectType |
EnumType.getImplicitPrototype() |
ObjectType |
InstanceObjectType.getImplicitPrototype() |
ObjectType |
NoObjectType.getImplicitPrototype() |
ObjectType |
PrototypeObjectType.getImplicitPrototype() |
ObjectType |
FunctionType.getInstanceType()
Gets the type of instance of this function.
|
ObjectType |
JSTypeRegistry.getNativeObjectType(JSTypeNative typeId) |
ObjectType |
ObjectType.getParentScope() |
ObjectType |
FunctionType.getPrototype()
Gets the
prototype property of this function type. |
(package private) ObjectType |
ProxyObjectType.getReferencedObjTypeInternal() |
ObjectType |
TemplatizedType.getReferencedType() |
static ObjectType |
FunctionType.getTopDefiningInterface(ObjectType type,
java.lang.String propertyName)
Given an interface and a property, finds the top-most super interface
that has the property defined (including this interface).
|
ObjectType |
FunctionType.getTopMostDefiningType(java.lang.String propertyName)
Given a constructor or an interface type and a property, finds the
top-most superclass that has the property defined (including this
constructor).
|
ObjectType |
JSType.toMaybeObjectType() |
ObjectType |
JSType.toObjectType()
Casts this to an ObjectType, or returns null if this is not an ObjectType.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<ObjectType> |
FunctionType.getAllImplementedInterfaces()
Returns all interfaces implemented by a class or its superclass and any
superclasses for any of those interfaces.
|
java.lang.Iterable<ObjectType> |
ObjectType.getCtorExtendedInterfaces()
Gets the interfaces extended by the interface associated with this type.
|
java.lang.Iterable<ObjectType> |
InstanceObjectType.getCtorExtendedInterfaces() |
java.lang.Iterable<ObjectType> |
PrototypeObjectType.getCtorExtendedInterfaces() |
java.lang.Iterable<ObjectType> |
ObjectType.getCtorImplementedInterfaces()
Gets the interfaces implemented by the ctor associated with this type.
|
java.lang.Iterable<ObjectType> |
ProxyObjectType.getCtorImplementedInterfaces() |
java.lang.Iterable<ObjectType> |
InstanceObjectType.getCtorImplementedInterfaces() |
java.lang.Iterable<ObjectType> |
PrototypeObjectType.getCtorImplementedInterfaces() |
java.lang.Iterable<ObjectType> |
JSTypeRegistry.getEachReferenceTypeWithProperty(java.lang.String propertyName)
Returns each reference type that has a property
propertyName
defined on it. |
java.lang.Iterable<ObjectType> |
FunctionType.getExtendedInterfaces()
Returns interfaces directly extended by an interface
|
java.lang.Iterable<ObjectType> |
FunctionType.getImplementedInterfaces()
Returns interfaces implemented directly by a class or its superclass.
|
java.lang.Iterable<ObjectType> |
FunctionType.getOwnImplementedInterfaces()
Returns interfaces directly implemented by the class.
|
private static java.util.List<ObjectType> |
JSTypeRegistry.getSuperStack(ObjectType a) |
private com.google.common.collect.ImmutableList<ObjectType> |
FunctionType.resolveTypeListHelper(com.google.common.collect.ImmutableList<ObjectType> list,
ErrorReporter t,
StaticTypedScope<JSType> scope)
Resolve each item in the list, and return a new list if any
references changed.
|
Modifier and Type | Method and Description |
---|---|
private void |
FunctionType.addRelatedExtendedInterfaces(ObjectType instance,
java.util.Set<ObjectType> set) |
private void |
FunctionType.addRelatedInterfaces(ObjectType instance,
java.util.Set<ObjectType> set) |
T |
Visitor.caseObjectType(ObjectType type)
Object type's case.
|
JSType |
ModificationVisitor.caseObjectType(ObjectType objType) |
java.lang.Boolean |
CanCastToVisitor.caseObjectType(ObjectType thisType,
JSType thatType) |
T |
RelationshipVisitor.caseObjectType(ObjectType thisType,
JSType thatType)
Object type's case.
|
(package private) boolean |
ObjectType.checkStructuralEquivalenceHelper(ObjectType otherObject,
EquivalenceMethod eqMethod,
JSType.EqCache eqCache)
Check for structural equivalence with
that . |
(package private) void |
NamedType.PropertyContinuation.commit(ObjectType target) |
JSType |
JSTypeRegistry.createFunctionTypeWithInstanceType(ObjectType instanceType,
JSType returnType,
java.util.List<JSType> parameterTypes)
Creates a function type in which
this refers to an object instance. |
ObjectType |
JSTypeRegistry.createObjectType(java.lang.String name,
ObjectType implicitPrototype)
Create an object type.
|
TemplatizedType |
JSTypeRegistry.createTemplatizedType(ObjectType baseType,
com.google.common.collect.ImmutableList<JSType> templatizedTypes)
Creates a templatized instance of the specified type.
|
TemplatizedType |
JSTypeRegistry.createTemplatizedType(ObjectType baseType,
JSType... templatizedTypes)
Creates a templatized instance of the specified type.
|
TemplatizedType |
JSTypeRegistry.createTemplatizedType(ObjectType baseType,
java.util.Map<TemplateType,JSType> templatizedTypes)
Creates a templatized instance of the specified type.
|
void |
FunctionType.extendTemplateTypeMapBasedOn(ObjectType type)
Extends the TemplateTypeMap of the function's this type, based on the
specified type.
|
(package private) ObjectType |
JSTypeRegistry.findCommonSuperObject(ObjectType a,
ObjectType b)
Finds the common supertype of the two given object types.
|
private java.lang.String |
JSType.getConcreteNominalTypeName(ObjectType objType) |
java.util.Collection<FunctionType> |
JSTypeRegistry.getDirectImplementors(ObjectType interfaceInstance)
Returns a collection of types that directly implement
interfaceInstance . |
private static java.util.List<ObjectType> |
JSTypeRegistry.getSuperStack(ObjectType a) |
static ObjectType |
FunctionType.getTopDefiningInterface(ObjectType type,
java.lang.String propertyName)
Given an interface and a property, finds the top-most super interface
that has the property defined (including this interface).
|
(package private) boolean |
ObjectType.isImplicitPrototype(ObjectType prototype)
Checks that the prototype is an implicit prototype of this object.
|
(package private) boolean |
ObjectType.isStructuralSubtype(ObjectType superType,
JSType.ImplCache implicitImplCache)
Determine if
this is a an implicit subtype of superType . |
private static boolean |
ObjectType.isStructuralSubtypeHelper(ObjectType typeA,
ObjectType typeB,
JSType.ImplCache implicitImplCache) |
(package private) static boolean |
PrototypeObjectType.isSubtype(ObjectType typeA,
RecordType typeB,
JSType.ImplCache implicitImplCache)
Determines if typeA is a subtype of typeB
|
void |
PrototypeObjectType.matchRecordTypeConstraint(ObjectType constraintObj) |
(package private) void |
JSTypeRegistry.registerTypeImplementingInterface(FunctionType type,
ObjectType interfaceInstance)
Tells the type system that
type implements interface interfaceInstance . |
boolean |
JSTypeRegistry.resetImplicitPrototype(JSType type,
ObjectType newImplicitProto)
Set the implicit prototype if it's possible to do so.
|
(package private) void |
PrototypeObjectType.setImplicitPrototype(ObjectType implicitPrototype)
This should only be reset on the FunctionPrototypeType, only to fix an
incorrectly established prototype chain due to the user having a mismatch
in super class declaration, and only before properties on that type are
processed.
|
(package private) void |
FunctionType.setInstanceType(ObjectType instanceType)
Sets the instance type.
|
(package private) void |
PropertyMap.setParentSource(ObjectType ownerType) |
(package private) boolean |
FunctionType.setPrototype(ObjectType prototype,
Node propertyNode)
Sets the prototype.
|
void |
FunctionType.setPrototypeBasedOn(ObjectType baseType)
Sets the prototype, creating the prototype object from the given
base type.
|
(package private) void |
FunctionType.setPrototypeBasedOn(ObjectType baseType,
Node propertyNode) |
private boolean |
FunctionType.setPrototypeNoCheck(ObjectType prototype,
Node propertyNode)
Set the prototype without doing any sanity checks.
|
Modifier and Type | Method and Description |
---|---|
private void |
FunctionType.addRelatedExtendedInterfaces(ObjectType instance,
java.util.Set<ObjectType> set) |
private void |
FunctionType.addRelatedInterfaces(ObjectType instance,
java.util.Set<ObjectType> set) |
private com.google.common.collect.ImmutableList<ObjectType> |
FunctionType.resolveTypeListHelper(com.google.common.collect.ImmutableList<ObjectType> list,
ErrorReporter t,
StaticTypedScope<JSType> scope)
Resolve each item in the list, and return a new list if any
references changed.
|
void |
FunctionType.setExtendedInterfaces(java.util.List<ObjectType> extendedInterfaces) |
void |
FunctionType.setImplementedInterfaces(java.util.List<ObjectType> implementedInterfaces) |
Constructor and Description |
---|
PrototypeObjectType(JSTypeRegistry registry,
java.lang.String className,
ObjectType implicitPrototype)
Creates an object type.
|
PrototypeObjectType(JSTypeRegistry registry,
java.lang.String className,
ObjectType implicitPrototype,
boolean anonymousType)
Creates an object type.
|
PrototypeObjectType(JSTypeRegistry registry,
java.lang.String className,
ObjectType implicitPrototype,
boolean nativeType,
TemplateTypeMap templateTypeMap)
Creates an object type, allowing specification of the implicit prototype,
whether the object is native, and any templatized types.
|
PrototypeObjectType(JSTypeRegistry registry,
java.lang.String className,
ObjectType implicitPrototype,
boolean nativeType,
TemplateTypeMap templateTypeMap,
boolean anonymousType)
Creates an object type, allowing specification of the implicit prototype,
whether the object is native, and any templatized types.
|
TemplatizedType(JSTypeRegistry registry,
ObjectType objectType,
com.google.common.collect.ImmutableList<JSType> templateTypes) |
Modifier and Type | Field and Description |
---|---|
protected ObjectType |
BaseJSTypeTestCase.ARRAY_TYPE |
protected ObjectType |
BaseJSTypeTestCase.BOOLEAN_OBJECT_TYPE |
protected ObjectType |
BaseJSTypeTestCase.CHECKED_UNKNOWN_TYPE |
protected ObjectType |
BaseJSTypeTestCase.DATE_TYPE |
protected ObjectType |
BaseJSTypeTestCase.ERROR_TYPE |
protected ObjectType |
BaseJSTypeTestCase.EVAL_ERROR_TYPE |
protected ObjectType |
BaseJSTypeTestCase.FUNCTION_PROTOTYPE |
protected ObjectType |
BaseJSTypeTestCase.NO_OBJECT_TYPE |
protected ObjectType |
BaseJSTypeTestCase.NO_RESOLVED_TYPE |
protected ObjectType |
BaseJSTypeTestCase.NO_TYPE |
protected ObjectType |
BaseJSTypeTestCase.NUMBER_OBJECT_TYPE |
protected ObjectType |
BaseJSTypeTestCase.OBJECT_TYPE |
protected ObjectType |
BaseJSTypeTestCase.RANGE_ERROR_TYPE |
protected ObjectType |
BaseJSTypeTestCase.REFERENCE_ERROR_TYPE |
protected ObjectType |
BaseJSTypeTestCase.REGEXP_TYPE |
protected ObjectType |
BaseJSTypeTestCase.STRING_OBJECT_TYPE |
protected ObjectType |
BaseJSTypeTestCase.SYNTAX_ERROR_TYPE |
protected ObjectType |
BaseJSTypeTestCase.TYPE_ERROR_TYPE |
protected ObjectType |
BaseJSTypeTestCase.UNKNOWN_TYPE |
protected ObjectType |
BaseJSTypeTestCase.URI_ERROR_TYPE |
Modifier and Type | Method and Description |
---|---|
private static void |
BaseJSTypeTestCase.addMethod(JSTypeRegistry registry,
ObjectType receivingType,
java.lang.String methodName,
JSType returnType) |
protected TemplatizedType |
BaseJSTypeTestCase.createTemplatizedType(ObjectType baseType,
com.google.common.collect.ImmutableList<JSType> templatizedTypes) |
protected TemplatizedType |
BaseJSTypeTestCase.createTemplatizedType(ObjectType baseType,
JSType... templatizedType) |