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) |
<T extends FunctionTypeI> |
getNativeFunctionType(JSTypeNative typeId) |
<T extends ObjectTypeI> |
getNativeObjectType(JSTypeNative typeId) |
<T extends TypeI> |
getNativeType(JSTypeNative typeId) |
java.lang.String |
getReadableTypeName(Node n) |
<T extends TypeI> |
getType(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.
|
<T extends FunctionTypeI> T getNativeFunctionType(JSTypeNative typeId)
<T extends ObjectTypeI> T getNativeObjectType(JSTypeNative typeId)
<T extends TypeI> T 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)
<T extends TypeI> T getType(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.