Class TypeQualifierInterrogation
java.lang.Object
net.officefloor.plugin.clazz.qualifier.TypeQualifierInterrogation
- All Implemented Interfaces:
TypeQualifierInterrogatorContext,StatePoint
TypeQualifierInterrogatorContext implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractTypeQualifier(StatePoint statePoint) Extracts the possible type qualifier.Obtains theAnnotatedElement.Obtains theExecutable.intObtains the index of the parameter on theExecutable.getField()Obtains theField.Obtains theSourceContext.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.officefloor.plugin.clazz.state.StatePoint
toLocation
-
Constructor Details
-
TypeQualifierInterrogation
Instantiate.- Parameters:
sourceContext-SourceContext.
-
-
Method Details
-
extractTypeQualifier
Extracts the possible type qualifier.- Parameters:
statePoint-StatePoint.- Returns:
- Type qualifier or
nullif no qualification. - Throws:
Exception- If fails to extract the type qualifier.
-
getAnnotatedElement
Description copied from interface:TypeQualifierInterrogatorContextObtains the
AnnotatedElement.- Specified by:
getAnnotatedElementin interfaceStatePoint- Specified by:
getAnnotatedElementin interfaceTypeQualifierInterrogatorContext- Returns:
AnnotatedElement.
-
getField
Description copied from interface:StatePointObtains theField.- Specified by:
getFieldin interfaceStatePoint- Returns:
Field. Will benullifExecutable.
-
getExecutable
Description copied from interface:StatePoint- Specified by:
getExecutablein interfaceStatePoint- Returns:
Executable. Will benullifField.
-
getExecutableParameterIndex
public int getExecutableParameterIndex()Description copied from interface:StatePointObtains the index of the parameter on theExecutable.- Specified by:
getExecutableParameterIndexin interfaceStatePoint- Returns:
- Index of the parameter on the
Executable.
-
getSourceContext
Description copied from interface:TypeQualifierInterrogatorContextObtains theSourceContext.- Specified by:
getSourceContextin interfaceTypeQualifierInterrogatorContext- Returns:
SourceContext.
-