Uses of Class
com.google.javascript.rhino.jstype.ObjectType
Packages that use ObjectType
Package
Description
-
Uses of ObjectType in com.google.javascript.jscomp
Methods in com.google.javascript.jscomp with parameters of type ObjectTypeModifier and TypeMethodDescriptionvoidCodingConvention.applyDelegateRelationship(NominalTypeBuilder delegateSuperclass, NominalTypeBuilder delegateBase, NominalTypeBuilder delegator, ObjectType delegateProxy, FunctionType findDelegate) In many JS libraries, the function that creates a delegate relationship also adds properties to the delegator and delegate base.voidCodingConventions.Proxy.applyDelegateRelationship(NominalTypeBuilder delegateSuperclass, NominalTypeBuilder delegateBase, NominalTypeBuilder delegator, ObjectType delegateProxy, FunctionType findDelegate) -
Uses of ObjectType in com.google.javascript.rhino
Methods in com.google.javascript.rhino that return ObjectTypeModifier and TypeMethodDescriptionNominalTypeBuilder.instance()Returns the instance type as a JSType.NominalTypeBuilder.prototypeOrInstance()Returns the type of the prototype object (OTI).Constructors in com.google.javascript.rhino with parameters of type ObjectType -
Uses of ObjectType in com.google.javascript.rhino.jstype
Subclasses of ObjectType in com.google.javascript.rhino.jstypeModifier and TypeClassDescriptionfinal classThe type of individual elements of an enum type (seeEnumType).final classAn enum type representing a branded collection of elements.classThis derived type provides extended information about a function, including its return type and argument types.final classANamedTypeis a named reference to some other type.classThe bottom Object type, representing the subclass of all objects.final classAn unresolved type that was forward declared.classBottom type, representing the subclass of any value or object.classThe object type represents instances of JavaScript objects such asObject,Date,Function.classAn object type which uses composition to delegate all calls.final classA record (structural) type.final classA placeholder type, used as keys inTemplateTypeMaps.final classAn object type with declared template types, such asArray<string>.final classTheUnknowntype.Methods in com.google.javascript.rhino.jstype that return ObjectTypeModifier and TypeMethodDescriptionJSType.assertObjectType()Returns this object cast to ObjectType or throws an exception if it isn't an ObjectType.static @Nullable ObjectTypeA null-safe version of JSType#toObjectType.JSTypeRegistry.createAnonymousObjectType(@Nullable JSDocInfo info) Create an anonymous object type.JSTypeRegistry.createObjectType(String name, ObjectType implicitPrototype) Create an object type.final @Nullable ObjectTypeJSType.dereference()Dereferences a type for property access.final @Nullable ObjectTypeObjectType.getClosestDefiningType(String propertyName) Returns the closest ancestor that defines the property including this type itself.@Nullable ObjectTypeEnumElementType.getImplicitPrototype()EnumType.getImplicitPrototype()final @Nullable ObjectTypeNoObjectType.getImplicitPrototype()abstract ObjectTypeObjectType.getImplicitPrototype()Gets the implicit prototype (a.k.a.PrototypeObjectType.getImplicitPrototype()final @Nullable ObjectTypeProxyObjectType.getImplicitPrototype()RecordType.getImplicitPrototype()@Nullable ObjectTypeUnknownType.getImplicitPrototype()final ObjectTypeFunctionType.getInstanceType()Gets the type of instance of this function.JSTypeRegistry.getNativeObjectType(JSTypeNative typeId) Property.OwnedProperty.getOwner()Property.OwnedProperty.getOwnerInstanceType()final ObjectTypeFunctionType.getPrototype()Gets theprototypeproperty of this function type.final ObjectTypeFunctionType.getPrototypeProperty()final ObjectTypeObjectType.getRawType()TemplatizedType.getReferencedType()JSType.toMaybeObjectType()@Nullable ObjectTypeJSType.toObjectType()Casts this to an ObjectType, or returns null if this is not an ObjectType.Methods in com.google.javascript.rhino.jstype that return types with arguments of type ObjectTypeModifier and TypeMethodDescriptionfinal Iterable<ObjectType> FunctionType.getAllImplementedInterfaces()Returns all interfaces implemented by a class or its superclass and any superclasses for any of those interfaces.final Collection<ObjectType> FunctionType.getAncestorInterfaces()ObjectType.getCtorExtendedInterfaces()Gets the interfaces extended by the interface associated with this type.PrototypeObjectType.getCtorExtendedInterfaces()ProxyObjectType.getCtorExtendedInterfaces()TemplatizedType.getCtorExtendedInterfaces()ObjectType.getCtorImplementedInterfaces()Gets the interfaces implemented by the ctor associated with this type.PrototypeObjectType.getCtorImplementedInterfaces()ProxyObjectType.getCtorImplementedInterfaces()TemplatizedType.getCtorImplementedInterfaces()JSTypeRegistry.getEachReferenceTypeWithProperty(String propertyName) Returns each reference type that has a propertypropertyNamedefined on it.final com.google.common.collect.ImmutableList<ObjectType> FunctionType.getExtendedInterfaces()Returns interfaces directly extended by an interfacefinal com.google.common.collect.ImmutableList<ObjectType> FunctionType.getImplementedInterfaces()Returns interfaces implemented directly by a class or its superclass.final Iterable<ObjectType> ObjectType.getImplicitPrototypeChain()Returns a lazy, dynamicIterablefor the types forming the implicit prototype chain of this type.final com.google.common.collect.ImmutableList<ObjectType> FunctionType.getOwnImplementedInterfaces()Returns interfaces directly implemented by the class.Methods in com.google.javascript.rhino.jstype with parameters of type ObjectTypeModifier and TypeMethodDescriptionJSTypeRegistry.buildRecordTypeFromObject(ObjectType objType) TemplateTypeReplacer.caseObjectType(ObjectType objType) Visitor.caseObjectType(ObjectType type) Object type's case.Visitor.WithDefaultCase.caseObjectType(ObjectType type) JSTypeRegistry.createFunctionTypeWithInstanceType(ObjectType instanceType, JSType returnType, List<JSType> parameterTypes) Creates a function type in whichthisrefers to an object instance.JSTypeRegistry.createObjectType(String name, ObjectType implicitPrototype) Create an object type.JSTypeRegistry.createTemplatizedType(ObjectType baseType, com.google.common.collect.ImmutableList<JSType> templatizedTypes) Creates a templatized instance of the specified type.JSTypeRegistry.createTemplatizedType(ObjectType baseType, JSType... templatizedTypes) Creates a templatized instance of the specified type.JSTypeRegistry.createTemplatizedType(ObjectType baseType, Map<TemplateType, JSType> templatizedTypes) Creates a templatized instance of the specified type.voidPrototypeObjectType.matchRecordTypeConstraint(ObjectType constraintObj) voidJSType.mergeSupertypeTemplateTypes(ObjectType other) Prepends the template type map associated with this type, merging in the keys and values of the specified map.voidJSTypeRegistry.resetImplicitPrototype(JSType type, ObjectType newImplicitProto) Set the implicit prototype if it's possible to do so.final voidFunctionType.setPrototypeBasedOn(ObjectType baseType) Sets the prototype, creating the prototype object from the given base type.FunctionType.Builder.withPrototypeBasedOn(ObjectType setPrototypeBasedOn) Set the prototype property of a constructor.Method parameters in com.google.javascript.rhino.jstype with type arguments of type ObjectTypeModifier and TypeMethodDescriptionfinal voidFunctionType.setExtendedInterfaces(List<ObjectType> extendedInterfaces) final voidFunctionType.setImplementedInterfaces(List<ObjectType> implementedInterfaces) Constructors in com.google.javascript.rhino.jstype with parameters of type ObjectType