rules_java

package
v0.0.0-...-5428336 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtoJavaLibraryRuleName   = "proto_java_library"
	ProtoJavaLibraryRuleSuffix = "_java_library"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JavaLibrary

type JavaLibrary struct {
	KindName       string
	RuleNameSuffix string
	Outputs        []string
	Config         *protoc.ProtocConfiguration
	RuleConfig     *protoc.LanguageRuleConfig
	Resolver       protoc.DepsResolver
}

JavaLibrary implements RuleProvider for 'java_library'-derived rules.

func (*JavaLibrary) Deps

func (s *JavaLibrary) Deps() []string

Deps computes the deps list for the rule.

func (*JavaLibrary) Imports

func (s *JavaLibrary) Imports(c *config.Config, r *rule.Rule, file *rule.File) []resolve.ImportSpec

Imports implements part of the RuleProvider interface.

func (*JavaLibrary) Kind

func (s *JavaLibrary) Kind() string

Kind implements part of the ruleProvider interface.

func (*JavaLibrary) Name

func (s *JavaLibrary) Name() string

Name implements part of the ruleProvider interface.

func (*JavaLibrary) Resolve

func (s *JavaLibrary) Resolve(c *config.Config, ix *resolve.RuleIndex, r *rule.Rule, imports []string, from label.Label)

Resolve implements part of the RuleProvider interface.

func (*JavaLibrary) Rule

func (s *JavaLibrary) Rule(otherGen ...*rule.Rule) *rule.Rule

Rule implements part of the ruleProvider interface.

func (*JavaLibrary) Srcs

func (s *JavaLibrary) Srcs() []string

Srcs computes the srcs list for the rule.

func (*JavaLibrary) Visibility

func (s *JavaLibrary) Visibility() []string

Visibility provides visibility labels.

Jump to

Keyboard shortcuts

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