| Constructor and Description |
|---|
Type() |
public Object newInstance() throws NoSuchMethodException
NoSuchMethodExceptionpublic String getName()
public Type getSuperclass()
public boolean isAssignableFrom(Type otherType)
otherType - the other typepublic Field getField(String name)
name - the name of the fieldClass.getField(String).public Field[] getFields()
Class.getFields().public Field[] getDeclaredFields()
Class.getDeclaredFields().public Method getMethod(String name, Class... parameterTypes) throws NoSuchMethodException
name - the name of the methodparameterTypes - the types of the parameters of the methodNoSuchMethodExceptionpublic Method[] getMethods()
Class.getMethods().public Method[] getDeclaredMethods()
Class.getDeclaredMethods().public Constructor[] getConstructors()
public Constructor getDeclaredConstructor(Class... parameterTypes) throws NoSuchMethodException
NoSuchMethodExceptionpublic Constructor getConstructor(Class... parameterTypes) throws NoSuchMethodException
NoSuchMethodExceptionpublic boolean isAbstract()
public boolean isInterface()
public boolean isPrimitive()
public boolean isEnum()
public boolean isArray()
public boolean isMemberClass()
public boolean isStatic()
public boolean isAnnotation()
public Class getComponentType()
public int getArrayLength(Object obj)
obj - an array object of this type.public Object getArrayElement(Object obj, int i)
obj - an array object of this type.i - the index of the element to retrieve.public void setArrayElement(Object obj, int i, Object value)
obj - an array object of this type.i - the index of the element to set.value - the element value.public Object[] getEnumConstants()
public Annotation[] getDeclaredAnnotations()
Copyright © 2016. All rights reserved.