public enum PrimitiveName extends Enum<PrimitiveName> implements TypeName
| Modifier and Type | Class and Description |
|---|---|
static interface |
Writable.Context |
| Enum Constant and Description |
|---|
BOOLEAN |
BYTE |
CHAR |
DOUBLE |
FLOAT |
INT |
LONG |
SHORT |
| Modifier and Type | Method and Description |
|---|---|
Set<ClassName> |
referencedClasses() |
String |
toString() |
static PrimitiveName |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrimitiveName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Appendable |
write(Appendable appendable,
Writable.Context context) |
public static final PrimitiveName BOOLEAN
public static final PrimitiveName BYTE
public static final PrimitiveName SHORT
public static final PrimitiveName INT
public static final PrimitiveName LONG
public static final PrimitiveName CHAR
public static final PrimitiveName FLOAT
public static final PrimitiveName DOUBLE
public static PrimitiveName[] values()
for (PrimitiveName c : PrimitiveName.values()) System.out.println(c);
public static PrimitiveName valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Set<ClassName> referencedClasses()
referencedClasses in interface HasClassReferencespublic String toString()
toString in class Enum<PrimitiveName>public Appendable write(Appendable appendable, Writable.Context context) throws IOException
IOExceptionCopyright © 2015 Google, Inc.. All Rights Reserved.