scopedObjects

package
v0.0.0-...-99bab9e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEmptyIdlDefinition

func NewEmptyIdlDefinition(fileInformation si.IFileInformation, identifier string) si.IBaseDeclaredType

func NewFixedPointType

func NewFixedPointType(fileInformation ScopingInterfaces.IFileInformation, n1, n2 int) (ScopingInterfaces.ITypeSpec, error)

func NewIdlValueAbsoluteDefinition

func NewIdlValueAbsoluteDefinition(fileInformation si.IFileInformation, identifier string, typeSpec si.ITypeSpec, flags ValueAbsoluteDefinitionFlags) (si.IInterfaceDcl, error)

func NewIdlValueHeader

func NewIdlValueHeader(fileInformation si.IFileInformation, idlValueKind si.IIdlValueKind, id si.IIdlIdentifier, valueInheritanceSpec si.IValueInheritanceSpec) (si.IIdlValueHeader, error)

func NewInterfaceDcl

func NewInterfaceDcl(
	fileInformation si.IFileInformation,
	kind si.IDlSupportedTypes,
	identifier string,
	forward bool,
	abstract bool,
	local bool,
	body si.ITypeSpec) (si.IInterfaceDcl, error)

func NewStringType

func NewStringType(fileInformation ScopingInterfaces.IFileInformation, n int) (ScopingInterfaces.ITypeSpec, error)

func NewWideStringType

func NewWideStringType(fileInformation ScopingInterfaces.IFileInformation, n int) (ScopingInterfaces.ITypeSpec, error)

Types

type AttrDeclarator

type AttrDeclarator struct {
	// contains filtered or unexported fields
}

func NewAttrDeclarator

func NewAttrDeclarator(identifier ScopingInterfaces.IScopedName) (*AttrDeclarator, error)

func (*AttrDeclarator) GetCol

func (self *AttrDeclarator) GetCol() int

func (*AttrDeclarator) GetFileName

func (self *AttrDeclarator) GetFileName() string

func (*AttrDeclarator) GetName

func (self *AttrDeclarator) GetName() string

func (*AttrDeclarator) GetRow

func (self *AttrDeclarator) GetRow() int

func (*AttrDeclarator) Names

func (self *AttrDeclarator) Names() []string

func (*AttrDeclarator) SetName

func (self *AttrDeclarator) SetName(string)

type AttributeDcl

type AttributeDcl struct {
	TypeSpecBase
	// contains filtered or unexported fields
}

func NewAttributeDcl

func NewAttributeDcl(fileInformation ScopingInterfaces.IFileInformation, attrDeclarator ScopingInterfaces.IAttrDeclarator, declaredType ScopingInterfaces.IBaseDeclaredType, readOnly bool) (*AttributeDcl, error)

func (*AttributeDcl) AttrDeclarator

func (self *AttributeDcl) AttrDeclarator() ScopingInterfaces.IAttrDeclarator

func (*AttributeDcl) DeclaredType

func (self *AttributeDcl) DeclaredType() ScopingInterfaces.IBaseDeclaredType

func (*AttributeDcl) ReadOnly

func (self *AttributeDcl) ReadOnly() bool

func (*AttributeDcl) String

func (self *AttributeDcl) String() string

type Declarator

type Declarator struct {
	FileInformationBase
	Identifier string
	// contains filtered or unexported fields
}

func NewDeclarator

func NewDeclarator(fileInformation ScopingInterfaces.IFileInformation, identifier string) *Declarator

func (*Declarator) GetIdentifier

func (self *Declarator) GetIdentifier() string

func (*Declarator) GetNext

func (self *Declarator) GetNext() ScopingInterfaces.IDeclarator

func (*Declarator) Next

func (*Declarator) SetNext

func (self *Declarator) SetNext(next ScopingInterfaces.IDeclarator)

func (*Declarator) String

func (self *Declarator) String() string

type DeclaredType

type DeclaredType struct {
	TypeSpecBase
}

func NewDeclaredType

func NewDeclaredType(kind ScopingInterfaces.IDlSupportedTypes, fileName string, row int, col int) *DeclaredType

type DeclaredTypePlaceHolder

type DeclaredTypePlaceHolder struct {
	FileInformationBase
	// contains filtered or unexported fields
}

func (*DeclaredTypePlaceHolder) AssignDeclaredTypeValues

func (self *DeclaredTypePlaceHolder) AssignDeclaredTypeValues()

func (*DeclaredTypePlaceHolder) GetKind

func (*DeclaredTypePlaceHolder) GetName

func (self *DeclaredTypePlaceHolder) GetName() string

func (*DeclaredTypePlaceHolder) SetName

func (self *DeclaredTypePlaceHolder) SetName(name string)

type EnumType

type EnumType struct {
	TypeSpecBase
	// contains filtered or unexported fields
}

func (*EnumType) Enumerator

func (e *EnumType) Enumerator() ScopingInterfaces.IEnumerator

func (*EnumType) String

func (self *EnumType) String() string

type Enumerator

type Enumerator struct {
	FileInformationBase
	// contains filtered or unexported fields
}

func (*Enumerator) Id

func (self *Enumerator) Id() string

func (*Enumerator) Last

func (*Enumerator) Next

func (*Enumerator) SetLast

func (self *Enumerator) SetLast(next ScopingInterfaces.IEnumerator)

func (*Enumerator) String

func (self *Enumerator) String() string

type FileInformationBase

type FileInformationBase struct {
	FileName string
	Row      int
	Col      int
}

func NewFileInformationBase01

func NewFileInformationBase01(fileName string, row int, col int) FileInformationBase

func NewFileInformationBase02

func NewFileInformationBase02(fileInformation ScopingInterfaces.IFileInformation) FileInformationBase

func (*FileInformationBase) GetCol

func (self *FileInformationBase) GetCol() int

func (*FileInformationBase) GetFileName

func (self *FileInformationBase) GetFileName() string

func (*FileInformationBase) GetRow

func (self *FileInformationBase) GetRow() int

func (*FileInformationBase) String

func (self *FileInformationBase) String() string

type FixedPointType

type FixedPointType struct {
	TypeSpecBase
	// contains filtered or unexported fields
}

type IdlConstDcl

type IdlConstDcl struct {
	TypeSpecBase
	// contains filtered or unexported fields
}

func NewIdlConstDcl

func NewIdlConstDcl(fileInformation ScopingInterfaces.IFileInformation, identifier string, value int) *IdlConstDcl

func (*IdlConstDcl) String

func (self *IdlConstDcl) String() string

type IdlIdentifier

type IdlIdentifier struct {
	FileInformationBase
	// contains filtered or unexported fields
}

func NewIdlIdentifier

func NewIdlIdentifier(name string, fileName string, row int, col int) *IdlIdentifier

func NewIdlIdentifier02

func NewIdlIdentifier02(fileInformation ScopingInterfaces.IFileInformation, name string) *IdlIdentifier

func (*IdlIdentifier) GetName

func (self *IdlIdentifier) GetName() string

func (*IdlIdentifier) Identifier

func (self *IdlIdentifier) Identifier() string

func (*IdlIdentifier) SetName

func (self *IdlIdentifier) SetName(string)

type IdlModuleDcl

type IdlModuleDcl struct {
	TypeSpecBase
	// contains filtered or unexported fields
}

func NewModuleDcl

func NewModuleDcl(fileInformation ScopingInterfaces.IFileInformation, moduleIdentifier string, moduleExports ScopingInterfaces.ITypeSpec) *IdlModuleDcl

func (*IdlModuleDcl) GetModuleExports

func (self *IdlModuleDcl) GetModuleExports() ScopingInterfaces.ITypeSpec

func (*IdlModuleDcl) IsDefined

func (self *IdlModuleDcl) IsDefined() bool

func (*IdlModuleDcl) Iterate

func (self *IdlModuleDcl) Iterate(cb func(TypeSpec ScopingInterfaces.ITypeSpec) error) error

func (*IdlModuleDcl) ModuleDcl

func (self *IdlModuleDcl) ModuleDcl() ScopingInterfaces.IIdlModuleDcl

func (*IdlModuleDcl) SetModuleExports

func (self *IdlModuleDcl) SetModuleExports(moduleExports ScopingInterfaces.ITypeSpec)

func (*IdlModuleDcl) String

func (self *IdlModuleDcl) String() string

type IdlRwException

type IdlRwException struct {
	TypeSpecBase
	// contains filtered or unexported fields
}

func NewIdlRwException

func NewIdlRwException(fileInformation ScopingInterfaces.IFileInformation, identifier string, members ScopingInterfaces.IStructMember) (*IdlRwException, error)

func (*IdlRwException) Members

func (*IdlRwException) String

func (self *IdlRwException) String() string

type IdlValueHeader

type IdlValueHeader struct {
	// contains filtered or unexported fields
}

func (IdlValueHeader) GetCol

func (self IdlValueHeader) GetCol() int

func (IdlValueHeader) GetFileName

func (self IdlValueHeader) GetFileName() string

func (IdlValueHeader) GetRow

func (self IdlValueHeader) GetRow() int

type IdlValueKind

type IdlValueKind struct {
	FileInformationBase
	// contains filtered or unexported fields
}

func NewIdlValueKind

func NewIdlValueKind(fileInformation ScopingInterfaces.IFileInformation, custom bool) (*IdlValueKind, error)

type Idlvalue_forward_dcl

type Idlvalue_forward_dcl struct {
	TypeSpecBase
}

func NewIdlvalue_forward_dcl

func NewIdlvalue_forward_dcl(fileInformation ScopingInterfaces.IFileInformation, identifier string, fileName string, row int, col int) (*Idlvalue_forward_dcl, error)

type InterfaceDcl

type InterfaceDcl struct {
	TypeSpecBase
	// contains filtered or unexported fields
}

func (*InterfaceDcl) BodyArray

func (self *InterfaceDcl) BodyArray() []si.IIdlDefinition

func (*InterfaceDcl) BodyCount

func (self *InterfaceDcl) BodyCount() int

func (*InterfaceDcl) GetBody

func (self *InterfaceDcl) GetBody() si.ITypeSpec

func (*InterfaceDcl) Iterate

func (self *InterfaceDcl) Iterate(cb func(typeSpec si.ITypeSpec) error) error

func (*InterfaceDcl) Local

func (self *InterfaceDcl) Local() bool

func (*InterfaceDcl) String

func (self *InterfaceDcl) String() string

type InterfaceHeader

type InterfaceHeader struct {
	FileInformationBase
	// contains filtered or unexported fields
}

func NewInterfaceHeader

func NewInterfaceHeader(fileInformation si.IFileInformation, identifier string, local, abstract bool, interfaceInheritanceSpec si.IInterfaceInheritanceSpec) (*InterfaceHeader, error)

func (*InterfaceHeader) Abstract

func (self *InterfaceHeader) Abstract() bool

func (*InterfaceHeader) Identifier

func (self *InterfaceHeader) Identifier() string

func (*InterfaceHeader) Local

func (self *InterfaceHeader) Local() bool

type InterfaceInheritanceSpec

type InterfaceInheritanceSpec struct {
}

func NewInterfaceInheritanceSpec

func NewInterfaceInheritanceSpec() (*InterfaceInheritanceSpec, error)

type InterfaceKindImpl

type InterfaceKindImpl struct {
	FileInformationBase
	// contains filtered or unexported fields
}

func NewInterfaceKindImpl

func NewInterfaceKindImpl(fileInformation ScopingInterfaces.IFileInformation, local bool, abstract bool) *InterfaceKindImpl

func (InterfaceKindImpl) Abstract

func (i InterfaceKindImpl) Abstract() bool

func (InterfaceKindImpl) Local

func (i InterfaceKindImpl) Local() bool

func (*InterfaceKindImpl) String

func (self *InterfaceKindImpl) String() string

type InterfaceNamePlus

type InterfaceNamePlus struct {
}

func NewInterfaceNamePlus

func NewInterfaceNamePlus(identifier string) (*InterfaceNamePlus, error)

func (*InterfaceNamePlus) Next

type NextNumber

type NextNumber struct {
	Number int
}

func NewNextNumber

func NewNextNumber() *NextNumber

func (*NextNumber) NextNumber

func (self *NextNumber) NextNumber() int

type OperationDeclarations

type OperationDeclarations struct {
	TypeSpecBase
	// contains filtered or unexported fields
}

func NewOperationDeclarations

func NewOperationDeclarations(
	fileInformation ScopingInterfaces.IFileInformation,
	operationName string,
	declarator ScopingInterfaces.IBaseDeclaredType,
	params ScopingInterfaces.IParameterDeclarations,
	exceptionList interface{}) *OperationDeclarations

func (*OperationDeclarations) GetExceptionList

func (self *OperationDeclarations) GetExceptionList() interface{}

func (*OperationDeclarations) GetOperationDeclaratorType

func (self *OperationDeclarations) GetOperationDeclaratorType() ScopingInterfaces.IBaseDeclaredType

func (*OperationDeclarations) GetOperationName

func (self *OperationDeclarations) GetOperationName() string

func (*OperationDeclarations) GetParams

func (*OperationDeclarations) String

func (self *OperationDeclarations) String() string

type ParamAttribute

type ParamAttribute struct {
	FileInformationBase
	// contains filtered or unexported fields
}

func NewParamAttribute

func NewParamAttribute(fileInformation ScopingInterfaces.IFileInformation, in bool, out bool) *ParamAttribute

func (*ParamAttribute) In

func (self *ParamAttribute) In() bool

func (*ParamAttribute) Out

func (self *ParamAttribute) Out() bool

type ParameterDeclarations

type ParameterDeclarations struct {
	FileInformationBase
	// contains filtered or unexported fields
}

func NewParameterDeclarations

func NewParameterDeclarations(
	fileInformation si.IFileInformation,
	paramIn, paramOut bool,
	paramName string,
	paramDeclarationType si.IBaseDeclaredType) *ParameterDeclarations

func (*ParameterDeclarations) GetNextParameterDeclarations

func (self *ParameterDeclarations) GetNextParameterDeclarations() si.IParameterDeclarations

func (*ParameterDeclarations) GetParamDeclarationType

func (self *ParameterDeclarations) GetParamDeclarationType() si.IBaseDeclaredType

func (*ParameterDeclarations) GetParamIn

func (self *ParameterDeclarations) GetParamIn() bool

func (*ParameterDeclarations) GetParamName

func (self *ParameterDeclarations) GetParamName() string

func (*ParameterDeclarations) GetParamOut

func (self *ParameterDeclarations) GetParamOut() bool

func (*ParameterDeclarations) NextParameterDeclarations

func (self *ParameterDeclarations) NextParameterDeclarations(
	nextParameterDeclarations si.IParameterDeclarations) si.IParameterDeclarations

func (*ParameterDeclarations) String

func (self *ParameterDeclarations) String() string

type PrimaryExpression

type PrimaryExpression struct {
	// contains filtered or unexported fields
}

func NewPrimaryExpression

func NewPrimaryExpression(value interface{}, valuetype ScopingInterfaces.IPrimaryExpressionType) *PrimaryExpression

func (*PrimaryExpression) Type

func (*PrimaryExpression) Value

func (self *PrimaryExpression) Value() interface{}

type ReservedWordData

type ReservedWordData struct {
	FileInformationBase
	// contains filtered or unexported fields
}

func NewReservedWordData

func NewReservedWordData(identifier string, fileName string, row int, col int) *ReservedWordData

func (*ReservedWordData) String

func (self *ReservedWordData) String() string

type ScopedName

type ScopedName struct {
	IdlIdentifier
	// contains filtered or unexported fields
}

func NewScopedName

func NewScopedName(name string, fileName string, row int, col int) *ScopedName

func NewScopedName02

func NewScopedName02(fileInformation ScopingInterfaces.IFileInformation, name string) *ScopedName

func (*ScopedName) GetNextScopedName

func (self *ScopedName) GetNextScopedName() (ScopingInterfaces.IScopedName, error)

func (*ScopedName) NextScopedName

func (self *ScopedName) NextScopedName(next ScopingInterfaces.IScopedName) error

func (*ScopedName) SetName

func (self *ScopedName) SetName(string)

type SequenceType

type SequenceType struct {
	TypeSpecBase
	// contains filtered or unexported fields
}

func NewSequenceType

func NewSequenceType(fileInformation ScopingInterfaces.IFileInformation, declaredType ScopingInterfaces.IBaseDeclaredType, count int) (*SequenceType, error)

func (*SequenceType) Count

func (self *SequenceType) Count() int

func (*SequenceType) TypeSpec

type StringType

type StringType struct {
	TypeSpecBase
}

type StructMember

type StructMember struct {
	// contains filtered or unexported fields
}

func (*StructMember) Count

func (self *StructMember) Count() int

func (*StructMember) DeclaredType

func (self *StructMember) DeclaredType() ScopingInterfaces.IBaseDeclaredType

func (*StructMember) GetDeclarator

func (self *StructMember) GetDeclarator() ScopingInterfaces.IDeclarator

func (*StructMember) GetMembers

func (*StructMember) GetNext

func (*StructMember) NextStructMember

type StructMemberInformation

type StructMemberInformation struct {
	FileInformationBase
	// contains filtered or unexported fields
}

func (*StructMemberInformation) GetId

func (self *StructMemberInformation) GetId() string

func (*StructMemberInformation) GetTypeSpec

func (*StructMemberInformation) String

func (self *StructMemberInformation) String() string

type StructType

type StructType struct {
	TypeSpecBase
	// contains filtered or unexported fields
}

func NewStructType

func NewStructType(fileInformation ScopingInterfaces.IFileInformation, identifier string, members ScopingInterfaces.IStructMember, forward bool) *StructType

func (*StructType) FindMemberType

func (self *StructType) FindMemberType(memberIdentifier string) ScopingInterfaces.IBaseDeclaredType

func (*StructType) Members

func (self *StructType) Members() ScopingInterfaces.IStructMember

func (*StructType) String

func (self *StructType) String() string

type TypeDeclarator

type TypeDeclarator struct {
	TypeSpecBase
	// contains filtered or unexported fields
}

func NewTypeDeclarator

func NewTypeDeclarator(simpleTypeSpec ScopingInterfaces.IBaseDeclaredType, declarator ScopingInterfaces.IDeclarator) (*TypeDeclarator, error)

func (*TypeDeclarator) String

func (self *TypeDeclarator) String() string

func (*TypeDeclarator) TypeSpec

type TypePrefixDefinition

type TypePrefixDefinition struct {
	TypeSpecBase
	// contains filtered or unexported fields
}

func NewCreateTypePrefixDcl

func NewCreateTypePrefixDcl(fileInformation ScopingInterfaces.IFileInformation, scopedName string, stringLiteral string) (*TypePrefixDefinition, error)

func (*TypePrefixDefinition) String

func (self *TypePrefixDefinition) String() string

func (*TypePrefixDefinition) StringLiteral

func (self *TypePrefixDefinition) StringLiteral() string

type TypeSpecBase

type TypeSpecBase struct {
	FileInformationBase
	NextTypeSpec si.ITypeSpec
	Identifier   string
	Kind         si.IDlSupportedTypes
	// contains filtered or unexported fields
}

func NewTypeSpecBase

func NewTypeSpecBase(
	fileInformation si.IFileInformation,
	nextTypeSpec si.ITypeSpec,
	identifier string,
	kind si.IDlSupportedTypes,
	isPrimitive bool,
	forward bool,
	abstract bool,
	local bool,
	sequenceRequired bool) TypeSpecBase

func (*TypeSpecBase) Abstract

func (self *TypeSpecBase) Abstract() bool

func (*TypeSpecBase) AssignNextTypeSpec

func (self *TypeSpecBase) AssignNextTypeSpec(next si.ITypeSpec) error

func (*TypeSpecBase) Forward

func (self *TypeSpecBase) Forward() bool

func (*TypeSpecBase) GetKind

func (self *TypeSpecBase) GetKind() si.IDlSupportedTypes

func (*TypeSpecBase) GetLinkedItems

func (self *TypeSpecBase) GetLinkedItems() []si.IBaseDeclaredType

func (*TypeSpecBase) GetName

func (self *TypeSpecBase) GetName() string

func (*TypeSpecBase) GetNextTypeSpec

func (self *TypeSpecBase) GetNextTypeSpec() (si.ITypeSpec, error)

func (*TypeSpecBase) IsDefined

func (self *TypeSpecBase) IsDefined() bool

func (*TypeSpecBase) IsPrimitive

func (self *TypeSpecBase) IsPrimitive() bool
func (self *TypeSpecBase) Link(placeHolder si.IDeclaredTypePlaceHolder) error

func (*TypeSpecBase) Local

func (self *TypeSpecBase) Local() bool

func (*TypeSpecBase) SetName

func (self *TypeSpecBase) SetName(name string)

func (*TypeSpecBase) SetNextTypeSpec

func (self *TypeSpecBase) SetNextTypeSpec(next si.ITypeSpec) error

func (*TypeSpecBase) UsageCount

func (self *TypeSpecBase) UsageCount() int

type ValueAbsoluteDefinitionFlags

type ValueAbsoluteDefinitionFlags uint8
const (
	VADNone                                 = 0
	VADForward ValueAbsoluteDefinitionFlags = 1 << iota
	VADAbstract
)

type ValueInheritanceSpec

type ValueInheritanceSpec struct {
	FileInformationBase
}

type WideStringType

type WideStringType struct {
	TypeSpecBase
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL