mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-27 03:53:08 +00:00
Annotation Processor minor tweaks and clean up
This commit is contained in:
1 parent
04ac3aac18
commit
6fc0894e81
10 files changed
+348
-202
No files matched your search
@@ -27,14 +27,30 @@ package org.spongepowered.tools.obfuscation;
|
||||
import javax.lang.model.element.ExecutableElement;
|
||||
|
||||
|
||||
/**
|
||||
* Retrieved from a {@link TypeHandle} when searching for methods
|
||||
*/
|
||||
class MethodHandle {
|
||||
|
||||
/**
|
||||
* Actual element, can be null
|
||||
*/
|
||||
private final ExecutableElement element;
|
||||
|
||||
public MethodHandle(ExecutableElement element) {
|
||||
this.element = element;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get whether the element is imaginary (inaccessible via mirror)
|
||||
*/
|
||||
public boolean isImaginary() {
|
||||
return this.element == null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the underlying element, may return null if the handle is imaginary
|
||||
*/
|
||||
public ExecutableElement getElement() {
|
||||
return this.element;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user