Package net.bytebuddy.dynamic.scaffold
Interface FieldLocator.Resolution
-
- All Known Implementing Classes:
FieldLocator.Resolution.Illegal,FieldLocator.Resolution.Simple
- Enclosing interface:
- FieldLocator
public static interface FieldLocator.ResolutionA resolution for a field lookup.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classFieldLocator.Resolution.IllegalAn illegal resolution.static classFieldLocator.Resolution.SimpleA simple implementation for a field resolution.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FieldDescriptiongetField()Returns the field description if a field was located.booleanisResolved()Returnstrueif a field was located.
-
-
-
Method Detail
-
isResolved
boolean isResolved()
Returnstrueif a field was located.- Returns:
trueif a field was located.
-
getField
FieldDescription getField()
Returns the field description if a field was located. This method must only be called if this resolution was actually resolved.- Returns:
- The located field.
-
-