Documentation ¶
Index ¶
- Constants
- Variables
- func CreateListTypeParameter(typeRef *ast.TypeRef) *ast.Parameter
- func CreateListTypeRef(typeRef *ast.TypeRef) *ast.TypeRef
- func CreateMetadataFile(filename string) error
- func Load(src string)
- func NewDatabaseDriver() *databaseDriver
- func NewSoapClient() *soapforce.Client
- func PublicModifier() *ast.Modifier
- func Seed()
- func Setup()
- func String(o *Object) string
- func TypeName(v interface{}) string
- type ClassMap
- type ClassType
- type Field
- func (f *Field) AccessModifier(checkSetter bool) string
- func (f *Field) Is(name string) bool
- func (f *Field) IsAbstract() bool
- func (f *Field) IsAccessor(modifier string, checkSetter bool) bool
- func (f *Field) IsOverride() bool
- func (f *Field) IsPrivate(checkSetter bool) bool
- func (f *Field) IsProtected(checkSetter bool) bool
- func (f *Field) IsPublic(checkSetter bool) bool
- func (f *Field) IsVirtual() bool
- type FieldMap
- type Loader
- type MetaFileLoader
- type Method
- func (m *Method) AccessModifier() string
- func (m *Method) Is(name string) bool
- func (m *Method) IsAbstract() bool
- func (m *Method) IsAnnotated(name string) bool
- func (m *Method) IsOverride() bool
- func (m *Method) IsPrivate() bool
- func (m *Method) IsProtected() bool
- func (m *Method) IsPublic() bool
- func (m *Method) IsTestMethod() bool
- func (m *Method) IsVirtual() bool
- type MethodMap
- type NameSpaceStore
- type Object
- type ObjectMap
- type Relation
- type Sobject
- type SobjectField
- type SqlBuilder
- type ToStringer
- type TypeRefResolver
Constants ¶
View Source
const DefaultMetafileName = "sobjects.json"
Variables ¶
View Source
var BooleanType = &ClassType{ Name: "Boolean", ToString: func(o *Object) string { return fmt.Sprintf("%t", o.Value().(bool)) }, }
View Source
var DatabaseDriver = NewDatabaseDriver()
View Source
var DoubleType = &ClassType{ Name: "Double", ToString: func(o *Object) string { return fmt.Sprintf("%f", o.Value().(float64)) }, }
View Source
var ExceptionType = createExceptionType()
View Source
var IntegerType = &ClassType{ Name: "Integer", ToString: func(o *Object) string { return fmt.Sprintf("%d", o.Value().(int)) }, }
View Source
var ListType = createListType()
View Source
var MapType = createMapType()
View Source
var Null = &Object{ ClassType: NullType, InstanceFields: NewObjectMap(), GenericType: []*ClassType{}, Extra: map[string]interface{}{}, }
View Source
var NullType = &ClassType{ Name: "null", ToString: func(o *Object) string { return "null" }, }
View Source
var ObjectType = CreateClass( "Object", []*Method{}, nil, nil, )
View Source
var PrimitiveClasses []*ClassType
Functions ¶
func CreateListTypeParameter ¶ added in v0.1.1
func CreateMetadataFile ¶ added in v0.1.1
func NewDatabaseDriver ¶ added in v0.1.1
func NewDatabaseDriver() *databaseDriver
func NewSoapClient ¶ added in v0.1.1
func NewSoapClient() *soapforce.Client
func PublicModifier ¶ added in v0.1.1
Types ¶
type ClassMap ¶
*
- ClassMap
func NewClassMap ¶
func NewClassMap() *ClassMap
func NewClassMapWithPrimivie ¶
func PrimitiveClassMap ¶
func PrimitiveClassMap() *ClassMap
type ClassType ¶
type ClassType struct { Annotations []ast.Node Modifiers []ast.Node Name string SuperClassRef ast.Node SuperClass *ClassType ImplementClasses []*ClassType ImplementClassRefs []ast.Node Constructors []*Method InstanceFields *FieldMap StaticFields *FieldMap InstanceMethods *MethodMap StaticMethods *MethodMap InnerClasses *ClassMap ToString func(*Object) string Extra map[string]interface{} Interface bool Location *ast.Location Parent ast.Node }
var StringType *ClassType
func CreateClass ¶ added in v0.1.1
func (*ClassType) IsInterface ¶ added in v0.1.1
func (*ClassType) IsPrimitive ¶
type Field ¶
type Field struct { Type ast.Node Modifiers []ast.Node Name string Expression ast.Node Getter ast.Node Setter ast.Node Location *ast.Location Parent ast.Node }
func (*Field) AccessModifier ¶
func (*Field) IsAbstract ¶
func (*Field) IsAccessor ¶ added in v0.1.1
func (*Field) IsOverride ¶
func (*Field) IsProtected ¶
type FieldMap ¶
func NewFieldMap ¶
func NewFieldMap() *FieldMap
type MetaFileLoader ¶ added in v0.1.1
type MetaFileLoader struct {
// contains filtered or unexported fields
}
type Method ¶ added in v0.1.1
type Method struct { Name string Annotations []ast.Node Modifiers []ast.Node ReturnType ast.Node Parameters []ast.Node Throws []ast.Node Statements ast.Node // func(receiver, value, options) NativeFunction func(*Object, []*Object, map[string]interface{}) interface{} Location *ast.Location Parent ast.Node }
func CreateMethod ¶ added in v0.1.1
func NewConstructor ¶ added in v0.1.1
func NewConstructor(decl *ast.ConstructorDeclaration) *Method
func NewMethod ¶ added in v0.1.1
func NewMethod(decl *ast.MethodDeclaration) *Method
func (*Method) AccessModifier ¶ added in v0.1.1
func (*Method) IsAbstract ¶ added in v0.1.1
func (*Method) IsAnnotated ¶ added in v0.1.1
func (*Method) IsOverride ¶ added in v0.1.1
func (*Method) IsProtected ¶ added in v0.1.1
func (*Method) IsTestMethod ¶ added in v0.1.1
type MethodMap ¶
func NewMethodMap ¶
func NewMethodMap() *MethodMap
type NameSpaceStore ¶
*
- NameSpaces
func GetNameSpaceStore ¶ added in v0.1.1
func GetNameSpaceStore() *NameSpaceStore
func NewNameSpaceStore ¶
func NewNameSpaceStore() *NameSpaceStore
func (*NameSpaceStore) Add ¶
func (m *NameSpaceStore) Add(k string, n *ClassType)
func (*NameSpaceStore) Set ¶
func (m *NameSpaceStore) Set(k string, n *ClassMap)
type Object ¶
type Object struct { ClassType *ClassType InstanceFields *ObjectMap GenericType []*ClassType Extra map[string]interface{} }
func CreateListObject ¶ added in v0.1.1
func CreateObject ¶
func NewBoolean ¶ added in v0.1.1
func NewInteger ¶ added in v0.1.1
func (*Object) DoubleValue ¶
func (*Object) IntegerValue ¶
func (*Object) StringValue ¶
type Sobject ¶ added in v0.1.1
type Sobject struct { Name string Custom bool CustomSetting bool Label string Fields []SobjectField }
type SobjectField ¶ added in v0.1.1
type SqlBuilder ¶ added in v0.1.1
type SqlBuilder struct {
// contains filtered or unexported fields
}
type ToStringer ¶
type ToStringer struct {
Indent int
}
func (*ToStringer) AddIndent ¶
func (v *ToStringer) AddIndent(f func())
func (*ToStringer) String ¶
func (v *ToStringer) String(o *Object) string
type TypeRefResolver ¶ added in v0.1.1
type TypeRefResolver struct { NameSpaces *NameSpaceStore ClassTypes *ClassMap CurrentClass *ClassType }
func (*TypeRefResolver) ConvertType ¶ added in v0.1.1
func (r *TypeRefResolver) ConvertType(n *ast.TypeRef) (*ClassType, error)
func (*TypeRefResolver) ResolveType ¶ added in v0.1.1
func (r *TypeRefResolver) ResolveType(names []string) (*ClassType, error)
Source Files ¶
- apex_pages.go
- boolean.go
- database.go
- date.go
- db_driver.go
- double.go
- exception.go
- integer.go
- list.go
- map.go
- messaging.go
- metadata_uploader.go
- object.go
- page_reference.go
- primitive.go
- set.go
- sobject.go
- sobject_loader.go
- sql_builder.go
- string.go
- stringer.go
- system.go
- test.go
- type.go
- typeref_resolver.go
Click to show internal directories.
Click to hide internal directories.