Interface StatePoint
- All Known Subinterfaces:
ClassDependencyManufacturerContext,TypeQualifierInterrogatorContext
- All Known Implementing Classes:
StatePointImpl,TypeQualifierInterrogation
public interface StatePoint
Identifies a state point.
- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptiondefault AnnotatedElementConvenience to obtain theAnnotatedElement.Obtains theExecutable.intObtains the index of the parameter on theExecutable.getField()Obtains theField.static StatePointof(Executable executable, int parameterIndex) static StatePointCreatesStatePointfor aField.default StringObtains the location of thisStatePoint.static StringtoLocation(StatePoint statePoint) Obtains the location of theStatePoint.
-
Method Details
-
getField
Field getField()Obtains theField.- Returns:
Field. Will benullifExecutable.
-
getExecutable
Executable getExecutable()- Returns:
Executable. Will benullifField.
-
getExecutableParameterIndex
int getExecutableParameterIndex()Obtains the index of the parameter on theExecutable.- Returns:
- Index of the parameter on the
Executable.
-
getAnnotatedElement
Convenience to obtain the
AnnotatedElement.- Returns:
AnnotatedElement.
-
toLocation
Obtains the location of thisStatePoint.- Returns:
- Location of this
StatePoint.
-
of
CreatesStatePointfor aField.- Parameters:
field-Field.- Returns:
StatePoint.
-
of
- Parameters:
executable-Executable.parameterIndex-Parameterindex.- Returns:
StatePoint.
-
toLocation
Obtains the location of theStatePoint. This is typically for logging.- Parameters:
statePoint-StatePoint.- Returns:
- Location of the
StatePoint.
-