Packages

  • package root
    Definition Classes
    root
  • package sigma

    The following implicit values are used as type descriptors of all the predefined Sigma types.

    The following implicit values are used as type descriptors of all the predefined Sigma types.

    Definition Classes
    root
    See also

    RType class

  • package reflection

    Contains the Sigma Reflection API.

    Contains the Sigma Reflection API. Sigma reflection is a mechanism for obtaining metadata about classes, methods, fields, etc. at runtime. It is used by kiama to rewrite ErgoTree expressions. It is also used by the ErgoTree interpreter to implement MethodCall nodes.

    The Sigma Reflection API has two implementations: 1) based on the Java Reflection API 2) based on Sigma Reflection metadata declared in the StaticImpl.scala file

    Definition Classes
    sigma
  • JRClass
  • JRConstructor
  • JRField
  • JRMethod
  • Platform
  • RClass
  • RConstructor
  • RField
  • RMethod
  • ReflectionData
  • SRClass
  • SRConstructor
  • SRField
  • SRMethod

class SRClass[T] extends RClass[T]

Represents a class in an Sigma Reflection metadata. Extends RClass by providing a concrete implementation without relying on Java reflection.

Linear Supertypes
RClass[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SRClass
  2. RClass
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SRClass(clazz: Class[T], constructors: Seq[SRConstructor[_]], fields: Map[String, SRField], methods: Map[(String, Seq[Class[_]]), RMethod])

    clazz

    the java.lang.Class being represented

    constructors

    the constructors of the class

    fields

    the fields of the class (name -> field)

    methods

    the methods of the class ((name, parameterTypes) -> method)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val clazz: Class[T]
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(other: Any): Boolean
    Definition Classes
    SRClass → AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def getConstructors(): Seq[RConstructor[_]]

    Returns an array containing RConstructor objects reflecting all public constructors of this RClass

    Returns an array containing RConstructor objects reflecting all public constructors of this RClass

    Definition Classes
    SRClassRClass
  12. def getDeclaredMethods(): Array[RMethod]

    Returns an array containing RMethod objects reflecting all declared methods of this RClass

    Returns an array containing RMethod objects reflecting all declared methods of this RClass

    Definition Classes
    SRClassRClass
  13. def getField(fieldName: String): RField

    Returns an RField object representing a field with the specified name within this RClass.

    Returns an RField object representing a field with the specified name within this RClass.

    returns

    An RField object representing a field with the specified name within this RClass.

    Definition Classes
    SRClassRClass
  14. def getMethod(name: String, parameterTypes: Class[_]*): RMethod

    Returns an RMethod object representing a method with the specified name and parameter types within this RClass.

    Returns an RMethod object representing a method with the specified name and parameter types within this RClass.

    name

    The name of the method to retrieve

    parameterTypes

    A list of classes representing each parameter type

    returns

    An RMethod object representing a method with the specified name and parameter types within this RClass.

    Definition Classes
    SRClassRClass
  15. def getName: String

    Returns the fully qualified name of this class.

    Returns the fully qualified name of this class.

    Definition Classes
    SRClassRClass
  16. def getSimpleName: String

    Returns the simple name (i.e.

    Returns the simple name (i.e. without package) of this class.

    Definition Classes
    SRClassRClass
  17. def getSuperclass(): RClass[_ >: T]

    Returns an RClass object representing the superclass of this RClass.

    Returns an RClass object representing the superclass of this RClass.

    Definition Classes
    SRClassRClass
  18. def hashCode(): Int
    Definition Classes
    SRClass → AnyRef → Any
  19. def isAssignableFrom(cls: Class[_]): Boolean

    Returns a boolean indicating whether or not instances of the specified class can be assigned to variables of this RClass.

    Returns a boolean indicating whether or not instances of the specified class can be assigned to variables of this RClass.

    cls

    The class to check

    returns

    A boolean indicating whether or not instances of the specified class can be assigned to variables of this RClass

    Definition Classes
    SRClassRClass
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def isPrimitive(): Boolean

    Returns a boolean indicating whether or not this RClass represents a primitive type.

    Returns a boolean indicating whether or not this RClass represents a primitive type.

    Definition Classes
    SRClassRClass
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from RClass[T]

Inherited from AnyRef

Inherited from Any

Ungrouped