Documentation ¶
Index ¶
- Constants
- type JavaLibrary
- func (s *JavaLibrary) Deps() []string
- func (s *JavaLibrary) Imports(c *config.Config, r *rule.Rule, file *rule.File) []resolve.ImportSpec
- func (s *JavaLibrary) Kind() string
- func (s *JavaLibrary) Name() string
- func (s *JavaLibrary) Resolve(c *config.Config, ix *resolve.RuleIndex, r *rule.Rule, imports []string, ...)
- func (s *JavaLibrary) Rule(otherGen ...*rule.Rule) *rule.Rule
- func (s *JavaLibrary) Srcs() []string
- func (s *JavaLibrary) Visibility() []string
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.
Click to show internal directories.
Click to hide internal directories.