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]) @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 finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  41. def findConstructor(params: ArraySeq[TypeName], verifyContext: VerifyContext): Either[String, ConstructorDeclaration]
  42. 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
  43. def findField(name: Name, exclude: HashSet[TypeDeclaration] = new mutable.HashSet()): Option[FieldDeclaration]
    Attributes
    protected
    Definition Classes
    TypeDeclaration
  44. def findField(name: Name, staticContext: Option[Boolean]): Option[FieldDeclaration]
  45. def findLocalType(localName: TypeName): Option[TypeDeclaration]
    Definition Classes
    TypeDeclaration
  46. def findMethod(name: Name, params: ArraySeq[TypeName], staticContext: Option[Boolean], verifyContext: VerifyContext): Either[String, MethodDeclaration]
  47. def findNestedType(name: Name): Option[TypeDeclaration]
  48. 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
  49. 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
  50. 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
  51. 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
  52. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  53. 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
  54. def getDependencyHolders: Set[DependencyHolder]
    Definition Classes
    Dependent
  55. def getTypeDependencyHolders: SkinnySet[TypeId]

    Get current dependency holders

    Get current dependency holders

    Definition Classes
    DependentType
  56. 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
  57. def hasHolders: Boolean
    Definition Classes
    Dependent
  58. def hasNonTestHolders: Boolean
    Definition Classes
    Dependent
  59. def hashCode(): Int
    Definition Classes
    IdentityEquality → AnyRef → Any
  60. val id: Id
    Definition Classes
    FullDeclaration
  61. val idLocation: Location
    Definition Classes
    FullDeclarationIdLocatable
  62. def idPathLocation: PathLocation
    Definition Classes
    IdLocatable
  63. def implements(typeName: TypeName, ignoreGenerics: Boolean): Boolean
    Definition Classes
    TypeDeclaration
  64. val inTest: Boolean

    Override to resolve conflict, TypeDeclaration & DependencyHolder both default false

    Override to resolve conflict, TypeDeclaration & DependencyHolder both default false

    Definition Classes
    FullDeclarationApexClassDeclarationTypeDeclarationDependencyHolder
  65. def interfaceDeclarations: ArraySeq[TypeDeclaration]
  66. val interfaces: ArraySeq[TypeName]
    Definition Classes
    FullDeclarationTypeDeclaration
  67. def isAbstract: Boolean
    Definition Classes
    TypeDeclaration
  68. lazy val isComplete: Boolean
  69. def isCustomException: Boolean
  70. lazy val isEntryPoint: Boolean
  71. def isExtensible: Boolean
    Definition Classes
    TypeDeclaration
  72. def isExternallyVisible: Boolean
    Definition Classes
    TypeDeclaration
  73. lazy val isFieldConstructed: Boolean
    Definition Classes
    TypeDeclaration
  74. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  75. lazy val isPageController: Boolean
    Definition Classes
    ApexClassDeclaration
  76. lazy val isSObject: Boolean
    Definition Classes
    TypeDeclaration
  77. def isVirtual: Boolean
    Definition Classes
    TypeDeclaration
  78. lazy val localConstructors: ArraySeq[ApexConstructorDeclaration]
  79. lazy val localFields: ArraySeq[ApexFieldLike]
  80. def localIssues: Seq[Issue]
    Definition Classes
    ApexNode
  81. lazy val localMethods: ArraySeq[ApexMethodDeclaration]
  82. def location: PathLocation
    Definition Classes
    PositionableUnsafeLocatableLocatable
  83. def methodMap: MethodMap
    Definition Classes
    ApexClassDeclaration
  84. def methods: ArraySeq[MethodDeclaration]
  85. def modifierIssues: ArraySeq[Issue]
    Definition Classes
    ClassBodyDeclaration
  86. val modifiers: ArraySeq[Modifier]
    Definition Classes
    ClassBodyDeclarationApexNode
  87. 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
  88. val moduleDeclaration: Option[Module]
    Definition Classes
    FullDeclarationTypeDeclaration
  89. val name: Name
    Definition Classes
    FullDeclarationTypeDeclarationApexNode
  90. lazy val namespace: Option[Name]
    Definition Classes
    TypeDeclaration
  91. val nature: Nature
  92. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  93. def nestedTypes: ArraySeq[FullDeclaration]
  94. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  95. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  96. def outerTypeDeclaration: Option[TypeDeclaration]
    Definition Classes
    TypeDeclaration
  97. lazy val outerTypeId: TypeId

    TypeId for outer type (might be self)

    TypeId for outer type (might be self)

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

    Reset local caches ready for re-validation

    Reset local caches ready for re-validation

    Definition Classes
    FullDeclarationApexClassDeclarationPreReValidatable
  103. def productElementNames: Iterator[String]
    Definition Classes
    Product
  104. 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
  105. 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
  106. def safeLocation: Option[PathLocation]
    Definition Classes
    UnsafeLocatable
  107. def safeValidate(): Unit
    Definition Classes
    TypeDeclaration
  108. def setDepends(dependencies: SkinnySet[Dependent]): Unit
    Definition Classes
    ClassBodyDeclaration
  109. def setLocation(path: PathLike, startLine: Int, startOffset: Int, endLine: Int, endOffset: Int): Unit
    Definition Classes
    Positionable
  110. 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
  111. lazy val signature: String
    Definition Classes
    ClassBodyDeclarationApexNode
  112. val source: Source
    Definition Classes
    FullDeclaration
  113. 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
  114. def summary: TypeSummary

    Create a summary for the of the declaration

    Create a summary for the of the declaration

    Definition Classes
    FullDeclarationApexDeclaration
  115. val superClass: Option[TypeName]
    Definition Classes
    FullDeclarationTypeDeclaration
  116. def superClassDeclaration: Option[TypeDeclaration]
  117. def superTypes(): List[TypeName]
    Definition Classes
    TypeDeclaration
  118. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  119. 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
  120. 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
  121. def toString(): String
    Definition Classes
    ApexClassDeclaration → AnyRef → Any
  122. val typeContext: RelativeTypeContext
    Definition Classes
    FullDeclaration
  123. lazy val typeId: TypeId

    TypeId for this type

    TypeId for this type

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

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