Class StatePointImpl
- java.lang.Object
-
- net.officefloor.plugin.clazz.state.StatePointImpl
-
- All Implemented Interfaces:
StatePoint
public class StatePointImpl extends java.lang.Object implements StatePoint
StatePoint
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description StatePointImpl(StatePoint statePoint)
Allows extension of theStatePoint
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.reflect.Executable
getExecutable()
Obtains theExecutable
.int
getExecutableParameterIndex()
Obtains the index of the parameter on theExecutable
.java.lang.reflect.Field
getField()
Obtains theField
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.plugin.clazz.state.StatePoint
getAnnotatedElement, toLocation
-
-
-
-
Constructor Detail
-
StatePointImpl
public StatePointImpl(StatePoint statePoint)
Allows extension of theStatePoint
.- Parameters:
statePoint
-StatePoint
.
-
-
Method Detail
-
getField
public java.lang.reflect.Field getField()
Description copied from interface:StatePoint
Obtains theField
.- Specified by:
getField
in interfaceStatePoint
- Returns:
Field
. Will benull
ifExecutable
.
-
getExecutable
public java.lang.reflect.Executable getExecutable()
Description copied from interface:StatePoint
Obtains theExecutable
. Typically this is either theConstructor
orMethod
loading the dependency.- Specified by:
getExecutable
in interfaceStatePoint
- Returns:
Executable
. Will benull
ifField
.
-
getExecutableParameterIndex
public int getExecutableParameterIndex()
Description copied from interface:StatePoint
Obtains the index of the parameter on theExecutable
.- Specified by:
getExecutableParameterIndex
in interfaceStatePoint
- Returns:
- Index of the parameter on the
Executable
.
-
-