c

com.twitter.scrooge

ThriftStructMetaData

final class ThriftStructMetaData[T <: ThriftStruct] extends AnyRef

A simple class for generic introspection on ThriftStruct classes.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ThriftStructMetaData
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ThriftStructMetaData(codec: ThriftStructCodec[T], structFields: Seq[ThriftStructField[T]], structFieldInfos: Seq[ThriftStructFieldInfo], unionFieldInfos: Seq[ThriftUnionFieldInfo[ThriftUnion with ThriftStruct, _]], annotations: Map[String, String])

    A constructor that when used, does not use reflection to populate the metadata and rather uses the information that is passed in.

  2. new ThriftStructMetaData(codec: ThriftStructCodec[T])

    A constructor that when used, the metadata is populated via reflection.

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. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. val codec: ThriftStructCodec[T]
  7. def codecClass: Class[_]

    The Class object for the ThriftStructCodec subclass.

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. val fieldInfos: Seq[ThriftStructFieldInfo]

    For non-unions, will return its ThriftStructFieldInfos.

    For non-unions, will return its ThriftStructFieldInfos.

    For unions, will return an empty Seq.

  11. val fields: Seq[ThriftStructField[T]]

    A Seq of ThriftStructFields representing the fields defined in the ThriftStruct.

    A Seq of ThriftStructFields representing the fields defined in the ThriftStruct.

    For unions, this will return an empty Seq.

  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. val structAnnotations: Map[String, String]

    Parsed annotations at the struct or union level.

    Parsed annotations at the struct or union level. Left hand side of equal sign is the key, right side is the value.

  20. val structClass: Class[T]

    The Class object for ThriftStruct subclass.

    The Class object for ThriftStruct subclass.

    For a union, this is the parent trait of all branches for the union.

  21. val structClassName: String

    The fully qualified name of the ThriftStruct subclass.

  22. val structName: String

    Gets the unqualified name of the struct.

  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. val unionFields: Seq[ThriftUnionFieldInfo[ThriftUnion with ThriftStruct, _]]

    For unions, will return its ThriftUnionFieldInfos.

    For unions, will return its ThriftUnionFieldInfos.

    For non-unions, will return an empty Seq.

  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped