Class/Object

org.opalj.br

Field

Related Docs: object Field | package br

Permalink

final class Field extends ClassMember with Ordered[Field]

Represents a single field declaration/definition.

Note

Identity (w.r.t. equals/hashCode) is intentionally by reference (default behavior).

,

Fields have – by default – no link to their defining ClassFile. However, if a analyses.Project is available then it is possible to get a Field's ClassFile by using Project's classFile(Field) method.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Field
  2. Ordered
  3. Comparable
  4. ClassMember
  5. ConcreteSourceElement
  6. SourceElement
  7. CommonSourceElementAttributes
  8. CommonAttributes
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def <(that: Field): Boolean

    Permalink
    Definition Classes
    Ordered
  4. def <=(that: Field): Boolean

    Permalink
    Definition Classes
    Ordered
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def >(that: Field): Boolean

    Permalink
    Definition Classes
    Ordered
  7. def >=(that: Field): Boolean

    Permalink
    Definition Classes
    Ordered
  8. val accessFlags: Int

    Permalink

    This field's access flags.

    This field's access flags. To analyze the access flags bit vector use org.opalj.bi.AccessFlag or org.opalj.bi.AccessFlagsIterator or use pattern matching.

    Definition Classes
    FieldConcreteSourceElement
  9. def annotations: Annotations

    Permalink

    The list of all annotations.

    The list of all annotations. In general, if a specific annotation is searched for the method runtimeVisibleAnnotations or runtimeInvisibleAnnotations should be used.

    Definition Classes
    CommonSourceElementAttributes
  10. def asClassFile: ClassFile

    Permalink
    Definition Classes
    SourceElement
  11. final def asField: Field

    Permalink
    Definition Classes
    FieldSourceElement
  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. def asMethod: Method

    Permalink
    Definition Classes
    SourceElement
  14. def asVirtualField(declaringClassType: ObjectType): VirtualField

    Permalink
  15. final def asVirtualField(declaringClassFile: ClassFile): VirtualField

    Permalink
  16. val attributes: Attributes

    Permalink

    The defined attributes.

    The defined attributes. The JVM 8 specification defines the following attributes for fields: * ConstantValue, * Synthetic, * Signature, * Deprecated, * RuntimeVisibleAnnotationTable, * RuntimeInvisibleAnnotationTable, * RuntimeVisibleTypeAnnotationTable and * RuntimeInvisibleTypeAnnotationTable.

    Definition Classes
    FieldCommonAttributes
  17. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. def compare(other: Field): Int

    Permalink

    Defines an absolute order on Field objects w.r.t.

    Defines an absolute order on Field objects w.r.t. their names and types. The order is defined by first lexicographically comparing the names of the fields and – if the names are identical – by comparing the types.

    Definition Classes
    Field → Ordered
  19. def compareTo(that: Field): Int

    Permalink
    Definition Classes
    Ordered → Comparable
  20. def constantFieldValue: Option[ConstantFieldValue[_]]

    Permalink

    Returns this field's constant value.

  21. def copy(accessFlags: Int = this.accessFlags, name: String = this.name, fieldType: FieldType = this.fieldType, attributes: Attributes = this.attributes): Field

    Permalink
  22. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. val fieldType: FieldType

    Permalink

    The (erased) type of this field.

  25. def fieldTypeSignature: Option[FieldTypeSignature]

    Permalink

    Returns this field's type signature.

  26. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. final def foreachTypeAnnotation[U](f: (TypeAnnotation) ⇒ U): Unit

    Permalink
    Definition Classes
    CommonAttributes
  28. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  29. final def hasDefaultVisibility: Boolean

    Permalink
    Definition Classes
    ClassMember
  30. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  31. def isClass: Boolean

    Permalink
    Definition Classes
    SourceElement
  32. def isDeprecated: Boolean

    Permalink

    Returns true if this (field, method, class) declaration is declared as deprecated.

    Returns true if this (field, method, class) declaration is declared as deprecated.

    Note

    The deprecated attribute is always set by the Java compiler when either the deprecated annotation or the JavaDoc tag is used.

    Definition Classes
    CommonSourceElementAttributes
  33. final def isField: Boolean

    Permalink
    Definition Classes
    FieldSourceElement
  34. final def isFinal: Boolean

    Permalink
    Definition Classes
    ClassMember
  35. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  36. def isMethod: Boolean

    Permalink
    Definition Classes
    SourceElement
  37. final def isNotFinal: Boolean

    Permalink
    Definition Classes
    ClassMember
  38. final def isNotStatic: Boolean

    Permalink
    Definition Classes
    ClassMember
  39. final def isPackagePrivate: Boolean

    Permalink
    Definition Classes
    ClassMember
  40. final def isPrivate: Boolean

    Permalink
    Definition Classes
    ClassMember
  41. final def isProtected: Boolean

    Permalink
    Definition Classes
    ClassMember
  42. final def isPublic: Boolean

    Permalink
    Definition Classes
    ClassMember
  43. final def isStatic: Boolean

    Permalink
    Definition Classes
    ClassMember
  44. final def isSynthetic: Boolean

    Permalink

    True if the Synthetic access flag or attribute is used.

    True if the Synthetic access flag or attribute is used.

    Definition Classes
    ClassMemberCommonSourceElementAttributes
  45. def isTransient: Boolean

    Permalink
  46. def isVirtual: Boolean

    Permalink
    Definition Classes
    SourceElement
  47. def isVolatile: Boolean

    Permalink
  48. val name: String

    Permalink

    The name of this field.

    The name of this field. The name is interned (see String.intern() for details.) Note, that this name is not required to be a valid Java programming language identifier.

    Definition Classes
    FieldClassMember
  49. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  52. def runtimeInvisibleAnnotations: Annotations

    Permalink
  53. def runtimeInvisibleTypeAnnotations: TypeAnnotations

    Permalink
    Definition Classes
    CommonAttributes
  54. def runtimeVisibleAnnotations: Annotations

    Permalink
  55. def runtimeVisibleTypeAnnotations: TypeAnnotations

    Permalink
    Definition Classes
    CommonAttributes
  56. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  57. def toJava(declaringType: ObjectType): String

    Permalink
  58. def toJava(declaringClass: ClassFile): String

    Permalink
  59. def toJava(): String

    Permalink
  60. def toJavaSignature: String

    Permalink
  61. def toString(): String

    Permalink
    Definition Classes
    Field → AnyRef → Any
  62. def visibilityModifier: Option[VisibilityModifier]

    Permalink
    Definition Classes
    ConcreteSourceElement
  63. final def wait(): Unit

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

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

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

Inherited from Ordered[Field]

Inherited from Comparable[Field]

Inherited from ClassMember

Inherited from ConcreteSourceElement

Inherited from SourceElement

Inherited from CommonAttributes

Inherited from AnyRef

Inherited from Any

Ungrouped