Annotation Processor minor tweaks and clean up

This commit is contained in:
Mumfrey committed 2015-04-27 14:43:06 +01:00
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;
}