Skip to content

Commit

Permalink
v5.0.14-RC: ScalaDoc for ReflectionData is improved
Browse files Browse the repository at this point in the history
  • Loading branch information
aslesarenko committed Apr 4, 2024
1 parent de8c362 commit 6196e90
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
10 changes: 8 additions & 2 deletions core/shared/src/main/scala/sigma/reflection/ReflectionData.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ import scala.collection.mutable
import scala.collection.immutable

/** Reflection metadata and global dictionaries to access it.
* For each class of this module that needs reflection metadata,
* we register a class entry with the necessary information.
* Such metadata is only used on JS platform to support reflection-like interfaces of
* RClass, RMethod, RConstructor. These interfaces implemented on JVM using Java
* reflection.
*
* For each class that needs reflection metadata, we register a class entry using
* `registerClassEntry` method with the necessary information such as constructors and
* methods.
* Only information that is needed at runtime is registered.
* @see mkConstructor, mkMethod
*/
object ReflectionData {
/** Descriptors of classes. */
Expand Down
4 changes: 4 additions & 0 deletions data/shared/src/main/scala/sigma/SigmaDataReflection.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import sigma.reflection.{ReflectionData, mkConstructor, mkMethod}
import sigma.serialization.ValueCodes.OpCode

/** Reflection metadata for `interpreter` module.
* Such metadata is only used on JS platform to support reflection-like interfaces of
* RClass, RMethod, RConstructor. These interfaces implemented on JVM using Java
* reflection.
*
* For each class of this module that needs reflection metadata,
* we register a class entry with the necessary information.
* Only information that is needed at runtime is registered.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import sigmastate.crypto.GF2_192_Poly
import sigmastate.crypto.VerifierMessage.Challenge

/** Reflection metadata for `interpreter` module.
* Such metadata is only used on JS platform to support reflection-like interfaces of
* RClass, RMethod, RConstructor. These interfaces implemented on JVM using Java
* reflection.
*
* For each class of this module that needs reflection metadata,
* we register a class entry with the necessary information.
* Only information that is needed at runtime is registered.
Expand Down
4 changes: 4 additions & 0 deletions sc/shared/src/main/scala/scalan/GraphIRReflection.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import special.wrappers.{OptionWrapSpec, RTypeWrapSpec}
import wrappers.scalan.WRTypes

/** Registrations of reflection metadata for graph-ir module (see README.md).
* Such metadata is only used on JS platform to support reflection-like interfaces of
* RClass, RMethod, RConstructor. These interfaces implemented on JVM using Java
* reflection.
*
* For each class of this module that needs reflection metadata,
* we register a class entry with the necessary information.
* Only information that is needed at runtime is registered.
Expand Down

0 comments on commit 6196e90

Please sign in to comment.