class ApexMethodDeclaration extends ClassBodyDeclaration with ApexMethodLike
- Alphabetic
- By Inheritance
- ApexMethodDeclaration
- ApexMethodLike
- Referenceable
- ApexVisibleMethodLike
- MethodDeclaration
- Parameters
- Dependent
- IdentityEquality
- ClassBodyDeclaration
- ApexNode
- IdLocatable
- DependencyHolder
- CST
- Positionable
- UnsafeLocatable
- Locatable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ApexMethodDeclaration(thisType: ThisType, _modifiers: ModifierResults, returnTypeName: RelativeTypeName, id: Id, parameters: ArraySeq[FormalParameter], block: Option[Block])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addDependencyHolder(dependencyHolder: DependencyHolder): Unit
- Definition Classes
- Dependent
- 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
- def addShadow(method: MethodDeclaration): Unit
- Definition Classes
- ApexMethodLike
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val block: Option[Block]
- val children: ArraySeq[ApexNode]
- Definition Classes
- ApexMethodDeclaration → ApexNode
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def collectDependencies(dependsOn: Set[Dependent]): Unit
- Definition Classes
- ClassBodyDeclaration
- def collectIssues(issues: ArrayBuffer[Issue]): Unit
- Attributes
- protected
- Definition Classes
- ApexNode
- def collectIssues(): ArraySeq[Issue]
- Definition Classes
- ApexNode
- def collectRelatedReferencable(): Set[ApexMethodLike]
Collects all related
Referenceableinstances, including the current method and all parent and child methods in the shadow hierarchy.Collects all related
Referenceableinstances, including the current method and all parent and child methods in the shadow hierarchy.- returns
A set of
Referenceableinstances related to the current method.
- Definition Classes
- ApexMethodLike → Referenceable
- 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
- ClassBodyDeclaration → DependencyHolder
- def dependencySummary(): Array[DependentSummary]
Convert dependencies into a summary format
Convert dependencies into a summary format
- Definition Classes
- DependencyHolder
- var depends: Option[SkinnySet[Dependent]]
- Attributes
- protected
- Definition Classes
- ClassBodyDeclaration
- val description: String
- Definition Classes
- ClassBodyDeclaration → ApexNode
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(that: Any): Boolean
- Definition Classes
- IdentityEquality → AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- 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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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
- def getDependencyHolders: Set[DependencyHolder]
- Definition Classes
- Dependent
- val hasBlock: Boolean
- Definition Classes
- ApexMethodDeclaration → MethodDeclaration
- 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
- def hasHolders: Boolean
- Definition Classes
- Dependent
- 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
- def hasNonTestHolders: Boolean
- Definition Classes
- Dependent
- 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
- def hasSameSignature(other: MethodDeclaration, allowPlatformGenericEquivalence: Boolean): Boolean
- Definition Classes
- MethodDeclaration
- def hashCode(): Int
- Definition Classes
- IdentityEquality → AnyRef → Any
- def idLocation: Location
- Definition Classes
- ApexMethodDeclaration → IdLocatable
- def idPathLocation: PathLocation
- Definition Classes
- IdLocatable
- val inTest: Boolean
Is the holder within test code
Is the holder within test code
- Definition Classes
- ApexMethodDeclaration → DependencyHolder
- def isAbstract: Boolean
- Definition Classes
- MethodDeclaration
- def isExternallyVisible: Boolean
- Definition Classes
- MethodDeclaration
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isOverride: Boolean
- Definition Classes
- MethodDeclaration
- def isStatic: Boolean
- Definition Classes
- MethodDeclaration
- def isSynthetic: Boolean
- Definition Classes
- ApexMethodDeclaration → ApexMethodLike
- def isTestVisible: Boolean
- Definition Classes
- MethodDeclaration
- def isVirtual: Boolean
- Definition Classes
- MethodDeclaration
- def localIssues: Seq[Issue]
- Definition Classes
- ApexNode
- def location: PathLocation
- Definition Classes
- Positionable → UnsafeLocatable → Locatable
- def modifierIssues: ArraySeq[Issue]
- Definition Classes
- ClassBodyDeclaration
- val modifiers: ArraySeq[Modifier]
- Definition Classes
- ClassBodyDeclaration → ApexNode
- val name: Name
- Definition Classes
- ApexMethodDeclaration → MethodDeclaration → ApexNode
- def nameAndParameterTypes: String
- Definition Classes
- MethodDeclaration
- val nature: Nature
- Definition Classes
- ApexMethodDeclaration → ApexNode
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def parameterTypes: String
- Definition Classes
- MethodDeclaration
- val parameters: ArraySeq[FormalParameter]
- Definition Classes
- ApexMethodDeclaration → Parameters
- val parseIssues: ArraySeq[Issue]
- Definition Classes
- ClassBodyDeclaration → ApexNode
- 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
- def resetShadows(): Unit
- Definition Classes
- ApexMethodLike
- def safeLocation: Option[PathLocation]
- Definition Classes
- UnsafeLocatable
- def setDepends(dependencies: SkinnySet[Dependent]): Unit
- Definition Classes
- ClassBodyDeclaration
- def setLocation(path: PathLike, startLine: Int, startOffset: Int, endLine: Int, endOffset: Int): Unit
- Definition Classes
- Positionable
- def shadowedBy: Set[MethodDeclaration]
- Definition Classes
- ApexMethodLike
- def shadows: Set[MethodDeclaration]
- Definition Classes
- ApexMethodLike
- lazy val signature: String
- Definition Classes
- ApexMethodDeclaration → MethodDeclaration → ClassBodyDeclaration → ApexNode
- def summary: MethodSummary
- Definition Classes
- ApexMethodLike → ApexVisibleMethodLike
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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
- ApexMethodDeclaration → ApexMethodLike → Referenceable
- 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
- ApexMethodLike → DependencyHolder
- def toString(): String
- Definition Classes
- MethodDeclaration → AnyRef → Any
- def typeName: TypeName
- Definition Classes
- ApexMethodDeclaration → MethodDeclaration
- def validate(context: BodyDeclarationVerifyContext): Unit
- Definition Classes
- ClassBodyDeclaration
- def verify(context: BodyDeclarationVerifyContext): Unit
- Definition Classes
- ApexMethodDeclaration → ClassBodyDeclaration
- def visibility: Option[Modifier]
- Definition Classes
- MethodDeclaration
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withContext(context: ParserRuleContext): ApexMethodDeclaration.this.type
- Definition Classes
- CST
- def withLocation(location: PathLocation): ApexMethodDeclaration.this.type
- Definition Classes
- Positionable