scala.reflect.internal.Trees

Modifiers

case class Modifiers(flags: Long, privateWithin: SymbolTable.Name, annotations: List[SymbolTable.Tree]) extends SymbolTable.ModifiersApi with HasFlags with Product with Serializable

privateWithin

the qualifier for a private (a type name) or tpnme.EMPTY, if none is given.

annotations

the annotations for the definition. Note: the typechecker drops these annotations, use the AnnotationInfo's (Symbol.annotations) in later phases.

Definition Classes
TreesTreesTrees
Source
Trees.scala
Linear Supertypes
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Modifiers
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. HasFlags
  7. ModifiersApi
  8. ModifiersBase
  9. AnyRef
  10. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Modifiers(flags: Long, privateWithin: SymbolTable.Name, annotations: List[SymbolTable.Tree])

    privateWithin

    the qualifier for a private (a type name) or tpnme.EMPTY, if none is given.

    annotations

    the annotations for the definition. Note: the typechecker drops these annotations, use the AnnotationInfo's (Symbol.annotations) in later phases.

Type Members

  1. type AccessBoundaryType = SymbolTable.Name

    Definition Classes
    ModifiersHasFlags
  2. type AnnotationType = SymbolTable.Tree

    Definition Classes
    ModifiersHasFlags

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Test two objects for inequality.

    Test two objects for inequality.

    returns

    true if !(this == that), false otherwise.

    Definition Classes
    Any
  3. final def ##(): Int

    Equivalent to x.hashCode except for boxed numeric types and null.

    Equivalent to x.hashCode except for boxed numeric types and null. For numerics, it returns a hash value which is consistent with value equality: if two value type instances compare as true, then ## will produce the same hash value for each of them. For null returns a hashcode where null.hashCode throws a NullPointerException.

    returns

    a hash value consistent with ==

    Definition Classes
    AnyRef → Any
  4. def &(flag: Long): SymbolTable.Modifiers

  5. def &~(flag: Long): SymbolTable.Modifiers

  6. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from SymbolTable.Modifiers to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  7. def ->[B](y: B): (SymbolTable.Modifiers, B)

    Implicit information
    This member is added by an implicit conversion from SymbolTable.Modifiers to ArrowAssoc[SymbolTable.Modifiers] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  8. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. final def ==(arg0: Any): Boolean

    Test two objects for equality.

    Test two objects for equality. The expression x == that is equivalent to if (x eq null) that eq null else x.equals(that).

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    Definition Classes
    Any
  10. def accessString: String

    Definition Classes
    HasFlags
  11. val annotations: List[SymbolTable.Tree]

    the annotations for the definition.

    the annotations for the definition. Note: the typechecker drops these annotations, use the AnnotationInfo's (Symbol.annotations) in later phases.

    Definition Classes
    ModifiersHasFlagsModifiersBase
  12. final def asInstanceOf[T0]: T0

    Cast the receiver object to be of type T0.

    Cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression 1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expression List(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested type.

    returns

    the receiver object.

    Definition Classes
    Any
    Exceptions thrown
    ClassCastException

    if the receiver object is not an instance of the erasure of type T0.

  13. def calculateFlagString(basis: Long): String

    Attributes
    protected
    Definition Classes
    HasFlags
  14. def clone(): AnyRef

    Create a copy of the receiver object.

    Create a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
    Note

    not specified by SLS as a member of AnyRef

  15. def ensuring(cond: (SymbolTable.Modifiers) ⇒ Boolean, msg: ⇒ Any): SymbolTable.Modifiers

    Implicit information
    This member is added by an implicit conversion from SymbolTable.Modifiers to Ensuring[SymbolTable.Modifiers] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: (SymbolTable.Modifiers) ⇒ Boolean): SymbolTable.Modifiers

    Implicit information
    This member is added by an implicit conversion from SymbolTable.Modifiers to Ensuring[SymbolTable.Modifiers] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean, msg: ⇒ Any): SymbolTable.Modifiers

    Implicit information
    This member is added by an implicit conversion from SymbolTable.Modifiers to Ensuring[SymbolTable.Modifiers] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean): SymbolTable.Modifiers

    Implicit information
    This member is added by an implicit conversion from SymbolTable.Modifiers to Ensuring[SymbolTable.Modifiers] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. final def eq(arg0: AnyRef): Boolean

    Tests whether the argument (arg0) is a reference to the receiver object (this).

    Tests whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an equivalence relation on non-null instances of AnyRef, and has three additional properties:

    • It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false.
    • For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false.
    • null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    returns

    true if the argument is a reference to the receiver object; false otherwise.

    Definition Classes
    AnyRef
  20. def finalize(): Unit

    Called by the garbage collector on the receiver object when there are no more references to the object.

    Called by the garbage collector on the receiver object when there are no more references to the object.

    The details of when and if the finalize method is invoked, as well as the interaction between finalize and non-local returns and exceptions, are all platform dependent.

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
    Note

    not specified by SLS as a member of AnyRef

  21. def flagBitsToString(bits: Long): String

    Definition Classes
    HasFlags
  22. def flagMask: Long

    The default mask determining which flags to display.

    The default mask determining which flags to display.

    Definition Classes
    HasFlags
  23. def flagString(mask: Long): String

    Definition Classes
    HasFlags
  24. def flagString: String

    The printable representation of this entity's flags and access boundary, restricted to flags in the given mask.

    The printable representation of this entity's flags and access boundary, restricted to flags in the given mask.

    Definition Classes
    HasFlags
  25. val flags: Long

    Though both Symbol and Modifiers widen this method to public, it's defined protected here to give us the option in the future to route flag methods through accessors and disallow raw flag manipulation.

    Though both Symbol and Modifiers widen this method to public, it's defined protected here to give us the option in the future to route flag methods through accessors and disallow raw flag manipulation. And after that, perhaps, on some magical day: a typesafe enumeration.

    Definition Classes
    ModifiersHasFlagsModifiersBase
  26. def formatted(fmtstr: String): String

    Returns string formatted according to given format string.

    Returns string formatted according to given format string. Format strings are as for String.format (@see java.lang.String.format).

    Implicit information
    This member is added by an implicit conversion from SymbolTable.Modifiers to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  27. final def getClass(): Class[_]

    A representation that corresponds to the dynamic class of the receiver object.

    A representation that corresponds to the dynamic class of the receiver object.

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object.

    Definition Classes
    AnyRef → Any
    Note

    not specified by SLS as a member of AnyRef

  28. def hasAbstractFlag: Boolean

    Definition Classes
    HasFlags
  29. def hasAccessBoundary: Boolean

    Whether this entity has a "privateWithin" visibility barrier attached.

    Whether this entity has a "privateWithin" visibility barrier attached.

    Definition Classes
    ModifiersHasFlags
  30. def hasAccessorFlag: Boolean

    Definition Classes
    HasFlags
  31. def hasAllFlags(mask: Long): Boolean

    Whether this entity has ALL of the flags in the given mask.

    Whether this entity has ALL of the flags in the given mask.

    Definition Classes
    ModifiersHasFlags
  32. def hasAnnotationNamed(name: SymbolTable.TypeName): Boolean

  33. def hasDefault: Boolean

    Definition Classes
    HasFlags
  34. def hasFlag(flag: Long): Boolean

    Whether this entity has ANY of the flags in the given mask.

    Whether this entity has ANY of the flags in the given mask.

    Definition Classes
    ModifiersHasFlagsModifiersBase
  35. def hasLocalFlag: Boolean

    Definition Classes
    HasFlags
  36. def hasModuleFlag: Boolean

    Definition Classes
    HasFlags
  37. def hasNoFlags(mask: Long): Boolean

    Whether this entity has NONE of the flags in the given mask.

    Whether this entity has NONE of the flags in the given mask.

    Definition Classes
    HasFlags
  38. def hasPackageFlag: Boolean

    Definition Classes
    HasFlags
  39. def hasStableFlag: Boolean

    Definition Classes
    HasFlags
  40. def hasStaticFlag: Boolean

    Definition Classes
    HasFlags
  41. def isAbstractOverride: Boolean

    Definition Classes
    HasFlags
  42. def isAnyOverride: Boolean

    Definition Classes
    HasFlags
  43. def isArtifact: Boolean

    Definition Classes
    HasFlags
  44. def isCase: Boolean

    Definition Classes
    HasFlags
  45. def isCaseAccessor: Boolean

    Definition Classes
    HasFlags
  46. def isDeferred: Boolean

    Definition Classes
    HasFlags
  47. def isFinal: Boolean

    Definition Classes
    HasFlags
  48. def isImplicit: Boolean

    Definition Classes
    HasFlags
  49. final def isInstanceOf[T0]: Boolean

    Test whether the dynamic type of the receiver object is T0.

    Test whether the dynamic type of the receiver object is T0.

    Note that the result of the test is modulo Scala's erasure semantics. Therefore the expression 1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the specified type.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    Definition Classes
    Any
  50. def isInterface: Boolean

    Definition Classes
    HasFlags
  51. def isJavaDefined: Boolean

    Definition Classes
    HasFlags
  52. def isLabel: Boolean

    Definition Classes
    HasFlags
  53. def isLazy: Boolean

    Definition Classes
    HasFlags
  54. def isLifted: Boolean

    Definition Classes
    HasFlags
  55. def isMutable: Boolean

    Definition Classes
    HasFlags
  56. def isOverride: Boolean

    Definition Classes
    HasFlags
  57. def isPackage: Boolean

    Definition Classes
    HasFlags
  58. def isParamAccessor: Boolean

    Definition Classes
    HasFlags
  59. def isPrivate: Boolean

    Definition Classes
    HasFlags
  60. def isPrivateLocal: Boolean

    Definition Classes
    HasFlags
  61. def isProtected: Boolean

    Definition Classes
    HasFlags
  62. def isProtectedLocal: Boolean

    Definition Classes
    HasFlags
  63. def isPublic: Boolean

    Definition Classes
    HasFlags
  64. def isSealed: Boolean

    Definition Classes
    HasFlags
  65. def isSuperAccessor: Boolean

    Definition Classes
    HasFlags
  66. def isSynthetic: Boolean

    Definition Classes
    HasFlags
  67. def isTrait: Boolean

    Definition Classes
    HasFlags
  68. def mapAnnotations(f: (List[SymbolTable.Tree]) ⇒ List[SymbolTable.Tree]): SymbolTable.Modifiers

    Definition Classes
    ModifiersModifiersBase
  69. final def ne(arg0: AnyRef): Boolean

    Equivalent to !(this eq that).

    Equivalent to !(this eq that).

    returns

    true if the argument is not a reference to the receiver object; false otherwise.

    Definition Classes
    AnyRef
  70. final def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Definition Classes
    AnyRef
    Note

    not specified by SLS as a member of AnyRef

  71. final def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    Definition Classes
    AnyRef
    Note

    not specified by SLS as a member of AnyRef

  72. var positions: Map[Long, SymbolTable.Position]

  73. val privateWithin: SymbolTable.Name

    the qualifier for a private (a type name) or tpnme.

    the qualifier for a private (a type name) or tpnme.EMPTY, if none is given.

    Definition Classes
    ModifiersHasFlagsModifiersBase
  74. def resolveOverloadedFlag(flag: Long): String

    The string representation of a single bit, seen from this flag carrying entity.

    The string representation of a single bit, seen from this flag carrying entity.

    Definition Classes
    HasFlags
  75. def setPositions(poss: Map[Long, SymbolTable.Position]): Modifiers.this.type

  76. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  77. def toString(): String

    Creates a String representation of this object.

    Creates a String representation of this object. The default representation is platform dependent. On the java platform it is the concatenation of the class name, "@", and the object's hashcode in hexadecimal.

    returns

    a String representation of the object.

    Definition Classes
    Modifiers → AnyRef → Any
  78. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  81. def withAnnotations(annots: List[SymbolTable.Tree]): SymbolTable.Modifiers

  82. def withPosition(flag: Long, position: SymbolTable.Position): SymbolTable.Modifiers

  83. def |(flag: Long): SymbolTable.Modifiers

  84. def [B](y: B): (SymbolTable.Modifiers, B)

    Implicit information
    This member is added by an implicit conversion from SymbolTable.Modifiers to ArrowAssoc[SymbolTable.Modifiers] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implict Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from SymbolTable.Modifiers to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (modifiers: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from SymbolTable.Modifiers to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (modifiers: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def defaultFlagString: String

    Definition Classes
    HasFlags
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use flagString

  2. def hasDefaultFlag: Boolean

    Definition Classes
    HasFlags
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use hasDefault

  3. def hasFlagsToString(mask: Long): String

    Definition Classes
    HasFlags
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use flagString(mask)

  4. def hasTraitFlag: Boolean

    Definition Classes
    HasFlags
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use isTrait

  5. def isParameter: Boolean

    Definition Classes
    HasFlags
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use isValueParameter or isTypeParameter

  6. def x: SymbolTable.Modifiers

    Implicit information
    This member is added by an implicit conversion from SymbolTable.Modifiers to ArrowAssoc[SymbolTable.Modifiers] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (modifiers: ArrowAssoc[SymbolTable.Modifiers]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  7. def x: SymbolTable.Modifiers

    Implicit information
    This member is added by an implicit conversion from SymbolTable.Modifiers to Ensuring[SymbolTable.Modifiers] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (modifiers: Ensuring[SymbolTable.Modifiers]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from Serializable

Inherited from java.io.Serializable

Inherited from Product

Inherited from Equals

Inherited from HasFlags

Inherited from SymbolTable.ModifiersApi

Inherited from SymbolTable.ModifiersBase

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from SymbolTable.Modifiers to StringAdd

Inherited by implicit conversion any2stringfmt from SymbolTable.Modifiers to StringFormat

Inherited by implicit conversion any2ArrowAssoc from SymbolTable.Modifiers to ArrowAssoc[SymbolTable.Modifiers]

Inherited by implicit conversion any2Ensuring from SymbolTable.Modifiers to Ensuring[SymbolTable.Modifiers]

No Group