Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1031401 // declaringClassOfMethod

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2749L/16K).

1  
static Class declaringClassOfMethod(O o, S name, O... args) {
2  
  Method m = findMethod(o, name, args);
3  
  ret m?.getDeclaringClass();
4  
}

Author comment

Began life as a copy of #1030141

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031401
Snippet name: declaringClassOfMethod
Eternal ID of this version: #1031401/1
Text MD5: 1b910f9f8ffbffbfe9122857552fea13
Transpilation MD5: aacce9f134627c252cfd7749e6680343
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-11 15:31:30
Source code size: 136 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 193 / 219
Referenced in: [show references]