Package ftbsc.lll.processor.containers
Class FieldContainer
- java.lang.Object
-
- ftbsc.lll.processor.containers.FieldContainer
-
public class FieldContainer extends java.lang.Object
Container for information about a field. Used internally for efficiency reasons.- Since:
- 0.5.0
-
-
Field Summary
Fields Modifier and Type Field Description ftbsc.lll.mapper.data.FieldData
data
TheFieldData
for the field represented by this container.java.lang.String
descriptor
The descriptor of the field.java.lang.String
descriptorObf
The obfuscated descriptor of the field.javax.lang.model.element.VariableElement
elem
TheVariableElement
corresponding to the field.ClassContainer
parent
TheClassContainer
representing the parent of this field.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FieldContainer
from(javax.lang.model.element.VariableElement finder, ProcessorOptions options)
Finds aFieldContainer
from a finder.
-
-
-
Field Detail
-
data
public final ftbsc.lll.mapper.data.FieldData data
TheFieldData
for the field represented by this container.
-
descriptor
public final java.lang.String descriptor
The descriptor of the field.
-
descriptorObf
public final java.lang.String descriptorObf
The obfuscated descriptor of the field. If the mapper passed is null, then this will be identical todescriptor
.
-
parent
public final ClassContainer parent
TheClassContainer
representing the parent of this field.
-
elem
public final javax.lang.model.element.VariableElement elem
TheVariableElement
corresponding to the field. May only be null intentionally i.e. when the field is a child of an anonymous class.
-
-
Method Detail
-
from
public static FieldContainer from(javax.lang.model.element.VariableElement finder, ProcessorOptions options)
Finds aFieldContainer
from a finder.- Parameters:
finder
- theVariableElement
annotated withFind
for this fieldoptions
- theProcessorOptions
to be used- Returns:
- the built
FieldContainer
- Since:
- 0.5.0
-
-