Packages

class ApexMethodDeclaration extends ClassBodyDeclaration with ApexMethodLike

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ApexMethodDeclaration
  2. ApexMethodLike
  3. Referenceable
  4. ApexVisibleMethodLike
  5. MethodDeclaration
  6. Parameters
  7. Dependent
  8. IdentityEquality
  9. ClassBodyDeclaration
  10. ApexNode
  11. IdLocatable
  12. DependencyHolder
  13. CST
  14. Positionable
  15. UnsafeLocatable
  16. Locatable
  17. AnyRef
  18. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ApexMethodDeclaration(thisType: ThisType, _modifiers: ModifierResults, returnTypeName: RelativeTypeName, id: Id, parameters: ArraySeq[FormalParameter], block: Option[Block])

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. def addDependencyHolder(dependencyHolder: DependencyHolder): Unit
    Definition Classes
    Dependent
  5. 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
  6. def addShadow(method: MethodDeclaration): Unit
    Definition Classes
    ApexMethodLike
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. val block: Option[Block]
  9. val children: ArraySeq[ApexNode]
    Definition Classes
    ApexMethodDeclarationApexNode
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  11. def collectDependencies(dependsOn: Set[Dependent]): Unit
    Definition Classes
    ClassBodyDeclaration
  12. def collectIssues(issues: ArrayBuffer[Issue]): Unit
    Attributes
    protected
    Definition Classes
    ApexNode
  13. def collectIssues(): ArraySeq[Issue]
    Definition Classes
    ApexNode
  14. def collectRelatedReferencable(): Set[ApexMethodLike]

    Collects all related Referenceable instances, including the current method and all parent and child methods in the shadow hierarchy.

    Collects all related Referenceable instances, including the current method and all parent and child methods in the shadow hierarchy.

    returns

    A set of Referenceable instances related to the current method.

    Definition Classes
    ApexMethodLikeReferenceable
  15. 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
  16. def dependencySummary(): Array[DependentSummary]

    Convert dependencies into a summary format

    Convert dependencies into a summary format

    Definition Classes
    DependencyHolder
  17. var depends: Option[SkinnySet[Dependent]]
    Attributes
    protected
    Definition Classes
    ClassBodyDeclaration
  18. val description: String
    Definition Classes
    ClassBodyDeclarationApexNode
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def equals(that: Any): Boolean
    Definition Classes
    IdentityEquality → AnyRef → Any
  21. def fulfillsInterfaceMethodParams(from: ApexClassDeclaration, implMethod: MethodDeclaration): Boolean

    Test if this method matches the provided params when fulfilling an interface method.

    Test if this method matches the provided params when fulfilling an interface method. The basic approach here is that each param of the interface method must be assignable to the implMethod so that only widening of the types is supported.

    Definition Classes
    MethodDeclaration
  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  23. 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
  24. def getDependencyHolders: Set[DependencyHolder]
    Definition Classes
    Dependent
  25. val hasBlock: Boolean
  26. def hasCompatibleParameters(params: ArraySeq[TypeName], allowPlatformGenericEquivalence: Boolean): Boolean

    Test if this params are compatible with those passed.

    Test if this params are compatible with those passed. Ideally this would just be a comparison of type names but there is a quirk in how platform generic interfaces are handled.

    Definition Classes
    Parameters
  27. def hasHolders: Boolean
    Definition Classes
    Dependent
  28. def hasMoreSpecificParams(otherParams: ArraySeq[ParameterDeclaration], params: ArraySeq[TypeName], context: VerifyContext): Option[Boolean]

    Determine if this params is a more specific version of the passed params.

    Determine if this params is a more specific version of the passed params. For this to be true all the parameters of this parameters must be assignable to the corresponding parameter of the other method. However, when dealing with RecordSets (SOQL results) we also prioritise degrees of specificness and use those to select as well.

    Definition Classes
    Parameters
  29. def hasNonTestHolders: Boolean
    Definition Classes
    Dependent
  30. def hasSameParameters(other: MethodDeclaration, allowPlatformGenericEquivalence: Boolean): Boolean

    Test if the passed method has params compatible with this method.

    Test if the passed method has params compatible with this method. Ideally this would just be a comparison of type names but there is a quirk in how platform generic interfaces are handled.

    Definition Classes
    MethodDeclaration
  31. def hasSameSignature(other: MethodDeclaration, allowPlatformGenericEquivalence: Boolean): Boolean
    Definition Classes
    MethodDeclaration
  32. def hashCode(): Int
    Definition Classes
    IdentityEquality → AnyRef → Any
  33. def idLocation: Location
    Definition Classes
    ApexMethodDeclarationIdLocatable
  34. def idPathLocation: PathLocation
    Definition Classes
    IdLocatable
  35. val inTest: Boolean

    Is the holder within test code

    Is the holder within test code

    Definition Classes
    ApexMethodDeclarationDependencyHolder
  36. def isAbstract: Boolean
    Definition Classes
    MethodDeclaration
  37. def isExternallyVisible: Boolean
    Definition Classes
    MethodDeclaration
  38. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  39. def isOverride: Boolean
    Definition Classes
    MethodDeclaration
  40. def isStatic: Boolean
    Definition Classes
    MethodDeclaration
  41. def isSynthetic: Boolean
  42. def isTestVisible: Boolean
    Definition Classes
    MethodDeclaration
  43. def isVirtual: Boolean
    Definition Classes
    MethodDeclaration
  44. def localIssues: Seq[Issue]
    Definition Classes
    ApexNode
  45. def location: PathLocation
    Definition Classes
    PositionableUnsafeLocatableLocatable
  46. def modifierIssues: ArraySeq[Issue]
    Definition Classes
    ClassBodyDeclaration
  47. val modifiers: ArraySeq[Modifier]
    Definition Classes
    ClassBodyDeclarationApexNode
  48. val name: Name
  49. def nameAndParameterTypes: String
    Definition Classes
    MethodDeclaration
  50. val nature: Nature
    Definition Classes
    ApexMethodDeclarationApexNode
  51. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  52. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  53. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  54. def parameterTypes: String
    Definition Classes
    MethodDeclaration
  55. val parameters: ArraySeq[FormalParameter]
    Definition Classes
    ApexMethodDeclarationParameters
  56. val parseIssues: ArraySeq[Issue]
    Definition Classes
    ClassBodyDeclarationApexNode
  57. 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
  58. def resetShadows(): Unit
    Definition Classes
    ApexMethodLike
  59. def safeLocation: Option[PathLocation]
    Definition Classes
    UnsafeLocatable
  60. def setDepends(dependencies: SkinnySet[Dependent]): Unit
    Definition Classes
    ClassBodyDeclaration
  61. def setLocation(path: PathLike, startLine: Int, startOffset: Int, endLine: Int, endOffset: Int): Unit
    Definition Classes
    Positionable
  62. def shadowedBy: Set[MethodDeclaration]
    Definition Classes
    ApexMethodLike
  63. def shadows: Set[MethodDeclaration]
    Definition Classes
    ApexMethodLike
  64. lazy val signature: String
  65. def summary: MethodSummary
  66. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  67. 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
    ApexMethodDeclarationApexMethodLikeReferenceable
  68. 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
    ApexMethodLikeDependencyHolder
  69. def toString(): String
    Definition Classes
    MethodDeclaration → AnyRef → Any
  70. def typeName: TypeName
  71. def validate(context: BodyDeclarationVerifyContext): Unit
    Definition Classes
    ClassBodyDeclaration
  72. def verify(context: BodyDeclarationVerifyContext): Unit
  73. def visibility: Option[Modifier]
    Definition Classes
    MethodDeclaration
  74. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  75. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  76. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  77. def withContext(context: ParserRuleContext): ApexMethodDeclaration.this.type
    Definition Classes
    CST
  78. def withLocation(location: PathLocation): ApexMethodDeclaration.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 ApexMethodLike

Inherited from Referenceable

Inherited from ApexVisibleMethodLike

Inherited from MethodDeclaration

Inherited from Parameters

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