apexClass

package
v0.45.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const NAME = "ApexClass"

Variables

This section is empty.

Functions

This section is empty.

Types

type ApexClass

type ApexClass struct {
	metadata.MetadataInfo
	XMLName    xml.Name `xml:"ApexClass"`
	Xmlns      string   `xml:"xmlns,attr"`
	Fqn        *string  `xml:"fqn,attr"`
	ApiVersion struct {
		Text string `xml:",chardata"`
	} `xml:"apiVersion"`
	PackageVersions []struct {
		MajorNumber struct {
			Text string `xml:",chardata"`
		} `xml:"majorNumber"`
		MinorNumber struct {
			Text string `xml:",chardata"`
		} `xml:"minorNumber"`
		Namespace struct {
			Text string `xml:",chardata"`
		} `xml:"namespace"`
	} `xml:"packageVersions"`
	Status struct {
		Text string `xml:",chardata"`
	} `xml:"status"`

	// Non-XML field to store the actual class code
	SourceCode []byte `xml:"-"`
	SourcePath string `xml:"-"`
}

func Open

func Open(path string) (*ApexClass, error)

func (*ApexClass) Files

func (c *ApexClass) Files(format metadata.Format) (map[string][]byte, error)

func (*ApexClass) SetMetadata

func (c *ApexClass) SetMetadata(m metadata.MetadataInfo)

func (*ApexClass) Type

func (c *ApexClass) Type() metadata.MetadataType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL