public class MethodContainer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
ftbsc.lll.mapper.data.MethodData |
data
The
MethodData for the method represented by this container. |
java.lang.String |
descriptorObf
The obfuscated descriptor of the field.
|
javax.lang.model.element.ExecutableElement |
elem
The
ExecutableElement corresponding to the method. |
ClassContainer |
parent
The
ClassContainer representing the parent of this method. |
Modifier and Type | Method and Description |
---|---|
static javax.lang.model.element.ExecutableElement |
findOverriddenStub(javax.lang.model.element.ExecutableElement stub)
Find the associated
Overridden stub, if present. |
static MethodContainer |
from(javax.lang.model.element.ExecutableElement stub,
Target t,
Find f,
ProcessorOptions options)
Builds the
MethodContainer corresponding to a stub annotated with Target . |
public final ftbsc.lll.mapper.data.MethodData data
MethodData
for the method represented by this container.public final java.lang.String descriptorObf
data
.public final ClassContainer parent
ClassContainer
representing the parent of this method.public final javax.lang.model.element.ExecutableElement elem
ExecutableElement
corresponding to the method.
May only be null intentionally i.e. when the method is
a child of an anonymous class.public static MethodContainer from(javax.lang.model.element.ExecutableElement stub, Target t, Find f, ProcessorOptions options)
MethodContainer
corresponding to a stub annotated with Target
.stub
- the ExecutableElement
for the stubt
- the Target
annotation relevant to this casef
- the Find
annotation containing fallback data, may be nulloptions
- the ProcessorOptions
to be usedMethodContainer
corresponding to the methodAmbiguousDefinitionException
- if it finds more than one candidateTargetNotFoundException
- if it finds no valid candidatepublic static javax.lang.model.element.ExecutableElement findOverriddenStub(javax.lang.model.element.ExecutableElement stub)
Overridden
stub, if present.stub
- the stub to look for infoOverridden
stub, or null if not found