Class MemberData<T extends Environment<? extends ToolLogger>>
java.lang.Object
org.openjdk.asmtools.jasm.MemberData<T>
- Direct Known Subclasses:
ClassData, FieldData, MethodData, RecordData.ComponentData
The common base structure for field_info, method_info, and component_info
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected DataVectorAttr<AnnotationData> protected DataVectorAttr<AnnotationData> protected ELocationprotected AttrDataprivate final Tprotected final ConstantPoolprotected AttrDataprotected AttrDataprotected DataVectorAttr<TypeAnnotationData> protected DataVectorAttr<TypeAnnotationData> -
Constructor Summary
ConstructorsConstructorDescriptionMemberData(ConstantPool pool, T environment) MemberData(ConstantPool pool, T environment, int access) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected <M extends MemberData<?>>
MandThenCheck(EAttribute attribute, Runnable action) protected <M extends MemberData<?>>
booleancheckExistence(EAttribute attribute) Checks for the existence of an attribute belonging to the MemberData.protected <M extends MemberData<?>>
McheckExistence(EAttribute attribute, Runnable action) Checks for the existence of an attribute belonging to the MemberData.voidprotected abstract <D extends DataWriter>
DataVector<D> protected final <D extends DataWriter>
DataVector<D> getDataVector(D... extraAttrs) getPool()voidsetSignatureAttr(ConstCell value_cpx) voidsetSignatureAttr(ConstCell value_cpx, long position)
-
Field Details
-
pool
-
environment
-
access
protected int access -
syntheticAttr
-
deprecatedAttr
-
annotAttrVis
-
annotAttrInv
-
type_annotAttrVis
-
type_annotAttrInv
-
signatureAttr
-
attributeLocation
-
-
Constructor Details
-
MemberData
-
MemberData
-
-
Method Details
-
checkExistence
Checks for the existence of an attribute belonging to the MemberData.- Parameters:
attribute- the attribute to check for existence- Returns:
- true if the attribute exists
-
checkExistence
Checks for the existence of an attribute belonging to the MemberData.- Type Parameters:
M- the type of the attribute owner- Parameters:
attribute- the attribute to check for existenceaction- the action to take if the attribute exists- Returns:
- the instance of the attribute owner
-
andThenCheck
-
createPseudoMod
public void createPseudoMod() -
getEnvironment
-
getPool
-
setSignatureAttr
-
setSignatureAttr
-
getAttrVector
-
getDataVector
-
addAnnotations
-