Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoxExpression ¶
BoxExpression returns the Java expression that boxes a primitive value. For object types it returns the parameter name unmodified.
func IsPrimitive ¶
IsPrimitive returns true if the Java type is a primitive that needs boxing.
Types ¶
type CallbackEntry ¶
type CallbackEntry struct {
// Class is the fully-qualified Java class or interface name.
Class string `yaml:"class"`
// Adapter is the generated adapter class name (unqualified).
Adapter string `yaml:"adapter"`
// Interface indicates whether the base type is a Java interface
// (uses "implements") rather than a class (uses "extends").
Interface bool `yaml:"interface"`
// Methods lists the abstract methods to override.
Methods []MethodEntry `yaml:"methods"`
}
CallbackEntry describes a single abstract class or interface that needs a generated Java adapter.
type MethodEntry ¶
type MethodEntry struct {
Name string `yaml:"name"`
Params []ParamEntry `yaml:"params"`
}
MethodEntry describes a single abstract method to override.
type ParamEntry ¶
ParamEntry describes a single method parameter.
Click to show internal directories.
Click to hide internal directories.