Class

com.twitter.scrooge

ThriftStructFieldInfo

Related Doc: package scrooge

Permalink

final class ThriftStructFieldInfo extends AnyRef

Field information to be embedded in a generated struct's companion class. Allows for reflection on field types.

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

Instance Constructors

  1. new ThriftStructFieldInfo(tfield: TField, isOptional: Boolean, manifest: Manifest[_], keyManifest: Option[Manifest[_]], valueManifest: Option[Manifest[_]])

    Permalink

    Secondary constructor provided for backwards compatibility: Older scrooge-generator does not produce annotations.

  2. new ThriftStructFieldInfo(tfield: TField, isOptional: Boolean, manifest: Manifest[_], keyManifest: Option[Manifest[_]], valueManifest: Option[Manifest[_]], typeAnnotations: Map[String, String], fieldAnnotations: Map[String, String])

    Permalink

    Provide backwards compatibility for older scrooge-generator that does not generate the isRequired flag

  3. new ThriftStructFieldInfo(tfield: TField, isOptional: Boolean, isRequired: Boolean, manifest: Manifest[_], keyManifest: Option[Manifest[_]], valueManifest: Option[Manifest[_]], typeAnnotations: Map[String, String], fieldAnnotations: Map[String, String])

    Permalink

    Provide backwards compatibility for older scrooge-generator that does not generate the defaultValue field

  4. new ThriftStructFieldInfo(tfield: TField, isOptional: Boolean, isRequired: Boolean, manifest: Manifest[_], keyManifest: Option[Manifest[_]], valueManifest: Option[Manifest[_]], typeAnnotations: Map[String, String], fieldAnnotations: Map[String, String], defaultValue: Option[Any], unsafeEmptyValue: Option[Any])

    Permalink

    tfield

    Metadata associated with the field

    isOptional

    The field is optional

    isRequired

    The field is required

    manifest

    The opaque type descriptor for the field type

    keyManifest

    The opaque type descriptor for the field key type

    valueManifest

    The opaque type descriptor for the field value type

    typeAnnotations

    Annotations associated with the type

    fieldAnnotations

    Annotations associated with the value

    defaultValue

    Default value if specified

    unsafeEmptyValue

    Temporary use only. please do not rely on this field

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val defaultValue: Option[Any]

    Permalink

    Default value if specified

  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. val fieldAnnotations: Map[String, String]

    Permalink

    Annotations associated with the value

  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. val isOptional: Boolean

    Permalink

    The field is optional

  15. val isRequired: Boolean

    Permalink

    The field is required

  16. val keyManifest: Option[Manifest[_]]

    Permalink

    The opaque type descriptor for the field key type

  17. val manifest: Manifest[_]

    Permalink

    The opaque type descriptor for the field type

  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. val tfield: TField

    Permalink

    Metadata associated with the field

  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. val typeAnnotations: Map[String, String]

    Permalink

    Annotations associated with the type

  25. val unsafeEmptyValue: Option[Any]

    Permalink

    Temporary use only.

    Temporary use only. please do not rely on this field

  26. val valueManifest: Option[Manifest[_]]

    Permalink

    The opaque type descriptor for the field value type

  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped