java.lang.Object
org.glavo.classfile.impl.AbstractElement
org.glavo.classfile.impl.FieldImpl
- All Implemented Interfaces:
Iterable<FieldElement>,AttributedElement,ClassElement,ClassFileElement,CompoundElement<FieldElement>,FieldModel,WritableElement<FieldModel>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the attributes of this element.Returns the name of this field.Returns the field descriptor of this field.flags()Returns the access flags.voidforEachElement(Consumer<FieldElement> consumer) Invoke the provided handler with each element contained in this compound elementparent()Returns the class model this field is a member of, if known.toString()voidWrites the element to the specified writervoidwriteTo(DirectClassBuilder builder) Methods inherited from class org.glavo.classfile.impl.AbstractElement
writeTo, writeTo, writeToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glavo.classfile.AttributedElement
findAttribute, findAttributesMethods inherited from interface org.glavo.classfile.CompoundElement
elementList, elements, elementStream, iteratorMethods inherited from interface org.glavo.classfile.FieldModel
fieldTypeSymbolMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
FieldImpl
-
-
Method Details
-
flags
Description copied from interface:FieldModelReturns the access flags.- Specified by:
flagsin interfaceFieldModel- Returns:
- the access flags
-
parent
Description copied from interface:FieldModelReturns the class model this field is a member of, if known.- Specified by:
parentin interfaceFieldModel- Returns:
- the class model this field is a member of, if known
-
fieldName
Description copied from interface:FieldModelReturns the name of this field.- Specified by:
fieldNamein interfaceFieldModel- Returns:
- the name of this field
-
fieldType
Description copied from interface:FieldModelReturns the field descriptor of this field.- Specified by:
fieldTypein interfaceFieldModel- Returns:
- the field descriptor of this field
-
attributes
Description copied from interface:AttributedElementReturns the attributes of this element.- Specified by:
attributesin interfaceAttributedElement- Returns:
- the attributes of this element
-
writeTo
Description copied from interface:WritableElementWrites the element to the specified writer- Specified by:
writeToin interfaceWritableElement<FieldModel>- Parameters:
buf- the writer
-
writeTo
- Overrides:
writeToin classAbstractElement
-
forEachElement
Description copied from interface:CompoundElementInvoke the provided handler with each element contained in this compound element- Specified by:
forEachElementin interfaceCompoundElement<FieldElement>- Parameters:
consumer- the handler
-
toString
-