public class TypeReference extends ValueType
TypeShortener without a Class or javax.lang.model reference.ValueType.FieldReceiver| Modifier and Type | Method and Description |
|---|---|
protected void |
addFields(ValueType.FieldReceiver fields)
Implement this method to report the name and value of each field.
|
String |
getNestedSuffix()
The part of the qualified name that comes after the top level type, including the period.
|
String |
getPackage() |
String |
getQualifiedName() |
String |
getTopLevelTypeSimpleName() |
static TypeReference |
to(String packageName,
String topLevelType,
String... nestedTypes)
Returns a
TypeReference for a type in packageName. |
public static TypeReference to(String packageName, String topLevelType, String... nestedTypes)
TypeReference for a type in packageName. If nestedTypes is
empty, it is a top level type called topLevelType; otherwise, it is nested in that
type.protected void addFields(ValueType.FieldReceiver fields)
ValueTypepublic String getPackage()
public String getTopLevelTypeSimpleName()
public String getNestedSuffix()
public String getQualifiedName()
Copyright © 2015 Google, Inc.. All rights reserved.