Uses of Class
com.google.javascript.rhino.jstype.ObjectType
-
Packages that use ObjectType Package Description com.google.javascript.jscomp com.google.javascript.rhino com.google.javascript.rhino.jstype -
-
Uses of ObjectType in com.google.javascript.jscomp
Methods in com.google.javascript.jscomp with parameters of type ObjectType Modifier and Type Method Description voidCodingConvention. 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 ObjectType Modifier and Type Method Description ObjectTypeNominalTypeBuilder. instance()Returns the instance type as a JSType.ObjectTypeNominalTypeBuilder. prototypeOrInstance()Returns the type of the prototype object (OTI).Constructors in com.google.javascript.rhino with parameters of type ObjectType Constructor Description NominalTypeBuilder(FunctionType constructor, ObjectType instance) -
Uses of ObjectType in com.google.javascript.rhino.jstype
Subclasses of ObjectType in com.google.javascript.rhino.jstype Modifier and Type Class Description classEnumElementTypeThe type of individual elements of an enum type (seeEnumType).classEnumTypeAn enum type representing a branded collection of elements.classFunctionTypeThis derived type provides extended information about a function, including its return type and argument types.classNamedTypeANamedTypeis a named reference to some other type.classNoObjectTypeThe bottom Object type, representing the subclass of all objects.classNoResolvedTypeAn unresolved type that was forward declared.classNoTypeBottom type, representing the subclass of any value or object.classPrototypeObjectTypeThe object type represents instances of JavaScript objects such asObject,Date,Function.classProxyObjectTypeAn object type which uses composition to delegate all calls.classRecordTypeA record (structural) type.classTemplateTypeA placeholder type, used as keys inTemplateTypeMaps.classTemplatizedTypeAn object type with declared template types, such asArray<string>.classUnknownTypeTheUnknowntype.Methods in com.google.javascript.rhino.jstype that return ObjectType Modifier and Type Method Description ObjectTypeJSType. assertObjectType()Returns this object cast to ObjectType or throws an exception if it isn't an ObjectType.static @Nullable ObjectTypeObjectType. cast(JSType type)A null-safe version of JSType#toObjectType.ObjectTypeJSTypeRegistry. createAnonymousObjectType(@Nullable JSDocInfo info)Create an anonymous object type.ObjectTypeJSTypeRegistry. createObjectType(java.lang.String name, ObjectType implicitPrototype)Create an object type.@Nullable ObjectTypeJSType. dereference()Dereferences a type for property access.@Nullable ObjectTypeObjectType. getClosestDefiningType(java.lang.String propertyName)Returns the closest ancestor that defines the property including this type itself.@Nullable ObjectTypeEnumElementType. getImplicitPrototype()ObjectTypeEnumType. getImplicitPrototype()@Nullable ObjectTypeNoObjectType. getImplicitPrototype()abstract ObjectTypeObjectType. getImplicitPrototype()Gets the implicit prototype (a.k.a.ObjectTypePrototypeObjectType. getImplicitPrototype()@Nullable ObjectTypeProxyObjectType. getImplicitPrototype()ObjectTypeRecordType. getImplicitPrototype()@Nullable ObjectTypeUnknownType. getImplicitPrototype()ObjectTypeFunctionType. getInstanceType()Gets the type of instance of this function.ObjectTypeJSTypeRegistry. getNativeObjectType(JSTypeNative typeId)ObjectTypeProperty.OwnedProperty. getOwner()ObjectTypeProperty.OwnedProperty. getOwnerInstanceType()ObjectTypeFunctionType. getPrototype()Gets theprototypeproperty of this function type.ObjectTypeFunctionType. getPrototypeProperty()ObjectTypeObjectType. getRawType()ObjectTypeTemplatizedType. getReferencedType()ObjectTypeJSType. 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 ObjectType Modifier and Type Method 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.util.Collection<ObjectType>FunctionType. getAncestorInterfaces()java.lang.Iterable<ObjectType>ObjectType. getCtorExtendedInterfaces()Gets the interfaces extended by the interface associated with this type.java.lang.Iterable<ObjectType>PrototypeObjectType. getCtorExtendedInterfaces()java.lang.Iterable<ObjectType>ProxyObjectType. getCtorExtendedInterfaces()java.lang.Iterable<ObjectType>TemplatizedType. getCtorExtendedInterfaces()java.lang.Iterable<ObjectType>ObjectType. getCtorImplementedInterfaces()Gets the interfaces implemented by the ctor associated with this type.java.lang.Iterable<ObjectType>PrototypeObjectType. getCtorImplementedInterfaces()java.lang.Iterable<ObjectType>ProxyObjectType. getCtorImplementedInterfaces()java.lang.Iterable<ObjectType>TemplatizedType. getCtorImplementedInterfaces()java.lang.Iterable<ObjectType>JSTypeRegistry. getEachReferenceTypeWithProperty(java.lang.String propertyName)Returns each reference type that has a propertypropertyNamedefined on it.com.google.common.collect.ImmutableList<ObjectType>FunctionType. getExtendedInterfaces()Returns interfaces directly extended by an interfacecom.google.common.collect.ImmutableList<ObjectType>FunctionType. getImplementedInterfaces()Returns interfaces implemented directly by a class or its superclass.java.lang.Iterable<ObjectType>ObjectType. getImplicitPrototypeChain()Returns a lazy, dynamicIterablefor the types forming the implicit prototype chain of this type.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 ObjectType Modifier and Type Method Description JSTypeJSTypeRegistry. buildRecordTypeFromObject(ObjectType objType)JSTypeTemplateTypeReplacer. caseObjectType(ObjectType objType)TVisitor. caseObjectType(ObjectType type)Object type's case.TVisitor.WithDefaultCase. caseObjectType(ObjectType type)JSTypeJSTypeRegistry. createFunctionTypeWithInstanceType(ObjectType instanceType, JSType returnType, java.util.List<JSType> parameterTypes)Creates a function type in whichthisrefers to an object instance.ObjectTypeJSTypeRegistry. createObjectType(java.lang.String name, ObjectType implicitPrototype)Create an object type.TemplatizedTypeJSTypeRegistry. createTemplatizedType(ObjectType baseType, com.google.common.collect.ImmutableList<JSType> templatizedTypes)Creates a templatized instance of the specified type.TemplatizedTypeJSTypeRegistry. createTemplatizedType(ObjectType baseType, JSType... templatizedTypes)Creates a templatized instance of the specified type.TemplatizedTypeJSTypeRegistry. createTemplatizedType(ObjectType baseType, java.util.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.voidFunctionType. setPrototypeBasedOn(ObjectType baseType)Sets the prototype, creating the prototype object from the given base type.FunctionType.BuilderFunctionType.Builder. withPrototypeBasedOn(ObjectType setPrototypeBasedOn)Set the prototype property of a constructor.Method parameters in com.google.javascript.rhino.jstype with type arguments of type ObjectType Modifier and Type Method Description voidFunctionType. setExtendedInterfaces(java.util.List<ObjectType> extendedInterfaces)voidFunctionType. setImplementedInterfaces(java.util.List<ObjectType> implementedInterfaces)Constructors in com.google.javascript.rhino.jstype with parameters of type ObjectType Constructor Description OwnedProperty(ObjectType owner, Property value)
-