Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractInstrumentMojo - Class in com.offbynull.coroutines.mavenplugin
-
Abstract instrumentation mojo.
- AbstractInstrumentMojo() - Constructor for class com.offbynull.coroutines.mavenplugin.AbstractInstrumentMojo
- acquireExtra(Class) - Method in class com.offbynull.coroutines.instrumenter.asm.VariableTable
-
Equivalent to calling
acquireExtra(Type.getType(type)). - acquireExtra(Type) - Method in class com.offbynull.coroutines.instrumenter.asm.VariableTable
-
Acquire a new variable for use when instrumenting some code within the method this
VariableTableis for. - addClasspath(List) - Method in class com.offbynull.coroutines.instrumenter.asm.FileSystemClassInformationRepository
-
Add classes contained within a list of JAR files and folders.
- addIndividual(String, ClassInformation) - Method in class com.offbynull.coroutines.instrumenter.asm.FileSystemClassInformationRepository
-
Add a custom class.
- addIntegers(InsnList, InsnList) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Adds two integers together and puts the result on to the stack.
- addLabel(LabelNode) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Generates instructions for a label.
C
- call(Method, InsnList...) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Calls a method with a set of arguments.
- call(String, MethodNode, InsnList...) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Calls a method with a set of arguments.
- ClassInformation - Class in com.offbynull.coroutines.instrumenter.asm
-
Contains information about a class.
- ClassInformation(String, String, List, boolean) - Constructor for class com.offbynull.coroutines.instrumenter.asm.ClassInformation
-
Construct a
ClassInformationobject. - ClassInformationRepository - Interface in com.offbynull.coroutines.instrumenter.asm
-
Class information repository.
- ClassLoaderClassInformationRepository - Class in com.offbynull.coroutines.instrumenter.asm
-
Provides information on classes contained within a
ClassLoader. - ClassLoaderClassInformationRepository(ClassLoader) - Constructor for class com.offbynull.coroutines.instrumenter.asm.ClassLoaderClassInformationRepository
-
Constructs a
ClassLoaderClassInformationRepositoryobject. - ClassResourceClassInformationRepository - Class in com.offbynull.coroutines.instrumenter.asm
-
Provides information on classes contained within a
ClassLoader. - ClassResourceClassInformationRepository(ClassLoader) - Constructor for class com.offbynull.coroutines.instrumenter.asm.ClassResourceClassInformationRepository
-
Constructs a
ClassLoaderClassInformationRepositoryobject. - cloneInsnList(InsnList) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Clones an instruction list.
- cloneInsnList(InsnList, Set) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Clones an instruction list.
- cloneInvokeNode(AbstractInsnNode) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Clones an invokevirtual/invokespecial/invokeinterface/invokedynamic node and returns it as an instruction list.
- cloneMonitorNode(AbstractInsnNode) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Clones a monitorenter/monitorexit node and returns it as an instruction list.
- com.offbynull.coroutines.antplugin - package com.offbynull.coroutines.antplugin
-
Coroutines Ant plugin.
- com.offbynull.coroutines.instrumenter - package com.offbynull.coroutines.instrumenter
-
Coroutine instrumentation classes.
- com.offbynull.coroutines.instrumenter.asm - package com.offbynull.coroutines.instrumenter.asm
-
Generic ASM classes.
- com.offbynull.coroutines.instrumenter.generators - package com.offbynull.coroutines.instrumenter.generators
-
Generic instruction generators.
- com.offbynull.coroutines.javaagent - package com.offbynull.coroutines.javaagent
-
Coroutines Java Agent.
- com.offbynull.coroutines.mavenplugin - package com.offbynull.coroutines.mavenplugin
-
Coroutines Maven plugin.
- com.offbynull.coroutines.user - package com.offbynull.coroutines.user
-
User-level classes for coroutines.
- combineObjectArrays(VariableTable.Variable, VariableTable.Variable, VariableTable.Variable) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Concatenates two object arrays together.
- CompositeClassInformationRepository - Class in com.offbynull.coroutines.instrumenter.asm
-
Combines multiple
ClassInformationRepositoryobjects into one. - CompositeClassInformationRepository(ClassInformationRepository...) - Constructor for class com.offbynull.coroutines.instrumenter.asm.CompositeClassInformationRepository
-
Constructs a
ClassLoaderClassInformationRepositoryobject. - CONSTANT - Enum constant in enum com.offbynull.coroutines.instrumenter.generators.DebugGenerators.MarkerType
-
Generate instructions to load text as string constant and immediately pop it off the stack.
- construct(Constructor, InsnList...) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Calls a constructor with a set of arguments.
- Continuation - Class in com.offbynull.coroutines.user
-
This class is used to store and restore the execution state.
- Coroutine - Interface in com.offbynull.coroutines.user
-
Interface to identify a coroutine.
- CoroutineException - Exception Class in com.offbynull.coroutines.user
-
Exception that indicates that a problem occurred during the execution of a coroutine.
- CoroutineReader - Class in com.offbynull.coroutines.user
-
Reads in (deserializes) the state of a
CoroutineRunnerobject. - CoroutineReader() - Constructor for class com.offbynull.coroutines.user.CoroutineReader
-
Construct a
CoroutineReaderobject. - CoroutineReader(CoroutineReader.CoroutineDeserializer, SerializedState.FrameUpdatePoint[], SerializedState.FrameInterceptPoint[]) - Constructor for class com.offbynull.coroutines.user.CoroutineReader
-
Constructs a
CoroutineReaderobject. - CoroutineReader(SerializedState.FrameInterceptPoint[]) - Constructor for class com.offbynull.coroutines.user.CoroutineReader
-
Constructs a
CoroutineReader. - CoroutineReader(SerializedState.FrameUpdatePoint[]) - Constructor for class com.offbynull.coroutines.user.CoroutineReader
-
Constructs a
CoroutineReader. - CoroutineReader(SerializedState.FrameUpdatePoint[], SerializedState.FrameInterceptPoint[]) - Constructor for class com.offbynull.coroutines.user.CoroutineReader
-
Constructs a
CoroutineReader. - CoroutineReader.CoroutineDeserializer - Interface in com.offbynull.coroutines.user
-
Coroutine deserializer.
- CoroutineReader.DefaultCoroutineDeserializer - Class in com.offbynull.coroutines.user
-
Default implementation of
CoroutineReader.CoroutineDeserializer(uses Java's built-in serialization mechanism). - CoroutineRunner - Class in com.offbynull.coroutines.user
-
Used to execute a
Coroutine. - CoroutineRunner(Coroutine) - Constructor for class com.offbynull.coroutines.user.CoroutineRunner
-
Constructs a
CoroutineRunnerobject. - CoroutinesAgent - Class in com.offbynull.coroutines.javaagent
-
Java Agent that instruments coroutines.
- CoroutineWriter - Class in com.offbynull.coroutines.user
-
Writes out (serializes) the current state of a
CoroutineRunnerobject. - CoroutineWriter() - Constructor for class com.offbynull.coroutines.user.CoroutineWriter
-
Construct a
CoroutineWriterobject. - CoroutineWriter(CoroutineWriter.CoroutineSerializer, SerializedState.FrameUpdatePoint[], SerializedState.FrameInterceptPoint[]) - Constructor for class com.offbynull.coroutines.user.CoroutineWriter
-
Constructs a
CoroutineWriterobject. - CoroutineWriter(SerializedState.FrameInterceptPoint[]) - Constructor for class com.offbynull.coroutines.user.CoroutineWriter
-
Constructs a
CoroutineWriter. - CoroutineWriter(SerializedState.FrameUpdatePoint[]) - Constructor for class com.offbynull.coroutines.user.CoroutineWriter
-
Constructs a
CoroutineWriter. - CoroutineWriter(SerializedState.FrameUpdatePoint[], SerializedState.FrameInterceptPoint[]) - Constructor for class com.offbynull.coroutines.user.CoroutineWriter
-
Constructs a
CoroutineWriter. - CoroutineWriter.CoroutineSerializer - Interface in com.offbynull.coroutines.user
-
Coroutine serializer.
- CoroutineWriter.DefaultCoroutineSerializer - Class in com.offbynull.coroutines.user
-
Default implementation of
CoroutineWriter.CoroutineSerializer(uses Java's built-in serialization mechanism). - create(List) - Static method in class com.offbynull.coroutines.instrumenter.asm.FileSystemClassInformationRepository
-
Constructs a
FileSystemClassInformationRepositoryobject and loads it up with the classes in a classpath. - createNewObjectArray(InsnList) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Creates a new object array on the stack.
D
- Data(int[], float[], long[], double[], Object[], int[]) - Constructor for class com.offbynull.coroutines.user.SerializedState.Data
-
Construct a
SerializedState.Dataobject. - DebugGenerators - Class in com.offbynull.coroutines.instrumenter.generators
-
Utility class to generate bytecode instructions that help debug instrumented code.
- DebugGenerators.MarkerType - Enum in com.offbynull.coroutines.instrumenter.generators
-
Debug marker type.
- debugMarker(DebugGenerators.MarkerType, String) - Static method in class com.offbynull.coroutines.instrumenter.generators.DebugGenerators
-
Generates instructions for generating marker instructions.
- debugPrint(InsnList) - Static method in class com.offbynull.coroutines.instrumenter.generators.DebugGenerators
-
Generates instructions for printing out a string using
System.out. - deconstruct(CoroutineRunner) - Method in class com.offbynull.coroutines.user.CoroutineWriter
-
Deconstructs a
CoroutineRunnerobject to a serializable state. - DefaultCoroutineDeserializer() - Constructor for class com.offbynull.coroutines.user.CoroutineReader.DefaultCoroutineDeserializer
- DefaultCoroutineSerializer() - Constructor for class com.offbynull.coroutines.user.CoroutineWriter.DefaultCoroutineSerializer
- deserialize(byte[]) - Method in interface com.offbynull.coroutines.user.CoroutineReader.CoroutineDeserializer
-
Deserializes a coroutine.
- deserialize(byte[]) - Method in class com.offbynull.coroutines.user.CoroutineReader.DefaultCoroutineDeserializer
E
- empty() - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Returns an empty instruction list.
- enter(Object) - Method in class com.offbynull.coroutines.user.LockState
-
Do not use -- for internal use only.
- equals(Object) - Method in class com.offbynull.coroutines.instrumenter.asm.ClassInformation
- execute() - Method in class com.offbynull.coroutines.antplugin.InstrumentTask
- execute() - Method in class com.offbynull.coroutines.mavenplugin.MainInstrumentMojo
- execute() - Method in class com.offbynull.coroutines.mavenplugin.TestInstrumentMojo
- execute() - Method in class com.offbynull.coroutines.user.CoroutineRunner
-
Starts/resumes execution of this coroutine.
- exit(Object) - Method in class com.offbynull.coroutines.user.LockState
-
Do not use -- for internal use only.
F
- failedExecutionCycle() - Method in class com.offbynull.coroutines.user.Continuation
-
Do not use -- for internal use only.
- FileSystemClassInformationRepository - Class in com.offbynull.coroutines.instrumenter.asm
-
Provides information on classes contained within JARs and folders.
- FileSystemClassInformationRepository() - Constructor for class com.offbynull.coroutines.instrumenter.asm.FileSystemClassInformationRepository
- findField(ClassNode, String) - Static method in class com.offbynull.coroutines.instrumenter.asm.SearchUtils
-
Find field within a class by its name.
- findInvocationsOf(InsnList, Method) - Static method in class com.offbynull.coroutines.instrumenter.asm.SearchUtils
-
Find invocations of a certain method.
- findInvocationsWithParameter(InsnList, Type) - Static method in class com.offbynull.coroutines.instrumenter.asm.SearchUtils
-
Find invocations of any method where the parameter list contains a type.
- findLineNumberForInstruction(InsnList, AbstractInsnNode) - Static method in class com.offbynull.coroutines.instrumenter.asm.SearchUtils
-
Find line number associated with an instruction.
- findLocalVariableNodeForInstruction(List, InsnList, AbstractInsnNode, int) - Static method in class com.offbynull.coroutines.instrumenter.asm.SearchUtils
-
Find local variable node for a local variable at some instruction.
- findMethod(Collection, boolean, Type, String, Type...) - Static method in class com.offbynull.coroutines.instrumenter.asm.SearchUtils
-
Find a method within a class.
- findMethodsWithName(Collection, String) - Static method in class com.offbynull.coroutines.instrumenter.asm.SearchUtils
-
Find methods within a class with a specific name.
- findMethodsWithParameter(Collection, Type) - Static method in class com.offbynull.coroutines.instrumenter.asm.SearchUtils
-
Find methods within a class where the parameter list contains a certain list of type.
- findMethodsWithParameters(Collection, Type...) - Static method in class com.offbynull.coroutines.instrumenter.asm.SearchUtils
-
Find methods within a class where the parameter list contains a certain list of type.
- findStaticMethods(Collection) - Static method in class com.offbynull.coroutines.instrumenter.asm.SearchUtils
-
Find static methods within a class.
- findTryCatchBlockNodesEncompassingInstruction(InsnList, List, AbstractInsnNode) - Static method in class com.offbynull.coroutines.instrumenter.asm.SearchUtils
-
Find trycatch blocks within a method that an instruction is apart of.
- forEach(VariableTable.Variable, VariableTable.Variable, InsnList, InsnList) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
For each element in an object array, performs an action.
- Frame(String, int, int, Object[], SerializedState.Data, SerializedState.Data) - Constructor for class com.offbynull.coroutines.user.SerializedState.Frame
-
Constructs a
SerializedState.Frameobject. - FrameInterceptPoint(String, int, int, SerializedState.FrameModifier) - Constructor for class com.offbynull.coroutines.user.SerializedState.FrameInterceptPoint
-
Constructs a
SerializedState.FrameInterceptPointobject. - FrameUpdatePoint(String, int, int, SerializedState.FrameModifier) - Constructor for class com.offbynull.coroutines.user.SerializedState.FrameUpdatePoint
-
Constructs a
SerializedState.FrameUpdatePointobject.
G
- generate() - Method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators.ConditionalMerger
-
Generate final instruction list.
- generate() - Method in interface com.offbynull.coroutines.instrumenter.generators.GenericGenerators.InstructionGenerator
-
Generate instruction list.
- GenericGenerators - Class in com.offbynull.coroutines.instrumenter.generators
-
Utility class to generate common/generic bytecode instructions.
- GenericGenerators.ConditionalMerger - Class in com.offbynull.coroutines.instrumenter.generators
-
Generates instruction lists based on conditions.
- GenericGenerators.InstructionGenerator - Interface in com.offbynull.coroutines.instrumenter.generators
-
Instruction list generator.
- getArgCount() - Method in class com.offbynull.coroutines.instrumenter.asm.VariableTable
-
Get number of arguments.
- getArgument(int) - Method in class com.offbynull.coroutines.instrumenter.asm.VariableTable
-
Get the variable for an argument passed in to the method.
- getArgumentCountRequiredForInvocation(AbstractInsnNode) - Static method in class com.offbynull.coroutines.instrumenter.asm.MethodInvokeUtils
-
Get the number of arguments required for an invocation of some method.
- getClass(Type) - Method in class com.offbynull.coroutines.instrumenter.asm.SimpleVerifier
- getClassName() - Method in class com.offbynull.coroutines.user.MethodState
-
Do not use -- for internal use only.
- getClassName() - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Get class name.
- getCommonSuperClass(String, String) - Method in class com.offbynull.coroutines.instrumenter.asm.SimpleClassWriter
-
Derives common super class from the super name mapping passed in to the constructor.
- getContext() - Method in class com.offbynull.coroutines.user.Continuation
-
Get the context.
- getContext() - Method in class com.offbynull.coroutines.user.CoroutineRunner
-
Get the context.
- getContext() - Method in class com.offbynull.coroutines.user.SerializedState
-
Get coroutine context.
- getContinuationIndexes() - Method in class com.offbynull.coroutines.user.SerializedState.Data
-
Get positions within objects array where the object pointed to the original
Continuationfor the coroutine. - getContinuationPoint() - Method in class com.offbynull.coroutines.user.MethodState
-
Do not use -- for internal use only.
- getContinuationPointId() - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Get continuation point id.
- getCoroutine() - Method in class com.offbynull.coroutines.user.CoroutineRunner
-
Get the coroutine assigned to this runner.
- getCoroutine() - Method in class com.offbynull.coroutines.user.SerializedState
-
Get coroutine.
- getData() - Method in class com.offbynull.coroutines.user.MethodState
-
Do not use -- for internal use only.
- getDoubles() - Method in class com.offbynull.coroutines.user.SerializedState.Data
-
Get double values.
- getExtraFiles() - Method in class com.offbynull.coroutines.instrumenter.InstrumentationResult
-
Get extra files to include along with the instrumented class.
- getFloats() - Method in class com.offbynull.coroutines.user.SerializedState.Data
-
Get float values.
- getFrames() - Method in class com.offbynull.coroutines.user.SerializedState
-
Get coroutine method states.
- getFrames() - Method in class com.offbynull.coroutines.user.SerializedState.VersionedFrame
-
Get frames.
- getIdentifyingFieldName(int, int) - Static method in class com.offbynull.coroutines.user.MethodState
-
Do not use -- for internal use only.
- getIndex() - Method in class com.offbynull.coroutines.instrumenter.asm.VariableTable.Variable
-
Get the index of this entry within the local variable table.
- getInformation(String) - Method in interface com.offbynull.coroutines.instrumenter.asm.ClassInformationRepository
-
Get information for a class.
- getInformation(String) - Method in class com.offbynull.coroutines.instrumenter.asm.ClassLoaderClassInformationRepository
- getInformation(String) - Method in class com.offbynull.coroutines.instrumenter.asm.ClassResourceClassInformationRepository
- getInformation(String) - Method in class com.offbynull.coroutines.instrumenter.asm.CompositeClassInformationRepository
- getInformation(String) - Method in class com.offbynull.coroutines.instrumenter.asm.FileSystemClassInformationRepository
- getInstrumentedClass() - Method in class com.offbynull.coroutines.instrumenter.InstrumentationResult
-
Get instrumented class bytecode.
- getInterfaces() - Method in class com.offbynull.coroutines.instrumenter.asm.ClassInformation
-
Gets the implemented interfaces.
- getInts() - Method in class com.offbynull.coroutines.user.SerializedState.Data
-
Get int values.
- getLockState() - Method in class com.offbynull.coroutines.user.MethodState
-
Do not use -- for internal use only.
- getLongs() - Method in class com.offbynull.coroutines.user.SerializedState.Data
-
Get long values.
- getMarkerType() - Method in class com.offbynull.coroutines.instrumenter.InstrumentationSettings
-
Get marker type.
- getMethodId() - Method in class com.offbynull.coroutines.user.MethodState
-
Do not use -- for internal use only.
- getMethodId() - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Get method ID.
- getMode() - Method in class com.offbynull.coroutines.user.Continuation
-
Do not use -- for internal use only.
- getMonitors() - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Get monitor locks.
- getName() - Method in class com.offbynull.coroutines.instrumenter.asm.ClassInformation
-
Get the name.
- getObjects() - Method in class com.offbynull.coroutines.user.SerializedState.Data
-
Get object values.
- getOperands() - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Get operands.
- getProject() - Method in class com.offbynull.coroutines.mavenplugin.AbstractInstrumentMojo
-
Gets the maven project details.
- getReturnTypeOfInvocation(AbstractInsnNode) - Static method in class com.offbynull.coroutines.instrumenter.asm.MethodInvokeUtils
-
Get the return type of the method being invoked.
- getSaved(int) - Method in class com.offbynull.coroutines.user.Continuation
-
Do not use -- for internal use only.
- getSize() - Method in class com.offbynull.coroutines.user.Continuation
-
Do not use -- for internal use only.
- getSuperClass(Type) - Method in class com.offbynull.coroutines.instrumenter.asm.SimpleVerifier
- getSuperClassName() - Method in class com.offbynull.coroutines.instrumenter.asm.ClassInformation
-
Get the parent class name.
- getType() - Method in class com.offbynull.coroutines.instrumenter.asm.VariableTable.Variable
-
Get the type of this local variable table entry.
- getVariables() - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Get variables.
H
- hashCode() - Method in class com.offbynull.coroutines.instrumenter.asm.ClassInformation
I
- ifIntegersEqual(InsnList, InsnList, InsnList) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Compares two integers and performs some action if the integers are equal.
- ifObjectsEqual(InsnList, InsnList, InsnList) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Compares two objects and performs some action if the objects are the same (uses == to check if same, not the equals method).
- ifObjectsNotEqual(InsnList, InsnList, InsnList) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Compares two objects and performs some action if the objects are NOT the same (uses !
- instrument(byte[], InstrumentationSettings) - Method in class com.offbynull.coroutines.instrumenter.Instrumenter
-
Instruments a class.
- instrument(Instrumenter, InstrumentationSettings, File, File, Consumer) - Static method in class com.offbynull.coroutines.instrumenter.PluginHelper
-
Instruments class files and generates detail files.
- instrument(Instrumenter, InstrumentationSettings, Map, Consumer) - Static method in class com.offbynull.coroutines.instrumenter.PluginHelper
-
Instruments class files and generates detail files.
- InstrumentationResult - Class in com.offbynull.coroutines.instrumenter
-
Instrumentation results.
- InstrumentationSettings - Class in com.offbynull.coroutines.instrumenter
-
Instrumentation settings.
- InstrumentationSettings(DebugGenerators.MarkerType, boolean, boolean) - Constructor for class com.offbynull.coroutines.instrumenter.InstrumentationSettings
-
Constructs a
InstrumentationSettingsobject. - Instrumenter - Class in com.offbynull.coroutines.instrumenter
-
Instruments methods in Java classes that are intended to be run as coroutines.
- Instrumenter(ClassInformationRepository) - Constructor for class com.offbynull.coroutines.instrumenter.Instrumenter
-
Constructs a
Instrumenterobject. - Instrumenter(List) - Constructor for class com.offbynull.coroutines.instrumenter.Instrumenter
-
Constructs a
Instrumenterobject from a filesystem classpath (folders and JARs). - instrumentPath(Log, List, File) - Method in class com.offbynull.coroutines.mavenplugin.AbstractInstrumentMojo
-
Instruments all classes in a path recursively.
- InstrumentTask - Class in com.offbynull.coroutines.antplugin
-
ANT task to run coroutine instrumentation.
- InstrumentTask() - Constructor for class com.offbynull.coroutines.antplugin.InstrumentTask
-
Constructs a
InstrumentTaskobject. - isAssignableFrom(ClassInformationRepository, Type, Type) - Static method in class com.offbynull.coroutines.instrumenter.asm.TypeUtils
-
Checks to see if one type is assignable from another type.
- isAssignableFrom(Type, Type) - Method in class com.offbynull.coroutines.instrumenter.asm.SimpleVerifier
- isAutoSerializable() - Method in class com.offbynull.coroutines.instrumenter.InstrumentationSettings
-
Get auto-serializable.
- isDebugMode() - Method in class com.offbynull.coroutines.instrumenter.InstrumentationSettings
-
Get debug mode.
- isInterface() - Method in class com.offbynull.coroutines.instrumenter.asm.ClassInformation
-
Whether or not this class is an interface.
- isInterface(Type) - Method in class com.offbynull.coroutines.instrumenter.asm.SimpleVerifier
- isUsed() - Method in class com.offbynull.coroutines.instrumenter.asm.VariableTable.Variable
-
Returns
trueif this object hasn't been released. - isValid(ClassLoader, String, int, int) - Static method in class com.offbynull.coroutines.user.MethodState
-
Do not use -- for internal use only.
J
- jumpTo(LabelNode) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Generates instructions for an unconditional jump to a label.
L
- lineNumber(int) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Generates instructions for line numbers.
- loadArrayLength(InsnList) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Gets the size of an array and puts it on to the stack.
- loadIntConst(int) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Generates instructions to push an integer constant on to the stack.
- loadNextMethodState() - Method in class com.offbynull.coroutines.user.Continuation
-
Do not use -- for internal use only.
- loadNull() - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Generates instruction to push a null on to the stack.
- loadStaticField(Field) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Load a static field on to the stack.
- loadStringConst(String) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Generates instruction to push a string constant on to the stack.
- loadVar(VariableTable.Variable) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Copies a local variable on to the stack.
- LockState - Class in com.offbynull.coroutines.user
-
Do not use -- for internal use only.
- LockState() - Constructor for class com.offbynull.coroutines.user.LockState
M
- MainInstrumentMojo - Class in com.offbynull.coroutines.mavenplugin
-
Mojo to run coroutine instrumentation.
- MainInstrumentMojo() - Constructor for class com.offbynull.coroutines.mavenplugin.MainInstrumentMojo
- mapPaths(File, File) - Static method in class com.offbynull.coroutines.instrumenter.PluginHelper
-
Given a source and destination path, scans the source path for class files and translates them to the destination path.
- merge(Object...) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Combines multiple instructions in to a single instruction list.
- mergeIf(boolean, Supplier) - Method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators.ConditionalMerger
-
Generates a set of instructions if a certain condition is met.
- mergeIf(boolean, Supplier) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Combines multiple instructions (or instruction lists) in to a single instruction list if some condition is met.
- MethodInvokeUtils - Class in com.offbynull.coroutines.instrumenter.asm
-
Utility class to help with handling invocation instructions.
- MethodState - Class in com.offbynull.coroutines.user
-
Do not use -- for internal use only.
- MethodState(String, int, int, Object[], LockState) - Constructor for class com.offbynull.coroutines.user.MethodState
-
Do not use -- for internal use only.
- MODE_LOADING - Static variable in class com.offbynull.coroutines.user.Continuation
-
Do not use -- for internal use only.
- MODE_NORMAL - Static variable in class com.offbynull.coroutines.user.Continuation
-
Do not use -- for internal use only.
- MODE_SAVING - Static variable in class com.offbynull.coroutines.user.Continuation
-
Do not use -- for internal use only.
- modifyFrame(SerializedState.Frame, int) - Method in interface com.offbynull.coroutines.user.SerializedState.FrameModifier
-
Called when a frame needs to be modified.
- monitorEnter() - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Generates a MONITORENTER instruction, which consumes an Object from the top of the stack.
- monitorExit() - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Generates a MONITOREXIT instruction, which consumes an Object from the top of the stack.
N
- NONE - Enum constant in enum com.offbynull.coroutines.instrumenter.generators.DebugGenerators.MarkerType
-
Generate no instructions.
P
- PluginHelper - Class in com.offbynull.coroutines.instrumenter
-
Helper class for use by build system plugins.
- pop() - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Generates instructions to pop an item off the stack.
- pop(int) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Generates instructions to pop
countitems off the stack. - premain(String, Instrumentation) - Static method in class com.offbynull.coroutines.javaagent.CoroutinesAgent
-
Java agent premain.
- pushNewMethodState(MethodState) - Method in class com.offbynull.coroutines.user.Continuation
-
Do not use -- for internal use only.
R
- read(byte[]) - Method in class com.offbynull.coroutines.user.CoroutineReader
-
Deserializes a
CoroutineRunnerobject from a byte array. - READ - Static variable in interface com.offbynull.coroutines.user.SerializedState.FrameModifier
-
Identifies that frame is being loaded.
- reconstruct(SerializedState) - Method in class com.offbynull.coroutines.user.CoroutineReader
-
Reconstructs a
CoroutineRunnerobject from a serializable state. - releaseExtra(VariableTable.Variable) - Method in class com.offbynull.coroutines.instrumenter.asm.VariableTable
-
Release a variable that was acquired with
VariableTable.acquireExtra(org.objectweb.asm.Type). - reset() - Method in class com.offbynull.coroutines.user.Continuation
-
Do not use -- for internal use only.
- returnValue(Type, InsnList) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Generates instructions that returns a value.
- returnVoid() - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Generates instructions that returns nothing (void).
- run(Continuation) - Method in interface com.offbynull.coroutines.user.Coroutine
-
Entry point of coroutine.
S
- saveVar(VariableTable.Variable) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Pops the stack in to the the local variable table.
- searchForOpcodes(InsnList, int...) - Static method in class com.offbynull.coroutines.instrumenter.asm.SearchUtils
-
Find instructions in a certain class that are of a certain set of opcodes.
- SearchUtils - Class in com.offbynull.coroutines.instrumenter.asm
-
Utility class to search Java bytecode.
- serialize(SerializedState) - Method in interface com.offbynull.coroutines.user.CoroutineWriter.CoroutineSerializer
-
Serializes a coroutine.
- serialize(SerializedState) - Method in class com.offbynull.coroutines.user.CoroutineWriter.DefaultCoroutineSerializer
- SerializedState - Class in com.offbynull.coroutines.user
-
CoroutineRunner's state translated for serialization. - SerializedState(Coroutine, Object, SerializedState.VersionedFrame[]) - Constructor for class com.offbynull.coroutines.user.SerializedState
-
Constructs a
SerializedStateobject. - SerializedState.Data - Class in com.offbynull.coroutines.user
-
Data bundle.
- SerializedState.Frame - Class in com.offbynull.coroutines.user
-
MethodState's andLockState's state translated for serialization. - SerializedState.FrameInterceptPoint - Class in com.offbynull.coroutines.user
-
Frame intercept point.
- SerializedState.FrameModifier - Interface in com.offbynull.coroutines.user
-
Frame modifier.
- SerializedState.FrameUpdatePoint - Class in com.offbynull.coroutines.user
-
Frame update point.
- SerializedState.VersionedFrame - Class in com.offbynull.coroutines.user
-
Collection of
SerializedState.Frames that are for different versions of the same method and continuation point combination. - setAutoSerializable(boolean) - Method in class com.offbynull.coroutines.antplugin.InstrumentTask
-
Sets the auto-serializable flag.
- setClasspath(String) - Method in class com.offbynull.coroutines.antplugin.InstrumentTask
-
Sets the classpath -- required by instrumenter when instrumenting class files.
- setContext(Object) - Method in class com.offbynull.coroutines.user.Continuation
-
Set the context.
- setContext(Object) - Method in class com.offbynull.coroutines.user.CoroutineRunner
-
Set the context.
- setDebugMode(boolean) - Method in class com.offbynull.coroutines.antplugin.InstrumentTask
-
Sets the debug mode.
- setMarkerType(String) - Method in class com.offbynull.coroutines.antplugin.InstrumentTask
-
Sets the marker type.
- setMode(int) - Method in class com.offbynull.coroutines.user.Continuation
-
Do not use -- for internal use only.
- setSourceDirectory(File) - Method in class com.offbynull.coroutines.antplugin.InstrumentTask
-
Sets the directory to read class files from.
- setTargetDirectory(File) - Method in class com.offbynull.coroutines.antplugin.InstrumentTask
-
Sets the directory to write instrumented class files to.
- SimpleClassNode - Class in com.offbynull.coroutines.instrumenter.asm
-
A
ClassNodethat overridesSimpleClassNode.visitMethod(int, java.lang.String, java.lang.String, java.lang.String, java.lang.String[])such that it usesJSRInlinerAdapterto inline JSR blocks in the class. - SimpleClassNode() - Constructor for class com.offbynull.coroutines.instrumenter.asm.SimpleClassNode
-
Constructs a
SimpleClassNodeobject. - SimpleClassWriter - Class in com.offbynull.coroutines.instrumenter.asm
-
A
ClassWriterthat overridesSimpleClassWriter.getCommonSuperClass(java.lang.String, java.lang.String)such that it usesClassInformationRepositoryto derive the common super rather than querying loaded up classes. - SimpleClassWriter(int, ClassInformationRepository) - Constructor for class com.offbynull.coroutines.instrumenter.asm.SimpleClassWriter
-
Constructs a
SimpleClassWriterobject. - SimpleClassWriter(ClassReader, int, ClassInformationRepository) - Constructor for class com.offbynull.coroutines.instrumenter.asm.SimpleClassWriter
-
Constructs a
SimpleClassWriterobject. - SimpleVerifier - Class in com.offbynull.coroutines.instrumenter.asm
-
An extension to ASM's
SimpleVerifierthat usesClassInformationRepositoryto derive type information rather than a classloader. - SimpleVerifier(ClassInformationRepository) - Constructor for class com.offbynull.coroutines.instrumenter.asm.SimpleVerifier
-
Constructs a
SimpleVerifierobject. - STDOUT - Enum constant in enum com.offbynull.coroutines.instrumenter.generators.DebugGenerators.MarkerType
-
Generate instructions to print text to standard out.
- successExecutionCycle() - Method in class com.offbynull.coroutines.user.Continuation
-
Do not use -- for internal use only.
- suspend() - Method in class com.offbynull.coroutines.user.Continuation
-
Call to suspend/yield execution.
T
- tableSwitch(InsnList, InsnList, int, InsnList...) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Generates instructions for a switch table.
- TestInstrumentMojo - Class in com.offbynull.coroutines.mavenplugin
-
Mojo to run coroutine instrumentation.
- TestInstrumentMojo() - Constructor for class com.offbynull.coroutines.mavenplugin.TestInstrumentMojo
- throwRuntimeException(String) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Generates instructions to throw an exception of type
RuntimeExceptionwith a constant message. - throwThrowable() - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Generates instructions to throw the exception type at top of stack.
- toArray() - Method in class com.offbynull.coroutines.user.LockState
-
Dumps monitors out as an array.
- toString() - Method in class com.offbynull.coroutines.user.SerializedState.FrameInterceptPoint
- toString() - Method in class com.offbynull.coroutines.user.SerializedState.FrameUpdatePoint
- tryCatchBlock(TryCatchBlockNode, Type, InsnList, InsnList) - Static method in class com.offbynull.coroutines.instrumenter.generators.GenericGenerators
-
Generates instructions for a try-catch block.
- TypeUtils - Class in com.offbynull.coroutines.instrumenter.asm
-
Utility class to provide common functionality for types.
U
- unloadCurrentMethodState() - Method in class com.offbynull.coroutines.user.Continuation
-
Do not use -- for internal use only.
- unloadMethodStateToBefore(MethodState) - Method in class com.offbynull.coroutines.user.Continuation
-
Do not use -- for internal use only.
V
- valueOf(String) - Static method in enum com.offbynull.coroutines.instrumenter.generators.DebugGenerators.MarkerType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.offbynull.coroutines.instrumenter.generators.DebugGenerators.MarkerType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- VariableTable - Class in com.offbynull.coroutines.instrumenter.asm
-
Tracks extra variables used for instrumentation as well as arguments passed in to a method.
- VariableTable(ClassNode, MethodNode) - Constructor for class com.offbynull.coroutines.instrumenter.asm.VariableTable
-
Constructs a
VariableTableobject. - VariableTable.Variable - Class in com.offbynull.coroutines.instrumenter.asm
-
Represents an entry within the local variable table of a method.
- VersionedFrame(SerializedState.Frame) - Constructor for class com.offbynull.coroutines.user.SerializedState.VersionedFrame
-
Construct a
SerializedState.VersionedFramefrom a single frame. - VersionedFrame(SerializedState.Frame[]) - Constructor for class com.offbynull.coroutines.user.SerializedState.VersionedFrame
-
Construct a
SerializedState.VersionedFramefrom multiple frame. - visitMethod(int, String, String, String, String[]) - Method in class com.offbynull.coroutines.instrumenter.asm.SimpleClassNode
W
- withClassname(String) - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Helper to copy this frame but with a new method ID.
- withContinuationIndexOperands(int[]) - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Helper to copy this frame but with new variable continuation indexes.
- withContinuationIndexVariables(int[]) - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Helper to copy this frame but with new variable continuation indexes.
- withContinuationPointId(int) - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Helper to copy this frame but with a new continuation point ID.
- withDoubleOperands(double[]) - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Helper to copy this frame but with new double operands.
- withDoubleVariables(double[]) - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Helper to copy this frame but with new double variables.
- withFloatOperands(float[]) - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Helper to copy this frame but with new float operands.
- withFloatVariables(float[]) - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Helper to copy this frame but with new float variables.
- withIntOperands(int[]) - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Helper to copy this frame but with new int operands.
- withIntVariables(int[]) - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Helper to copy this frame but with new int variables.
- withKey(String, Integer, Integer) - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Helper to copy this frame but with a potentially new new class name / method ID / continuation point ID.
- withLongOperands(long[]) - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Helper to copy this frame but with new long operands.
- withLongVariables(long[]) - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Helper to copy this frame but with new long variables.
- withMethodId(int) - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Helper to copy this frame but with a new method ID.
- withObjectOperands(Object[]) - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Helper to copy this frame but with new object operands.
- withObjectVariables(Object[]) - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Helper to copy this frame but with new object variables.
- withOperands(int[], float[], long[], double[], Object[], int[]) - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Helper to copy this frame but with potentially new operands.
- withVariables(int[], float[], long[], double[], Object[], int[]) - Method in class com.offbynull.coroutines.user.SerializedState.Frame
-
Helper to copy this frame but with potentially new variables.
- write(CoroutineRunner) - Method in class com.offbynull.coroutines.user.CoroutineWriter
-
Serializes a
CoroutineRunnerobject as a byte array. - WRITE - Static variable in interface com.offbynull.coroutines.user.SerializedState.FrameModifier
-
Identifies that frame is being saved.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form