public final class TypeReference extends Object
Modifier and Type | Field and Description |
---|---|
TypeReference |
keyType |
String |
programName |
String |
typeName |
TypeReference |
valueType |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isContainer() |
boolean |
isList() |
boolean |
isMap() |
boolean |
isNativeType() |
boolean |
isSet() |
static TypeReference |
parseType(String globalName)
Create a type reference from a global reference name.
|
static TypeReference |
parseType(String programContext,
String typeName)
Create a type reference from a program context.
|
static TypeReference |
ref(String programContext,
String typeName)
Create a simple type reference.
|
String |
toString() |
public final String programName
public final String typeName
public final TypeReference keyType
public final TypeReference valueType
public boolean isNativeType()
public boolean isContainer()
public boolean isList()
public boolean isSet()
public boolean isMap()
@Nonnull public static TypeReference ref(@Nonnull String programContext, @Nonnull String typeName)
programContext
- The local program context.typeName
- The type name.@Nonnull public static TypeReference parseType(@Nonnull String globalName)
globalName
- The global type reference string.@Nonnull public static TypeReference parseType(@Nonnull String programContext, @Nonnull String typeName)
programContext
- The local program context.typeName
- The type name.Copyright © 2015–2020 morimekta.net. All rights reserved.