Package ftbsc.lll.processor.containers
Class MethodContainer
- java.lang.Object
-
- ftbsc.lll.processor.containers.MethodContainer
-
public class MethodContainer extends java.lang.Object
Container for information about a method. Used internally for efficiency reasons.- Since:
- 0.5.0
-
-
Field Summary
Fields Modifier and Type Field Description ftbsc.lll.mapper.data.MethodData
data
TheMethodData
for the method represented by this container.java.lang.String
descriptorObf
The obfuscated descriptor of the field.javax.lang.model.element.ExecutableElement
elem
TheExecutableElement
corresponding to the method.ClassContainer
parent
TheClassContainer
representing the parent of this method.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MethodContainer
from(javax.lang.model.element.ExecutableElement stub, Target t, Find f, ProcessorOptions options)
Builds theMethodContainer
corresponding to a stub annotated withTarget
.
-
-
-
Field Detail
-
data
public final ftbsc.lll.mapper.data.MethodData data
TheMethodData
for the method represented by this container.
-
descriptorObf
public final java.lang.String descriptorObf
The obfuscated descriptor of the field. If the mapper passed is null, this will be identical to the one insidedata
.
-
parent
public final ClassContainer parent
TheClassContainer
representing the parent of this method.
-
elem
public final javax.lang.model.element.ExecutableElement elem
TheExecutableElement
corresponding to the method. May only be null intentionally i.e. when the method is a child of an anonymous class.
-
-
Method Detail
-
from
public static MethodContainer from(javax.lang.model.element.ExecutableElement stub, Target t, Find f, ProcessorOptions options)
Builds theMethodContainer
corresponding to a stub annotated withTarget
.- Parameters:
stub
- theExecutableElement
for the stubt
- theTarget
annotation relevant to this casef
- theFind
annotation containing fallback data, may be nulloptions
- theProcessorOptions
to be used- Returns:
- the
MethodContainer
corresponding to the method - Throws:
AmbiguousDefinitionException
- if it finds more than one candidateTargetNotFoundException
- if it finds no valid candidate- Since:
- 0.3.0
-
-