|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.api.client.util.ClassInfo
public final class ClassInfo
Parses class information to determine data key name/value pairs associated with the class.
Implementation is thread-safe.
Method Summary | |
---|---|
Field |
getField(String name)
Returns the field for the given FieldInfo.getName() . |
FieldInfo |
getFieldInfo(String name)
Returns the information for the given FieldInfo.getName() . |
Collection<String> |
getNames()
Returns an unmodifiable sorted set (with any possible null member first) of
names . |
Class<?> |
getUnderlyingClass()
Returns the underlying class. |
boolean |
isEnum()
Returns the underlying class is an enum. |
static ClassInfo |
of(Class<?> underlyingClass)
Returns the class information for the given underlying class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ClassInfo of(Class<?> underlyingClass)
underlyingClass
- underlying class or null
for null
result
null
for null
inputpublic Class<?> getUnderlyingClass()
public FieldInfo getFieldInfo(String name)
FieldInfo.getName()
.
name
- FieldInfo.getName()
or null
null
for nonepublic Field getField(String name)
FieldInfo.getName()
.
name
- FieldInfo.getName()
or null
null
for nonepublic boolean isEnum()
public Collection<String> getNames()
null
member first) of
names
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |