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.
Description
Section titled “Description”When the class comes from a folder, the replay reads its .class file again after it changed on disk, as with hot reload.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
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. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
boolean | isStale() | If true, the .class file changed on disk since it was read. |
SignalReplayMethod | method(MethodNode method) | 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. |
Creation details
Section titled “Creation details”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.
Method details
Section titled “Method details”isStale
Section titled “isStale”boolean isStale()
If true, the .class file changed on disk since it was read.
method
Section titled “method”SignalReplayMethod method(MethodNode method)
Throws:
SignalReplayException: …
Returns the analysis of method, made on the first call.
getFile
Section titled “getFile”File getFile()
Returns the .class file read, or null when the bytecode came from a class loader.
getModified
Section titled “getModified”long getModified()
Returns the modification time of the file when it was read.
getNode
Section titled “getNode”ClassNode getNode()
Returns the parsed bytecode.
getLoader
Section titled “getLoader”ClassLoader getLoader()
Returns the class loader that loads the classes named in the bytecode.
getMethodMap
Section titled “getMethodMap”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
