public interface TypeIRegistry
extends java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
TypeI |
buildRecordTypeFromObject(ObjectTypeI obj) |
java.lang.String |
createGetterPropName(java.lang.String originalPropName)
For NTI, this method returns an obfuscated name that represents the getter.
|
TypeI |
createRecordType(java.util.Map<java.lang.String,? extends TypeI> props)
Creates an anonymous structural type with the given properties.
|
java.lang.String |
createSetterPropName(java.lang.String originalPropName)
For NTI, this method returns an obfuscated name that represents the setter.
|
TypeI |
createTypeFromCommentNode(Node n) |
TypeI |
createUnionType(java.util.List<? extends TypeI> variants) |
TypeI |
evaluateTypeExpression(JSTypeExpression expr,
TypeIEnv<TypeI> typeEnv) |
TypeI |
evaluateTypeExpressionInGlobalScope(JSTypeExpression expr) |
TypeI |
getGlobalType(java.lang.String typeName)
Returns the type represented by typeName or null if not found.
|
FunctionTypeI |
getNativeFunctionType(JSTypeNative typeId) |
ObjectTypeI |
getNativeObjectType(JSTypeNative typeId) |
TypeI |
getNativeType(JSTypeNative typeId) |
java.lang.String |
getReadableTypeName(Node n) |
TypeI |
getType(StaticScope scope,
java.lang.String typeName)
Returns the type represented by typeName or null if not found.
|
TypeI |
instantiateGenericType(ObjectTypeI genericType,
com.google.common.collect.ImmutableList<? extends TypeI> typeArgs)
Instantiates genericType using typeArgs.
|
FunctionTypeI getNativeFunctionType(JSTypeNative typeId)
ObjectTypeI getNativeObjectType(JSTypeNative typeId)
TypeI getNativeType(JSTypeNative typeId)
java.lang.String getReadableTypeName(Node n)
java.lang.String createGetterPropName(java.lang.String originalPropName)
java.lang.String createSetterPropName(java.lang.String originalPropName)
TypeI getType(StaticScope scope, java.lang.String typeName)
TypeI getGlobalType(java.lang.String typeName)
TypeI createRecordType(java.util.Map<java.lang.String,? extends TypeI> props)
TypeI instantiateGenericType(ObjectTypeI genericType, com.google.common.collect.ImmutableList<? extends TypeI> typeArgs)
TypeI evaluateTypeExpressionInGlobalScope(JSTypeExpression expr)
TypeI evaluateTypeExpression(JSTypeExpression expr, TypeIEnv<TypeI> typeEnv)
TypeI buildRecordTypeFromObject(ObjectTypeI obj)
Copyright © 2009-2018 Google. All Rights Reserved.