Documentation ¶
Index ¶
- Constants
- Variables
- func CreateDatabase(src string) error
- func CreateListObject(classType *ast.ClassType, records []*ast.Object) *ast.Object
- func CreateListType(classType *ast.ClassType) *ast.ClassType
- func CreateListTypeParameter(classType *ast.ClassType) *ast.Parameter
- func CreateListTypeRef(typeRef *ast.TypeRef) *ast.TypeRef
- func CreateMapType(keyClass, valueClass *ast.ClassType) *ast.ClassType
- func CreateMetadataFile(username, password, endpoint, filename string, standardObjects []string) error
- func CreateRaise(value *ast.Object) *ast.Object
- func CreateReturn(value *ast.Object) *ast.Object
- func Debug(obj interface{})
- func Equals(t, other *ast.ClassType) bool
- func LoadSObjectClass(src string)
- func NewBlob(value []byte) *ast.Object
- func NewBoolean(value bool) *ast.Object
- func NewClassMapWithPrimivie(classTypes []*ast.ClassType) *ast.ClassMap
- func NewDatabaseDriver() *databaseDriver
- func NewDouble(value float64) *ast.Object
- func NewInteger(value int) *ast.Object
- func NewLong(value int) *ast.Object
- func NewSoapClient(username, password, endpoint string) *soapforce.Client
- func NewString(value string) *ast.Object
- func PrimitiveClassMap() *ast.ClassMap
- func SearchMethod(receiverClass *ast.ClassType, methods []*ast.Method, ...) *ast.Method
- func Seed(username, password, endpoint, src string) error
- func String(o *ast.Object) string
- type EqualChecker
- type Loader
- type MetaFileLoader
- type NameSpaceStore
- type NullPointerException
- type Relation
- type Sobject
- type SobjectField
- type SqlBuilder
- type TestError
- type ToStringer
- type TypeRefResolver
Constants ¶
View Source
const ( InfoColor = "\033[1;34m%s\033[0m" NoticeColor = "\033[1;36m%s\033[0m" WarningColor = "\033[1;33m%s\033[0m" ErrorColor = "\033[1;31m%s\033[0m" DebugColor = "\033[0;36m%s\033[0m" )
View Source
const DefaultMetafileName = "sobjects.yml"
Variables ¶
View Source
var BlobType = &ast.ClassType{Name: "Blob"}
View Source
var BlobTypeParameter = &ast.Parameter{ Type: BlobType, Name: "_", }
View Source
var BooleanType = &ast.ClassType{ Name: "Boolean", InstanceMethods: ast.NewMethodMap(), StaticMethods: ast.NewMethodMap(), ToString: func(o *ast.Object) string { return fmt.Sprintf("%t", o.Value().(bool)) }, }
View Source
var Break = &ast.Object{ClassType: BreakType}
View Source
var BreakType = &ast.ClassType{Name: "Break"}
View Source
var Continue = &ast.Object{ClassType: ContinueType}
View Source
var ContinueType = &ast.ClassType{Name: "Continue"}
View Source
var DatabaseDriver = NewDatabaseDriver()
View Source
var DateType = ast.CreateClass( "Date", []*ast.Method{}, ast.NewMethodMap(), ast.NewMethodMap(), )
View Source
var DatetimeType = ast.CreateClass( "Datetime", []*ast.Method{}, ast.NewMethodMap(), ast.NewMethodMap(), )
View Source
var DoubleType = &ast.ClassType{ Name: "Double", InstanceMethods: ast.NewMethodMap(), StaticMethods: ast.NewMethodMap(), ToString: func(o *ast.Object) string { return fmt.Sprintf("%f", o.Value().(float64)) }, }
View Source
var ExceptionType = &ast.ClassType{}
View Source
var IntegerType = &ast.ClassType{ Name: "Integer", InstanceMethods: ast.NewMethodMap(), StaticMethods: ast.NewMethodMap(), ToString: func(o *ast.Object) string { return fmt.Sprintf("%d", o.Value().(int)) }, }
View Source
var IntegerTypeParameter = &ast.Parameter{ Type: IntegerType, Name: "_", }
View Source
var ListType = &ast.ClassType{Name: "List"}
View Source
var ListTypeParameter = &ast.Parameter{ Type: ListType, Name: "_", }
View Source
var LongType = &ast.ClassType{ Name: "Long", InstanceMethods: ast.NewMethodMap(), StaticMethods: ast.NewMethodMap(), ToString: func(o *ast.Object) string { return fmt.Sprintf("%d", o.IntegerValue()) }, }
View Source
var MapType = createMapType()
View Source
var Null = &ast.Object{ ClassType: NullType, InstanceFields: ast.NewObjectMap(), Extra: map[string]interface{}{}, }
View Source
var NullType = &ast.ClassType{ Name: "null", ToString: func(o *ast.Object) string { return "null" }, }
View Source
var ObjectType = ast.CreateClass( "Object", []*ast.Method{}, nil, nil, )
View Source
var PrimitiveClasses []*ast.ClassType
View Source
var RaiseType = &ast.ClassType{Name: "Raise"}
View Source
var ReturnType = &ast.ClassType{Name: "Return"}
View Source
var SObjectType = &ast.ClassType{Name: "SObject"}
View Source
var SObjectTypeParameter = &ast.Parameter{ Type: SObjectType, Name: "_", }
View Source
var StringType = &ast.ClassType{Name: "String"}
View Source
var T1type = &ast.ClassType{Name: "T:1"}
View Source
var T2type = &ast.ClassType{Name: "T:2"}
Functions ¶
func CreateDatabase ¶ added in v0.1.2
func CreateListObject ¶ added in v0.1.1
func CreateListTypeParameter ¶ added in v0.1.1
func CreateMapType ¶ added in v0.1.2
func CreateMetadataFile ¶ added in v0.1.1
func LoadSObjectClass ¶ added in v0.1.2
func LoadSObjectClass(src string)
func NewBoolean ¶ added in v0.1.1
func NewClassMapWithPrimivie ¶
func NewDatabaseDriver ¶ added in v0.1.1
func NewDatabaseDriver() *databaseDriver
func NewInteger ¶ added in v0.1.1
func NewSoapClient ¶ added in v0.1.1
func NewSoapClient(username, password, endpoint string) *soapforce.Client
func PrimitiveClassMap ¶
func SearchMethod ¶ added in v0.1.2
Types ¶
type EqualChecker ¶ added in v0.1.2
type MetaFileLoader ¶ added in v0.1.1
type MetaFileLoader struct {
// contains filtered or unexported fields
}
func NewMetaFileLoader ¶ added in v0.1.3
func NewMetaFileLoader(src string) *MetaFileLoader
type NameSpaceStore ¶
*
- NameSpaces
func GetNameSpaceStore ¶ added in v0.1.1
func GetNameSpaceStore() *NameSpaceStore
func NewNameSpaceStore ¶
func NewNameSpaceStore() *NameSpaceStore
type NullPointerException ¶ added in v0.1.3
type NullPointerException struct {
// contains filtered or unexported fields
}
func NewNullPointerException ¶ added in v0.1.3
func NewNullPointerException(name string) *NullPointerException
func (*NullPointerException) Error ¶ added in v0.1.3
func (e *NullPointerException) Error() string
func (*NullPointerException) GetName ¶ added in v0.1.3
func (e *NullPointerException) GetName() string
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())
type TypeRefResolver ¶ added in v0.1.1
type TypeRefResolver struct { NameSpaces *NameSpaceStore ClassTypes *ast.ClassMap CurrentClass *ast.ClassType }
func (*TypeRefResolver) ConvertType ¶ added in v0.1.1
func (*TypeRefResolver) ResolveType ¶ added in v0.1.1
func (r *TypeRefResolver) ResolveType(names []string) (*ast.ClassType, error)
Source Files ¶
- apex_pages.go
- blob.go
- boolean.go
- crypto.go
- database.go
- date.go
- datetime.go
- db_driver.go
- double.go
- encoding_util.go
- error.go
- exception.go
- http.go
- http_request.go
- http_response.go
- integer.go
- json.go
- list.go
- long.go
- map.go
- math.go
- messaging.go
- metadata_uploader.go
- object.go
- page_reference.go
- pattern.go
- primitive.go
- schema.go
- set.go
- sobject.go
- sobject_loader.go
- sql_builder.go
- string.go
- stringer.go
- system.go
- test.go
- time.go
- type.go
- typeref_resolver.go
Click to show internal directories.
Click to hide internal directories.