Skip to content

SignalReplayClass

final class SignalReplayClass
Package: dev.joid.internal.signal.replay · Module: core · Source: SignalReplayClass.java

Bytecode of one class of the application, read once for the replay, with the analyses of its methods.

When the class comes from a folder, the replay reads its .class file again after it changed on disk, as with hot reload.

ReturnsSignatureSummary
SignalReplayClassread(String name, Class<?> type, ClassLoader loader) factoryReads the bytecode of the class name, from the file of type when it has one, otherwise through loader.

ReturnsSignatureSummary
booleanisStale()If true, the .class file changed on disk since it was read.
SignalReplayMethodmethod(MethodNode method)Returns the analysis of method, made on the first call.
FilegetFile()Returns the .class file read, or null when the bytecode came from a class loader.
longgetModified()Returns the modification time of the file when it was read.
ClassNodegetNode()Returns the parsed bytecode.
ClassLoadergetLoader()Returns the class loader that loads the classes named in the bytecode.
Map<MethodNode,SignalReplayMethod>getMethodMap()Returns the analyses of the methods made so far.

SignalReplayClass read(String name, Class<?> type, ClassLoader loader) factory

Reads the bytecode of the class name, from the file of type when it has one, otherwise through loader. Throws a SignalReplayException when no class loader gives its bytecode.

boolean isStale()

If true, the .class file changed on disk since it was read.

SignalReplayMethod method(MethodNode method)

Throws:

  • SignalReplayException: …

Returns the analysis of method, made on the first call.

File getFile()

Returns the .class file read, or null when the bytecode came from a class loader.

long getModified()

Returns the modification time of the file when it was read.

ClassNode getNode()

Returns the parsed bytecode.

ClassLoader getLoader()

Returns the class loader that loads the classes named in the bytecode.

Map<MethodNode,SignalReplayMethod> getMethodMap()

Returns the analyses of the methods made so far.


fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses

Report a problem with this page