René's URL Explorer Experiment


Title: ZXBlog/Java/反射/反射-1-基础.md at master · RecentProgress/ZXBlog · GitHub

Open Graph Title: ZXBlog/Java/反射/反射-1-基础.md at master · RecentProgress/ZXBlog

X Title: ZXBlog/Java/反射/反射-1-基础.md at master · RecentProgress/ZXBlog

Description: 记录各种学习笔记(算法、Java、数据库、并发......). Contribute to RecentProgress/ZXBlog development by creating an account on GitHub.

Open Graph Description: 记录各种学习笔记(算法、Java、数据库、并发......). Contribute to RecentProgress/ZXBlog development by creating an account on GitHub.

X Description: 记录各种学习笔记(算法、Java、数据库、并发......). Contribute to RecentProgress/ZXBlog development by creating an account on GitHub.

Opengraph URL: https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/blob/*name(/*path)
route-controllerblob
route-actionshow
fetch-noncev2:4dd18151-9c3c-1934-9022-6b44ca650e45
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-id8228:38269A:4083C3D:554F6D1:6A658ACF
html-safe-nonce6ca4e3f546b7c21f6303bbe8fd485e48209aaeb6565f9c23cd3fcee21b2d0947
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjI4OjM4MjY5QTo0MDgzQzNEOjU1NEY2RDE6NkE2NThBQ0YiLCJ2aXNpdG9yX2lkIjoiNTA2OTY5ODE5MzAzNjc3NDA5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdbfbf329b5c456f4374b94dd4e28cd33071ba3081043bda16fc58ec496bf6806
hovercard-subject-tagrepository:223520028
github-keyboard-shortcutsrepository,source-code,file-tree,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///blob/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md
twitter:imagehttps://opengraph.githubassets.com/37576d7e17795bb11874c3169eb5d0dd7e767e97f542ec21a12badacd4b66f9d/RecentProgress/ZXBlog
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/37576d7e17795bb11874c3169eb5d0dd7e767e97f542ec21a12badacd4b66f9d/RecentProgress/ZXBlog
og:image:alt记录各种学习笔记(算法、Java、数据库、并发......). Contribute to RecentProgress/ZXBlog development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b
turbo-cache-controlno-cache
go-importgithub.com/RecentProgress/ZXBlog git https://github.com/RecentProgress/ZXBlog.git
octolytics-dimension-user_id20869037
octolytics-dimension-user_loginRecentProgress
octolytics-dimension-repository_id223520028
octolytics-dimension-repository_nwoRecentProgress/ZXBlog
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id171626893
octolytics-dimension-repository_parent_nwo3396832532/ZXNotes
octolytics-dimension-repository_network_root_id171626893
octolytics-dimension-repository_network_root_nwo3396832532/ZXNotes
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release309153364422b3c499922d1a2a6404910a58ed8e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRecentProgress%2FZXBlog%2Fblob%2Fmaster%2FJava%2F%25E5%258F%258D%25E5%25B0%2584%2F%25E5%258F%258D%25E5%25B0%2584-1-%25E5%259F%25BA%25E7%25A1%2580.md
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRecentProgress%2FZXBlog%2Fblob%2Fmaster%2FJava%2F%25E5%258F%258D%25E5%25B0%2584%2F%25E5%258F%258D%25E5%25B0%2584-1-%25E5%259F%25BA%25E7%25A1%2580.md
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fblob%2Fshow&source=header-repo&source_repo=RecentProgress%2FZXBlog
Reloadhttps://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md
Reloadhttps://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md
Reloadhttps://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md
RecentProgress https://github.com/RecentProgress
ZXBloghttps://github.com/RecentProgress/ZXBlog
3396832532/ZXNoteshttps://github.com/3396832532/ZXNotes
Notifications https://github.com/login?return_to=%2FRecentProgress%2FZXBlog
Fork 0 https://github.com/login?return_to=%2FRecentProgress%2FZXBlog
Star 0 https://github.com/login?return_to=%2FRecentProgress%2FZXBlog
Code https://github.com/RecentProgress/ZXBlog
Pull requests 0 https://github.com/RecentProgress/ZXBlog/pulls
Actions https://github.com/RecentProgress/ZXBlog/actions
Projects https://github.com/RecentProgress/ZXBlog/projects
Security and quality 0 https://github.com/RecentProgress/ZXBlog/security
Insights https://github.com/RecentProgress/ZXBlog/pulse
Code https://github.com/RecentProgress/ZXBlog
Pull requests https://github.com/RecentProgress/ZXBlog/pulls
Actions https://github.com/RecentProgress/ZXBlog/actions
Projects https://github.com/RecentProgress/ZXBlog/projects
Security and quality https://github.com/RecentProgress/ZXBlog/security
Insights https://github.com/RecentProgress/ZXBlog/pulse
https://github.com/RecentProgress/ZXBlog
ZXBloghttps://github.com/RecentProgress/ZXBlog/tree/master
Javahttps://github.com/RecentProgress/ZXBlog/tree/master/Java
反射https://github.com/RecentProgress/ZXBlog/tree/master/Java/%E5%8F%8D%E5%B0%84
Historyhttps://github.com/RecentProgress/ZXBlog/commits/master/Java/%E5%8F%8D%E5%B0%84/%E5%8F%8D%E5%B0%84-1-%E5%9F%BA%E7%A1%80.md
https://github.com/RecentProgress/ZXBlog/commits/master/Java/%E5%8F%8D%E5%B0%84/%E5%8F%8D%E5%B0%84-1-%E5%9F%BA%E7%A1%80.md
ZXBloghttps://github.com/RecentProgress/ZXBlog/tree/master
Javahttps://github.com/RecentProgress/ZXBlog/tree/master/Java
反射https://github.com/RecentProgress/ZXBlog/tree/master/Java/%E5%8F%8D%E5%B0%84
Rawhttps://github.com/RecentProgress/ZXBlog/raw/refs/heads/master/Java/%E5%8F%8D%E5%B0%84/%E5%8F%8D%E5%B0%84-1-%E5%9F%BA%E7%A1%80.md
https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#反射基础
一、基本介绍https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#%E4%B8%80%E5%9F%BA%E6%9C%AC%E4%BB%8B%E7%BB%8D
二、反射和类的信息的相关APIhttps://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#%E4%BA%8C%E5%8F%8D%E5%B0%84%E5%92%8C%E7%B1%BB%E7%9A%84%E4%BF%A1%E6%81%AF%E7%9A%84%E7%9B%B8%E5%85%B3api
三、实例操作相关https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#%E4%B8%89%E5%AE%9E%E4%BE%8B%E6%93%8D%E4%BD%9C%E7%9B%B8%E5%85%B3
四、反射的应用实例https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#%E5%9B%9B%E5%8F%8D%E5%B0%84%E7%9A%84%E5%BA%94%E7%94%A8%E5%AE%9E%E4%BE%8B
1、通过配置文件生成类https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#1%E9%80%9A%E8%BF%87%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%94%9F%E6%88%90%E7%B1%BB
2、反射略过泛型检查https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#2%E5%8F%8D%E5%B0%84%E7%95%A5%E8%BF%87%E6%B3%9B%E5%9E%8B%E6%A3%80%E6%9F%A5
3、编写一个可以为任何对象设置任何属性的方法https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#3%E7%BC%96%E5%86%99%E4%B8%80%E4%B8%AA%E5%8F%AF%E4%BB%A5%E4%B8%BA%E4%BB%BB%E4%BD%95%E5%AF%B9%E8%B1%A1%E8%AE%BE%E7%BD%AE%E4%BB%BB%E4%BD%95%E5%B1%9E%E6%80%A7%E7%9A%84%E6%96%B9%E6%B3%95
https://github.com/RecentProgress/ZXBlog/blob/master/Java/%E5%8F%8D%E5%B0%84/images/reflect_02.png
https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#一基本介绍
https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#二反射和类的信息的相关api
https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#1创建反射的三种方法
https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#2用反射获取类的方法
https://github.com/RecentProgress/ZXBlog/blob/master/Java/%E5%8F%8D%E5%B0%84/images/reflect_01.png
https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#3用反射获取接口
https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#4用反射获取成员变量
https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#5用反射获取构造器
https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#6用反射获取父类
https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#7用反射创建实例
https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#三实例操作相关
https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#1获取到对象的实例并操作对象
https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#2setaccessible在属性上的使用
https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#3setaccessible在方法上的使用
https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#4操作构造方法
https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#四反射的应用实例
https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#1通过配置文件生成类
https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#2反射略过泛型检查
https://github.com/RecentProgress/ZXBlog/blob/master/Java/反射/反射-1-基础.md#3编写一个可以为任何对象设置任何属性的方法
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.