ast

package
v0.0.0-...-3cc16ec Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2016 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package ast contains syntax tree for plantuml and internal use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Class

type Class struct {
	Name      string
	Methods   []*Method
	Fields    []*Field
	Relations []*Relation
	Pos       SourcePos
}

type ClassSlice

type ClassSlice []*Class

func (ClassSlice) Len

func (p ClassSlice) Len() int

func (ClassSlice) Less

func (p ClassSlice) Less(i, j int) bool

func (ClassSlice) Sort

func (p ClassSlice) Sort()

func (ClassSlice) Swap

func (p ClassSlice) Swap(i, j int)

type DeclPair

type DeclPair struct {
	Name string
	Type string
}

type Field

type Field struct {
	Name         string
	Type         string
	Multiplicity string
	Public       bool
}

type Interface

type Interface struct {
	Name      string
	Methods   []*Method
	Relations []*Relation
}

type InterfaceSlice

type InterfaceSlice []*Interface

func (InterfaceSlice) Len

func (p InterfaceSlice) Len() int

func (InterfaceSlice) Less

func (p InterfaceSlice) Less(i, j int) bool

func (InterfaceSlice) Sort

func (p InterfaceSlice) Sort()

func (InterfaceSlice) Swap

func (p InterfaceSlice) Swap(i, j int)

type Method

type Method struct {
	Name      string
	Arguments []DeclPair
	Results   []DeclPair
	Public    bool
}

type Package

type Package struct {
	Name       string
	Classes    []*Class
	Interfaces []*Interface
}

func NewPackage

func NewPackage(name string) *Package

type PackageSlice

type PackageSlice []*Package

func (PackageSlice) Len

func (p PackageSlice) Len() int

func (PackageSlice) Less

func (p PackageSlice) Less(i, j int) bool

func (PackageSlice) Sort

func (p PackageSlice) Sort()

func (PackageSlice) Swap

func (p PackageSlice) Swap(i, j int)

type Relation

type Relation struct {
	Target       string
	RelType      RelationType
	Label        string
	Multiplicity string
}

type RelationSlice

type RelationSlice []*Relation

func (RelationSlice) Len

func (p RelationSlice) Len() int

func (RelationSlice) Less

func (p RelationSlice) Less(i, j int) bool

func (RelationSlice) Sort

func (p RelationSlice) Sort()

func (RelationSlice) Swap

func (p RelationSlice) Swap(i, j int)

type RelationType

type RelationType string
const (
	Association    RelationType = "association"
	Extension      RelationType = "extension"
	Composition    RelationType = "composition"
	Agregation     RelationType = "agregation"
	Implementation RelationType = "implementation"
)

type Scope

type Scope struct {
	Packages map[string]*Package
}

func NewScope

func NewScope() *Scope

type SourcePos

type SourcePos string

SourcePos is source file position as `file:#start,#end` form. For more details, see http://golang.org/s/oracle-user-manual

Jump to

Keyboard shortcuts

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