Packages

final case class ClassDeclaration(_source: Source, _module: Module, _typeContext: RelativeTypeContext, _typeName: TypeName, _outerTypeName: Option[TypeName], _id: Id, _modifiers: ModifierResults, _inTest: Boolean, _extendsType: Option[TypeName], _implementsTypes: ArraySeq[TypeName], _bodyDeclarations: ArraySeq[ClassBodyDeclaration]) extends FullDeclaration with ApexNode with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ClassDeclaration
  2. Serializable
  3. Product
  4. Equals
  5. FullDeclaration
  6. ApexFullDeclaration
  7. ApexClassDeclaration
  8. Referenceable
  9. ApexDeclaration
  10. DependentType
  11. TypeDeclaration
  12. PreReValidatable
  13. Dependent
  14. IdentityEquality
  15. AbstractTypeDeclaration
  16. ClassBodyDeclaration
  17. ApexNode
  18. IdLocatable
  19. DependencyHolder
  20. CST
  21. Positionable
  22. UnsafeLocatable
  23. Locatable
  24. AnyRef
  25. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ClassDeclaration(_source: Source, _module: Module, _typeContext: RelativeTypeContext, _typeName: TypeName, _outerTypeName: Option[TypeName], _id: Id, _modifiers: ModifierResults, _inTest: Boolean, _extendsType: Option[TypeName], _implementsTypes: ArraySeq[TypeName], _bodyDeclarations: ArraySeq[ClassBodyDeclaration])

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. val _bodyDeclarations: ArraySeq[ClassBodyDeclaration]
  5. val _extendsType: Option[TypeName]
  6. val _id: Id
  7. val _implementsTypes: ArraySeq[TypeName]
  8. val _inTest: Boolean
  9. val _modifiers: ModifierResults
  10. val _module: Module
  11. val _outerTypeName: Option[TypeName]
  12. val _source: Source
  13. val _typeContext: RelativeTypeContext
  14. val _typeName: TypeName
  15. def addDependencyHolder(dependencyHolder: DependencyHolder): Unit
    Definition Classes
    Dependent
  16. def addReferencingLocation(referencingLocation: PathLocation): Unit

    Add a reference location to the list of references for this specific Referencable.

    Add a reference location to the list of references for this specific Referencable. Adding references is gated so that we can control when references are collected. This must be called from some part of the validation logic to establish the references.

    Definition Classes
    Referenceable
  17. def addTypeDependencyHolder(typeId: TypeId): Unit

    Add a single type dependency holders for this type.

    Add a single type dependency holders for this type.

    Definition Classes
    DependentType
  18. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  19. lazy val blocks: ArraySeq[ApexInitializerBlock]
    Definition Classes
    FullDeclarationTypeDeclaration
  20. val bodyDeclarations: ArraySeq[ClassBodyDeclaration]
    Definition Classes
    FullDeclaration
  21. def bombScore(total: Int): (Int, Int, Double)
    Definition Classes
    ApexClassDeclaration
  22. val children: ArraySeq[ApexNode]
    Definition Classes
    FullDeclarationApexNode
  23. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  24. def collectDependencies(dependsOn: Set[Dependent]): Unit
  25. def collectInterfaces(found: Set[TypeDeclaration], visited: Set[TypeDeclaration] = mutable.Set()): Unit
    Definition Classes
    TypeDeclaration
  26. def collectIssues(issues: ArrayBuffer[Issue]): Unit
    Attributes
    protected
    Definition Classes
    ApexNode
  27. def collectIssues(): ArraySeq[Issue]
    Definition Classes
    ApexNode
  28. def collectRelatedReferencable(): Set[_ <: Referenceable]

    Collect all the referenceable elements that are related to this class.

    Collect all the referenceable elements that are related to this class. Override this to expand the reference search, such as for method overloading.

    Definition Classes
    Referenceable
  29. def constructorMap: ConstructorMap
    Definition Classes
    ApexClassDeclaration
  30. def constructors: ArraySeq[ConstructorDeclaration]
  31. val dead: Boolean

    Dead flag, set when discarded from module, useful to aid type cache eviction

    Dead flag, set when discarded from module, useful to aid type cache eviction

    Definition Classes
    TypeDeclaration
  32. def dependencies(): Iterable[Dependent]

    Get Dependents being held, default to empty for holders who do not use this, override as needed

    Get Dependents being held, default to empty for holders who do not use this, override as needed

    Definition Classes
    ClassBodyDeclarationDependencyHolder
  33. def dependencySummary(): Array[DependentSummary]

    Convert dependencies into a summary format

    Convert dependencies into a summary format

    Definition Classes
    DependencyHolder
  34. var depends: Option[SkinnySet[Dependent]]
    Attributes
    protected
    Definition Classes
    ClassBodyDeclaration
  35. val description: String
    Definition Classes
    ClassBodyDeclarationApexNode
  36. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. def equals(that: Any): Boolean
    Definition Classes
    IdentityEquality → AnyRef → Any
  38. def extendsOrImplements(typeName: TypeName): Boolean
    Definition Classes
    TypeDeclaration
  39. lazy val fields: ArraySeq[FieldDeclaration]
  40. def findConstructor(params: ArraySeq[TypeName], verifyContext: VerifyContext): Either[String, ConstructorDeclaration]
  41. def findDeclarationFromSourceReference(searchTerm: String, location: Location): Option[TypeDeclaration with Locatable]

    Locate a TypeDeclaration for the passed typeName that was extracted from location.

    Locate a TypeDeclaration for the passed typeName that was extracted from location.

    searchTerm

    The name of the type to search for.

    location

    The location of the type in the source code.

    returns

    An option containing the source reference, if found.

    Definition Classes
    FullDeclarationApexFullDeclaration
  42. def findField(name: Name, exclude: HashSet[TypeDeclaration] = new mutable.HashSet()): Option[FieldDeclaration]
    Attributes
    protected
    Definition Classes
    TypeDeclaration
  43. def findField(name: Name, staticContext: Option[Boolean]): Option[FieldDeclaration]
  44. def findLocalType(localName: TypeName): Option[TypeDeclaration]
    Definition Classes
    TypeDeclaration
  45. def findMethod(name: Name, params: ArraySeq[TypeName], staticContext: Option[Boolean], verifyContext: VerifyContext): Either[String, MethodDeclaration]
  46. def findNestedType(name: Name): Option[TypeDeclaration]
  47. def findReferenceableFromLocation(line: Int, offset: Int): Option[Referenceable]

    Get referenceable element at the specified line and offset.

    Get referenceable element at the specified line and offset.

    line

    The 1-based line number within the source file.

    offset

    The 0-based character offset within the line.

    returns

    A map from source locations to their corresponding validation results.

    Definition Classes
    ApexClassDeclarationApexDeclaration
  48. def flush(pc: ParsedCache, context: PackageContext): Unit

    Override to handle request to flush the type to passed cache if dirty

    Override to handle request to flush the type to passed cache if dirty

    Definition Classes
    FullDeclarationApexClassDeclaration
  49. def gatherDependencies(dependsOn: Set[TypeId], apexOnly: Boolean, outerTypesOnly: Boolean, typeCache: TypeCache): Unit

    Collect set of TypeIds that this declaration is dependent on.

    Collect set of TypeIds that this declaration is dependent on.

    You can filter to include only Apex dependencies and only outer classes of those. If outerTypesOnly is false then a dependency on an inner class will add both the TypeId for the inner class and it's outer class to make determining if a class is a dependency easier for callers.

    Definition Classes
    FullDeclarationDependentType
  50. def getBodyDeclarationFromLocation(line: Int, offset: Int): Option[(FullDeclaration, ClassBodyDeclaration)]

    Finds the body declaration (such as a method, field, or nested type) at the specified line and offset.

    Finds the body declaration (such as a method, field, or nested type) at the specified line and offset. Recursively searches nested types and returns the innermost matching (FullDeclaration, ClassBodyDeclaration) pair.

    line

    The line number to search (1-based).

    offset

    The character offset within the line (0-based).

    returns

    An Option containing the (FullDeclaration, ClassBodyDeclaration) if found, otherwise None.

    Definition Classes
    FullDeclaration
  51. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  52. def getCurrentReferences(refresh: (Seq[PathLike]) => Unit): Set[TargetLocation]

    Collect all reference locations for this Referencable.

    Collect all reference locations for this Referencable. The basic approach here is to collect references to things during a revalidation pass. The ReferenceProvider uses this.

    Definition Classes
    Referenceable
  53. def getDependencyHolders: Set[DependencyHolder]
    Definition Classes
    Dependent
  54. def getTypeDependencyHolders: SkinnySet[TypeId]

    Get current dependency holders

    Get current dependency holders

    Definition Classes
    DependentType
  55. def getValidationMap(line: Int, offset: Int): Map[Location, ValidationResult]

    Returns a map of validation results for the body declaration at the specified source location.

    Returns a map of validation results for the body declaration at the specified source location.

    This method locates the innermost body declaration (such as a method, field, or nested type) that contains the given line and offset. It then validates that declaration, collecting validation results for each relevant source location within it.

    If no matching body declaration is found, or if an error occurs during validation, an empty map is returned.

    line

    The 1-based line number within the source file.

    offset

    The 0-based character offset within the line.

    returns

    A map from source locations to their corresponding validation results.

    Definition Classes
    FullDeclarationApexFullDeclaration
  56. def hasHolders: Boolean
    Definition Classes
    Dependent
  57. def hasNonTestHolders: Boolean
    Definition Classes
    Dependent
  58. def hashCode(): Int
    Definition Classes
    IdentityEquality → AnyRef → Any
  59. val id: Id
    Definition Classes
    FullDeclaration
  60. val idLocation: Location
    Definition Classes
    FullDeclarationIdLocatable
  61. def idPathLocation: PathLocation
    Definition Classes
    IdLocatable
  62. def implements(typeName: TypeName, ignoreGenerics: Boolean): Boolean
    Definition Classes
    TypeDeclaration
  63. val inTest: Boolean

    Override to resolve conflict, TypeDeclaration & DependencyHolder both default false

    Override to resolve conflict, TypeDeclaration & DependencyHolder both default false

    Definition Classes
    FullDeclarationApexClassDeclarationTypeDeclarationDependencyHolder
  64. def interfaceDeclarations: ArraySeq[TypeDeclaration]
  65. val interfaces: ArraySeq[TypeName]
    Definition Classes
    FullDeclarationTypeDeclaration
  66. def isAbstract: Boolean
    Definition Classes
    TypeDeclaration
  67. lazy val isComplete: Boolean
  68. def isCustomException: Boolean
  69. lazy val isEntryPoint: Boolean
  70. def isExtensible: Boolean
    Definition Classes
    TypeDeclaration
  71. def isExternallyVisible: Boolean
    Definition Classes
    TypeDeclaration
  72. lazy val isFieldConstructed: Boolean
    Definition Classes
    TypeDeclaration
  73. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  74. lazy val isPageController: Boolean
    Definition Classes
    ApexClassDeclaration
  75. lazy val isSObject: Boolean
    Definition Classes
    TypeDeclaration
  76. def isVirtual: Boolean
    Definition Classes
    TypeDeclaration
  77. lazy val localConstructors: ArraySeq[ApexConstructorDeclaration]
  78. lazy val localFields: ArraySeq[ApexFieldLike]
  79. def localIssues: Seq[Issue]
    Definition Classes
    ApexNode
  80. lazy val localMethods: ArraySeq[ApexMethodDeclaration]
  81. def location: PathLocation
    Definition Classes
    PositionableUnsafeLocatableLocatable
  82. def methodMap: MethodMap
    Definition Classes
    ApexClassDeclaration
  83. def methods: ArraySeq[MethodDeclaration]
  84. def modifierIssues: ArraySeq[Issue]
    Definition Classes
    ClassBodyDeclaration
  85. val modifiers: ArraySeq[Modifier]
    Definition Classes
    ClassBodyDeclarationApexNode
  86. val module: Module

    The owning package, this is needed to disambiguate but restricts where DependentType can be used currently.

    The owning package, this is needed to disambiguate but restricts where DependentType can be used currently.

    Definition Classes
    FullDeclarationApexDeclarationDependentType
  87. val moduleDeclaration: Option[Module]
    Definition Classes
    FullDeclarationTypeDeclaration
  88. val name: Name
    Definition Classes
    FullDeclarationTypeDeclarationApexNode
  89. lazy val namespace: Option[Name]
    Definition Classes
    TypeDeclaration
  90. val nature: Nature
  91. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  92. def nestedTypes: ArraySeq[FullDeclaration]
  93. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  94. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  95. def outerTypeDeclaration: Option[TypeDeclaration]
    Definition Classes
    TypeDeclaration
  96. lazy val outerTypeId: TypeId

    TypeId for outer type (might be self)

    TypeId for outer type (might be self)

    Definition Classes
    DependentType
  97. val outerTypeName: Option[TypeName]
    Definition Classes
    FullDeclarationTypeDeclaration
  98. def outermostTypeDeclaration: TypeDeclaration
    Definition Classes
    TypeDeclaration
  99. val parseIssues: ArraySeq[Issue]
    Definition Classes
    ClassBodyDeclarationApexNode
  100. def paths: ArraySeq[PathLike]
    Definition Classes
    FullDeclarationTypeDeclaration
  101. def preReValidate(): Unit

    Reset local caches ready for re-validation

    Reset local caches ready for re-validation

    Definition Classes
    FullDeclarationApexClassDeclarationPreReValidatable
  102. def productElementNames: Iterator[String]
    Definition Classes
    Product
  103. def propagateDependencies(): Unit

    Inform each dependent this is holding a dependency to them

    Inform each dependent this is holding a dependency to them

    Definition Classes
    DependencyHolder
  104. def propagateOuterDependencies(typeCache: TypeCache): Unit

    Helper to update other types that you hold a dependency on them.

    Helper to update other types that you hold a dependency on them. Typically this need to be called after first creating a new type.

    Definition Classes
    DependentType
  105. def safeLocation: Option[PathLocation]
    Definition Classes
    UnsafeLocatable
  106. def safeValidate(): Unit
    Definition Classes
    TypeDeclaration
  107. def setDepends(dependencies: SkinnySet[Dependent]): Unit
    Definition Classes
    ClassBodyDeclaration
  108. def setLocation(path: PathLike, startLine: Int, startOffset: Int, endLine: Int, endOffset: Int): Unit
    Definition Classes
    Positionable
  109. def setTypeDependencyHolders(holders: SkinnySet[TypeId]): Unit

    Set type dependency holders, useful when carrying forward dependencies when a type if being replaced.

    Set type dependency holders, useful when carrying forward dependencies when a type if being replaced.

    Definition Classes
    DependentType
  110. lazy val signature: String
    Definition Classes
    ClassBodyDeclarationApexNode
  111. val source: Source
    Definition Classes
    FullDeclaration
  112. lazy val sourceHash: Int

    Calculate a hash for the source code of the declaration

    Calculate a hash for the source code of the declaration

    Definition Classes
    FullDeclarationApexDeclaration
  113. def summary: TypeSummary

    Create a summary for the of the declaration

    Create a summary for the of the declaration

    Definition Classes
    FullDeclarationApexDeclaration
  114. val superClass: Option[TypeName]
    Definition Classes
    FullDeclarationTypeDeclaration
  115. def superClassDeclaration: Option[TypeDeclaration]
  116. def superTypes(): List[TypeName]
    Definition Classes
    TypeDeclaration
  117. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  118. lazy val thisTypeId: TypeId

    Referencable must be able to provide a TypeId for the containing type to support revalidation.

    Referencable must be able to provide a TypeId for the containing type to support revalidation.

    Definition Classes
    ApexClassDeclarationReferenceable
  119. def thisTypeIdOpt: Option[TypeId]

    The TypeId for the containing type of the holder, optional as requires a module.

    The TypeId for the containing type of the holder, optional as requires a module.

    Definition Classes
    ApexClassDeclarationDependencyHolder
  120. def toString(): String
    Definition Classes
    ApexClassDeclaration → AnyRef → Any
  121. val typeContext: RelativeTypeContext
    Definition Classes
    FullDeclaration
  122. lazy val typeId: TypeId

    TypeId for this type

    TypeId for this type

    Definition Classes
    DependentType
  123. val typeName: TypeName
    Definition Classes
    FullDeclarationTypeDeclaration
  124. def validate(): Unit
    Attributes
    protected
    Definition Classes
    FullDeclarationTypeDeclaration
  125. def validate(context: BodyDeclarationVerifyContext): Unit
    Definition Classes
    ClassBodyDeclaration
  126. def validateFieldConstructorArguments(input: ExprContext, arguments: ArraySeq[Expression], context: ExpressionVerifyContext): Unit
    Definition Classes
    TypeDeclaration
  127. def verify(context: BodyDeclarationVerifyContext): Unit
  128. def verify(context: TypeVerifyContext): Unit
    Definition Classes
    ClassDeclarationFullDeclaration
  129. def visibility: Option[Modifier]
    Definition Classes
    TypeDeclaration
  130. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  131. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  132. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  133. def withContext(context: ParserRuleContext): ClassDeclaration.this.type
    Definition Classes
    CST
  134. def withLocation(location: PathLocation): ClassDeclaration.this.type
    Definition Classes
    Positionable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from FullDeclaration

Inherited from ApexFullDeclaration

Inherited from ApexClassDeclaration

Inherited from Referenceable

Inherited from ApexDeclaration

Inherited from DependentType

Inherited from TypeDeclaration

Inherited from PreReValidatable

Inherited from Dependent

Inherited from IdentityEquality

Inherited from ClassBodyDeclaration

Inherited from ApexNode

Inherited from IdLocatable

Inherited from DependencyHolder

Inherited from CST

Inherited from Positionable

Inherited from UnsafeLocatable

Inherited from Locatable

Inherited from AnyRef

Inherited from Any

Ungrouped