添加目录
This commit is contained in:
@@ -1,3 +1,47 @@
|
|||||||
|
- [反射](#反射)
|
||||||
|
- [Class对象](#class对象)
|
||||||
|
- [获取Class对象方法](#获取class对象方法)
|
||||||
|
- [调用实例的getClass方法](#调用实例的getclass方法)
|
||||||
|
- [调用Class类的静态方法forName方法](#调用class类的静态方法forname方法)
|
||||||
|
- [通过T.class获取](#通过tclass获取)
|
||||||
|
- [Class对象的比较](#class对象的比较)
|
||||||
|
- [通过Class对象创建新实例](#通过class对象创建新实例)
|
||||||
|
- [使用反射分析类](#使用反射分析类)
|
||||||
|
- [Field.getType](#fieldgettype)
|
||||||
|
- [获取类的域、方法和构造器](#获取类的域方法和构造器)
|
||||||
|
- [Class.getFields](#classgetfields)
|
||||||
|
- [Class.getDeclaredFields](#classgetdeclaredfields)
|
||||||
|
- [Class.getMethods](#classgetmethods)
|
||||||
|
- [Class.getDeclaredMethods](#classgetdeclaredmethods)
|
||||||
|
- [Class.getConstructors](#classgetconstructors)
|
||||||
|
- [Class.getDeclaredConstructors](#classgetdeclaredconstructors)
|
||||||
|
- [Method、Field、Constructor中的方法](#methodfieldconstructor中的方法)
|
||||||
|
- [getDeclaringClass](#getdeclaringclass)
|
||||||
|
- [getExceptionTypes(Method和Constructor中包含)](#getexceptiontypesmethod和constructor中包含)
|
||||||
|
- [getModifiers](#getmodifiers)
|
||||||
|
- [getName](#getname)
|
||||||
|
- [getParameterTypes(Method和Constructor中包含)](#getparametertypesmethod和constructor中包含)
|
||||||
|
- [getReturnType(只在Method方法中包含)](#getreturntype只在method方法中包含)
|
||||||
|
- [Modifier中的方法](#modifier中的方法)
|
||||||
|
- [toString](#tostring)
|
||||||
|
- [isAbstract](#isabstract)
|
||||||
|
- [isFinal](#isfinal)
|
||||||
|
- [isInterface](#isinterface)
|
||||||
|
- [isNative](#isnative)
|
||||||
|
- [isPrivate](#isprivate)
|
||||||
|
- [isProtected](#isprotected)
|
||||||
|
- [isPublic](#ispublic)
|
||||||
|
- [isStatic](#isstatic)
|
||||||
|
- [isSynchronized](#issynchronized)
|
||||||
|
- [isVolatile](#isvolatile)
|
||||||
|
- [使用反射分析类的内容](#使用反射分析类的内容)
|
||||||
|
- [AccessibleObject](#accessibleobject)
|
||||||
|
- [setAccessible](#setaccessible)
|
||||||
|
- [isAccessible](#isaccessible)
|
||||||
|
- [使用反射调用方法](#使用反射调用方法)
|
||||||
|
- [Method.getMethod](#methodgetmethod)
|
||||||
|
|
||||||
|
|
||||||
# 反射
|
# 反射
|
||||||
## Class对象
|
## Class对象
|
||||||
Class对象用于访问类信息,想要获取class对象,可以通过如下方法
|
Class对象用于访问类信息,想要获取class对象,可以通过如下方法
|
||||||
|
|||||||
Reference in New Issue
Block a user