package api
- Alphabetic
- Public
- Protected
Type Members
- case class ApexSummary(typeSummary: TypeSummary, diagnostics: Array[Diagnostic]) extends Product with Serializable
Summary of an Apex class with diagnostic information
- sealed trait AvailableParser extends AnyRef
- case class BlockSummary(location: Location, isStatic: Boolean, dependents: Array[DependentSummary]) extends Product with Serializable
- case class ConstructorSummary(location: Location, idLocation: Location, modifiers: ArraySeq[Modifier], parameters: ArraySeq[ParameterSummary], dependents: Array[DependentSummary]) extends Product with Serializable
Summary of a type constructor
- sealed trait DependentSummary extends AnyRef
Dependency information interface for detailing types of dependency
- case class FieldDependentSummary(typeId: TypeIdentifier, name: String) extends DependentSummary with Product with Serializable
Dependency information for a field
Dependency information for a field
- Annotations
- @key("Field")
- case class FieldSummary(location: Location, idLocation: Location, name: String, nature: Nature, modifiers: ArraySeq[Modifier], typeName: TypeName, readAccess: Modifier, writeAccess: Modifier, dependents: Array[DependentSummary]) extends Product with Serializable
Summary of a type field (or property)
- case class MethodDependentSummary(typeId: TypeIdentifier, name: String, parameterTypes: ArraySeq[TypeName]) extends DependentSummary with Product with Serializable
Dependency information for a method
Dependency information for a method
- Annotations
- @key("Method")
- case class MethodSummary(location: Location, idLocation: Location, name: String, modifiers: ArraySeq[Modifier], typeName: TypeName, parameters: ArraySeq[ParameterSummary], hasBlock: Boolean, dependents: Array[DependentSummary]) extends Product with Serializable
Summary of a type method
- trait Org extends AnyRef
A virtual Org used to present the analysis functionality in a familiar way.
A virtual Org used to present the analysis functionality in a familiar way.
All analysis works within the context of a virtual Org. You can manage multiple of these at the same time but most use cases just need one creating, see Org.newOrg(). The Org functions as a container of multiple Package objects and maintains a set of discovered issues from the analysis of the package metadata. All orgs have at least one 'unmanaged' package identifiable by having no namespace.
In the simple case after creating an Org, you should add one or more packages detailing where package metadata is stored. Adding large packages can take considerable CPU and memory resources. Once the packages are loaded the metadata within them can be mutated using the Package methods. At any point you can list of current issues with the packages from getIssues.
When metadata changes are requested (see Package.refresh they are queued for later processing either via calling Org.flush or via automatic flushing (the default). Flushing also updates a disk cache that helps significantly reduce initial loading times. The flushing model used by an Org is set on construction, see ServerOps.setAutoFlush to change to manual flushing.
Orgs and Packages are not thread safe, serialise all calls to them.
- trait Package extends AnyRef
A virtual Package constructed from metadata.
A virtual Package constructed from metadata.
Packages must be created in the context of a specific Org. Each Package manages a set of Types which are created from the metadata of the package. Once constructed you can use the package APIs to introspect dependency relationships between Types, obtain summary information about Types and replace or delete Types.
A key concept to understand in this API is that a Type may be created from multiple metadata files, e.g. the System.Labels Type is always present but can be constructed from several labels files. The API methods expose Types via the TypeIdentifiers which you don't need to understand to use the API as long as you keep in mind the 1:M mapping between Types and Paths.
The term dependency can be rather ambiguous, we use it here to mean a 'using' relationship. So if class A calls a method on class B, we say A has a dependency that is B. The reverse relationship is a 'dependency holder', so B has a dependency holder that is A. Transitives of dependencies or dependency holder relationships are not exposed by these APIs but can be easily obtained by recursive iteration.
A Summary provides a way of looking at the structure of Types. In summary form only the most important details are provided but it is essentially free to access since it is the same format used in the disk cache.
Packages only handle metadata that is important to Apex class analysis, other forms of metadata that might appear in the package directory are ignored.
- case class ParameterSummary(name: String, typeName: TypeName) extends Product with Serializable
Summary of a constructor or method parameters
- case class TypeDependentSummary(typeId: TypeIdentifier, sourceHash: Int) extends DependentSummary with Product with Serializable
Dependency information for a type
Dependency information for a type
- Annotations
- @key("Type")
- case class TypeSummary(sourceHash: Int, location: Location, idLocation: Location, name: String, typeName: TypeName, nature: String, modifiers: ArraySeq[Modifier], inTest: Boolean, superClass: Option[TypeName], interfaces: ArraySeq[TypeName], blocks: ArraySeq[BlockSummary], fields: ArraySeq[FieldSummary], constructors: ArraySeq[ConstructorSummary], methods: ArraySeq[MethodSummary], nestedTypes: ArraySeq[TypeSummary], dependents: Array[DependentSummary]) extends Product with Serializable
Summary of a type
Value Members
- case object ANTLRParser extends AvailableParser with Product with Serializable
- object ApexSummary extends Serializable
- object BlockSummary extends Serializable
- object BuildInfo
- object ConstructorSummary extends Serializable
- object DependentSummary
- object FieldDependentSummary extends Serializable
- object FieldSummary extends Serializable
- object MethodDependentSummary extends Serializable
- object MethodSummary extends Serializable
- object Org
- case object OutlineParserMultithreaded extends AvailableParser with Product with Serializable
- case object OutlineParserSingleThreaded extends AvailableParser with Product with Serializable
- object ParameterSummary extends Serializable
- object ServerOps
Collection of Ops functions for changing global behaviours
- object TypeDependentSummary extends Serializable
- object TypeSummary extends Serializable