Documentation
¶
Index ¶
- func CreateXML(plugin *Plugin, filename string) error
- func Tokenize(content string) []string
- type Action
- type Annotation
- type Category
- type Class
- type Clobbers
- type ConfigFile
- type Data
- type Docrtype
- type Docstring
- type Engine
- type Engines
- type Enum
- type EnumItem
- type FParam
- type Fbody
- type Feature
- type Framework
- type Function
- type Hook
- type IntentFilter
- type JSModule
- type Metadata
- type Param
- type Platform
- type Plugin
- type Receiver
- type Service
- type SourceFile
- type TSFile
- type Tinterface
- type UsesPermission
- type Variable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Class ¶
type Class struct {
Export bool
Name string
Extends bool
ExtendedClass string
Implements bool
ImplementedClasses []string
Variables []Variable
Functions []Function
Abstract bool
Declare bool
Cdefault bool
}
Class ...
type ConfigFile ¶
type ConfigFile struct {
Target string `xml:"target,attr,omitempty"`
Parent string `xml:"parent,attr,omitempty"`
UsesPermissions []UsesPermission `xml:"uses-permission"`
Receivers []Receiver `xml:"receiver"`
Metadata *Metadata `xml:"meta-data,omitempty"`
Services []Service `xml:"service"`
Features []Feature `xml:"feature"`
}
ConfigFile ...
type Framework ¶
type Framework struct {
Src string `xml:"src,attr"`
Custom bool `xml:"custom,attr,omitempty"`
Type string `xml:"type,attr,omitempty"`
}
Framework ...
type Function ¶
type Function struct {
Export bool
AccessModifier string
Declare bool
Async bool
Annotations []Annotation
Docs *Docstring
Name string
Rtype string
Body *Fbody
Sbody string
Params []FParam
Static bool
}
Function ...
type IntentFilter ¶
type IntentFilter struct {
Actions []Action `xml:"action"`
Categories []Category `xml:"category"`
Datas []Data `xml:"data"`
}
IntentFilter ...
type JSModule ¶
type JSModule struct {
Name string `xml:"name,attr"`
Src string `xml:"src,attr"`
Clobbers *Clobbers `xml:"clobbers,omitempty"`
}
JSModule ...
type Metadata ¶
type Metadata struct {
AndroidName string `xml:"value,attr,omitempty"`
AndroidValue string `xml:"name,attr,omitempty"`
}
Metadata ...
type Param ¶
type Param struct {
Name string `xml:"name,attr,omitempty"`
Value string `xml:"value,attr,omitempty"`
}
Param ...
type Platform ¶
type Platform struct {
Name string `xml:"name,attr"`
Hooks []Hook `xml:"hook"`
ConfigFiles []ConfigFile `xml:"config-file"`
Frameworks []Framework `xml:"framework"`
SourceFiles []SourceFile `xml:"source-file"`
}
Platform ...
func (*Platform) NewSourceFrom ¶
NewSourceFrom ...
type Plugin ¶
type Plugin struct {
XMLName xml.Name `xml:"plugin"`
ID string `xml:"id,attr"`
Version string `xml:"version,attr"`
Xmlns string `xml:"xmlns,attr"`
XmlnsAndroid string `xml:"android,attr"`
Name string `xml:"name"`
Description string `xml:"description"`
License string `xml:"license,"`
Keywords string `xml:"keywords"`
Author string `xml:"author,omitempty"`
Engines *Engines `xml:"engines,omitempty"`
JsModule []JSModule `xml:"js-module"`
Platform *Platform `xml:"platform"`
}
Plugin ...
func (*Plugin) NewJsModulesFrom ¶
NewJsModulesFrom ...
type Receiver ¶
type Receiver struct {
AndroidName string `xml:"name,attr,omitempty"`
AndroidEnabled bool `xml:"enabled,attr,omitempty"`
AndroidExported bool `xml:"exported,attr,omitempty"`
IntentFilters []IntentFilter `xml:"intent-filter"`
}
Receiver ...
type Service ¶
type Service struct {
AndroidName string `xml:"name,attr,omitempty"`
AndroidExported bool `xml:"exported,attr,omitempty"`
IntentFilters []IntentFilter `xml:"intent-filter"`
}
Service ...
type SourceFile ¶
SourceFile ...
type TSFile ¶
type TSFile struct {
Classes []Class
Functions []Function
Interfaces []Tinterface
Variables []Variable
Enums []Enum
}
TSFile ...
type Tinterface ¶
type Tinterface struct {
Export bool
Declare bool
Name string
Extends bool
ExtendedClasses []string
Variables []Variable
Functions []Function
}
Tinterface ...
type UsesPermission ¶
type UsesPermission struct {
AndroidName string `xml:"name,attr"`
}
UsesPermission ...
Click to show internal directories.
Click to hide internal directories.