Documentation
¶
Index ¶
- type AddExpr
- type AndBitwiseExpr
- type AndLogicalExpr
- type AssertStmt
- type BaseTop
- type BasicBlock
- type BinaryExpr
- func (e *BinaryExpr) GetAnOperand() *Expr
- func (e *BinaryExpr) GetKind() int
- func (e *BinaryExpr) GetLeftOperand() *Expr
- func (e *BinaryExpr) GetLeftOperandString() string
- func (e *BinaryExpr) GetOp() string
- func (e *BinaryExpr) GetRightOperand() *Expr
- func (e *BinaryExpr) GetRightOperandString() string
- func (e *BinaryExpr) HasOperands(expr1, expr2 *Expr) bool
- func (e *BinaryExpr) ToString() string
- type BlockStmt
- func (blockStmt *BlockStmt) GetAPrimaryQlClass() string
- func (blockStmt *BlockStmt) GetAStmt() Stmt
- func (blockStmt *BlockStmt) GetHalsteadID() int
- func (blockStmt *BlockStmt) GetLastStmt() Stmt
- func (blockStmt *BlockStmt) GetNumStmt() int
- func (blockStmt *BlockStmt) GetPP() string
- func (blockStmt *BlockStmt) GetStmt(index int) Stmt
- func (blockStmt *BlockStmt) ToString() string
- type BreakStmt
- type Callable
- type ClassInstanceExpr
- type ComparisonExpr
- type CompilationUnit
- type ConditionalStmt
- type Container
- type ContinueStmt
- type ControlFlowNode
- type Directive
- type DivExpr
- type DoStmt
- type EqExpr
- type Expr
- type ExprParent
- type File
- type ForStmt
- type GEExpr
- type GTExpr
- type IAssertStmt
- type IBlockStmt
- type IBreakStmt
- type IConditionalStmt
- type IContinueStmt
- type IDoStmt
- type IForStmt
- type IIfStmt
- type IJumpStmt
- type ILabeledStmt
- type IReturnStmt
- type IStmt
- type IWhileStmt
- type IYieldStmt
- type IfStmt
- type JarFile
- func (j *JarFile) GetAPrimaryQlClass() string
- func (j *JarFile) GetImplementationVersion() string
- func (j *JarFile) GetJarFile() string
- func (j *JarFile) GetManifestEntryAttributes(entry, key string) (string, bool)
- func (j *JarFile) GetManifestMainAttributes(key string) (string, bool)
- func (j *JarFile) GetSpecificationVersion() string
- type Javadoc
- func (j *Javadoc) GetCommentAuthor() string
- func (j *Javadoc) GetCommentParam() []string
- func (j *Javadoc) GetCommentReturn() string
- func (j *Javadoc) GetCommentSee() string
- func (j *Javadoc) GetCommentSince() string
- func (j *Javadoc) GetCommentThrows() string
- func (j *Javadoc) GetCommentVersion() string
- type JavadocTag
- type JumpStmt
- type LEExpr
- type LTExpr
- type LabeledStmt
- type LeftShiftExpr
- type Location
- type Module
- type MulExpr
- type NEExpr
- type OrBitwiseExpr
- type OrLogicalExpr
- type Package
- type RemExpr
- type ReturnStmt
- type RightShiftExpr
- type Stmt
- type StmtParent
- type SubExpr
- type Top
- type UnsignedRightShiftExpr
- type WhileStmt
- type XorBitwiseExpr
- type YieldStmt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddExpr ¶
type AddExpr struct {
BinaryExpr
// contains filtered or unexported fields
}
type AndBitwiseExpr ¶
type AndBitwiseExpr struct {
BinaryExpr
// contains filtered or unexported fields
}
func (*AndBitwiseExpr) GetOp ¶
func (e *AndBitwiseExpr) GetOp() string
type AndLogicalExpr ¶
type AndLogicalExpr struct {
BinaryExpr
// contains filtered or unexported fields
}
func (*AndLogicalExpr) GetOp ¶
func (e *AndLogicalExpr) GetOp() string
type AssertStmt ¶
func (*AssertStmt) GetAPrimaryQlClass ¶
func (assertStmt *AssertStmt) GetAPrimaryQlClass() string
func (*AssertStmt) GetExpr ¶
func (assertStmt *AssertStmt) GetExpr() *Expr
func (*AssertStmt) GetHalsteadID ¶
func (assertStmt *AssertStmt) GetHalsteadID() int
func (*AssertStmt) GetMessage ¶
func (assertStmt *AssertStmt) GetMessage() *Expr
func (*AssertStmt) GetPP ¶
func (assertStmt *AssertStmt) GetPP() string
func (*AssertStmt) ToString ¶
func (assertStmt *AssertStmt) ToString() string
type BaseTop ¶
type BaseTop interface {
GetAPrimaryQlClass() string
GetFile() string
GetLocation() Location
GetNumberOfCommentLines() int
GetNumberOfLinesOfCode() int
GetPrimaryQlClasses() string
GetTotalNumberOfLines() int
HasLocationInfo(filepath string, startline, startcolumn, endline, endcolumn int) bool
ToString() string
}
type BasicBlock ¶
type BasicBlock struct {
ControlFlowNode
}
type BinaryExpr ¶
func (*BinaryExpr) GetAnOperand ¶
func (e *BinaryExpr) GetAnOperand() *Expr
func (*BinaryExpr) GetKind ¶
func (e *BinaryExpr) GetKind() int
func (*BinaryExpr) GetLeftOperand ¶
func (e *BinaryExpr) GetLeftOperand() *Expr
func (*BinaryExpr) GetLeftOperandString ¶
func (e *BinaryExpr) GetLeftOperandString() string
func (*BinaryExpr) GetOp ¶
func (e *BinaryExpr) GetOp() string
func (*BinaryExpr) GetRightOperand ¶
func (e *BinaryExpr) GetRightOperand() *Expr
func (*BinaryExpr) GetRightOperandString ¶
func (e *BinaryExpr) GetRightOperandString() string
func (*BinaryExpr) HasOperands ¶
func (e *BinaryExpr) HasOperands(expr1, expr2 *Expr) bool
func (*BinaryExpr) ToString ¶
func (e *BinaryExpr) ToString() string
type BlockStmt ¶
func (*BlockStmt) GetAPrimaryQlClass ¶
func (*BlockStmt) GetHalsteadID ¶
func (*BlockStmt) GetLastStmt ¶
func (*BlockStmt) GetNumStmt ¶
type Callable ¶
type Callable struct {
StmtParent
CallableName string
}
type ClassInstanceExpr ¶
func (*ClassInstanceExpr) GetArg ¶
func (e *ClassInstanceExpr) GetArg(i int) *Expr
func (*ClassInstanceExpr) GetArgs ¶
func (e *ClassInstanceExpr) GetArgs() []*Expr
func (*ClassInstanceExpr) GetClassName ¶
func (e *ClassInstanceExpr) GetClassName() string
func (*ClassInstanceExpr) GetNumArgs ¶
func (e *ClassInstanceExpr) GetNumArgs() int
func (*ClassInstanceExpr) String ¶
func (e *ClassInstanceExpr) String() string
type ComparisonExpr ¶
type ComparisonExpr struct {
BinaryExpr
}
func (*ComparisonExpr) GetGreaterThanOperand ¶
func (e *ComparisonExpr) GetGreaterThanOperand() *Expr
func (*ComparisonExpr) GetLessThanOperand ¶
func (e *ComparisonExpr) GetLessThanOperand() *Expr
func (*ComparisonExpr) IsStrict ¶
func (e *ComparisonExpr) IsStrict() bool
type CompilationUnit ¶
type CompilationUnit struct {
File
CuPackage Package
Name string
// contains filtered or unexported fields
}
func (*CompilationUnit) GetAPrimaryQlClass ¶
func (c *CompilationUnit) GetAPrimaryQlClass() string
func (*CompilationUnit) GetModule ¶
func (c *CompilationUnit) GetModule() Module
func (*CompilationUnit) GetName ¶
func (c *CompilationUnit) GetName() string
func (*CompilationUnit) GetPackage ¶
func (c *CompilationUnit) GetPackage() Package
func (*CompilationUnit) HasName ¶
func (c *CompilationUnit) HasName(name string) bool
func (*CompilationUnit) ToString ¶
func (c *CompilationUnit) ToString() string
type ConditionalStmt ¶
type ContinueStmt ¶
func (*ContinueStmt) GetAPrimaryQlClass ¶
func (continueStmt *ContinueStmt) GetAPrimaryQlClass() string
func (*ContinueStmt) GetHalsteadID ¶
func (continueStmt *ContinueStmt) GetHalsteadID() int
func (*ContinueStmt) GetLabel ¶
func (continueStmt *ContinueStmt) GetLabel() string
func (*ContinueStmt) GetPP ¶
func (continueStmt *ContinueStmt) GetPP() string
func (*ContinueStmt) ToString ¶
func (continueStmt *ContinueStmt) ToString() string
type ControlFlowNode ¶
type ControlFlowNode struct {
Top
}
type DivExpr ¶
type DivExpr struct {
BinaryExpr
// contains filtered or unexported fields
}
type DoStmt ¶
type DoStmt struct {
ConditionalStmt
}
type EqExpr ¶
type EqExpr struct {
BinaryExpr
// contains filtered or unexported fields
}
type Expr ¶
func (*Expr) GetAChildExpr ¶
func (*Expr) GetBoolValue ¶
func (e *Expr) GetBoolValue()
func (*Expr) GetChildExpr ¶
func (*Expr) GetNumChildExpr ¶
type ExprParent ¶
type ExprParent struct{}
func (*ExprParent) GetAChildExpr ¶
func (e *ExprParent) GetAChildExpr() *Expr
func (*ExprParent) GetChildExpr ¶
func (e *ExprParent) GetChildExpr(_ int) *Expr
func (*ExprParent) GetNumChildExpr ¶
func (e *ExprParent) GetNumChildExpr() int64
type File ¶
func (*File) GetAPrimaryQlClass ¶
func (*File) IsJavaSourceFile ¶
func (*File) IsKotlinSourceFile ¶
func (*File) IsSourceFile ¶
type ForStmt ¶
type ForStmt struct {
ConditionalStmt
Init *Expr
Increment *Expr
}
func (*ForStmt) GetAnUpdate ¶
func (*ForStmt) GetCondition ¶
func (*ForStmt) GetPrimaryQlClass ¶
type GEExpr ¶
type GEExpr struct {
BinaryExpr
// contains filtered or unexported fields
}
type GTExpr ¶
type GTExpr struct {
BinaryExpr
// contains filtered or unexported fields
}
type IAssertStmt ¶
type IBlockStmt ¶
type IBreakStmt ¶
type IConditionalStmt ¶
type IConditionalStmt interface {
GetCondition() *Expr
}
type IContinueStmt ¶
type IJumpStmt ¶
type IJumpStmt interface {
GetTarget() *StmtParent
GetTargetLabel() *LabeledStmt
}
type ILabeledStmt ¶
type ILabeledStmt interface {
GetAPrimaryQlClass() string
GetHalsteadID() int
GetLabel() *LabeledStmt
GetPP() string
ToString() string
}
type IReturnStmt ¶
type IStmt ¶
type IStmt interface {
GetAChildStmt() *Stmt
GetBasicBlock() *BasicBlock
GetCompilationUnit() *CompilationUnit
GetControlFlowNode() *ControlFlowNode
GetEnclosingCallable() *Callable
GetEnclosingStmt() *Stmt
GetHalsteadID() int
GetIndex() int
GetMetrics() interface{}
GetParent() *Stmt
IsNthChildOf(parent *Stmt, n int) bool
Pp() string
ToString() string
}
type IWhileStmt ¶
type IYieldStmt ¶
type IfStmt ¶
type IfStmt struct {
ConditionalStmt
Else Stmt
Then Stmt
}
func (*IfStmt) GetAPrimaryQlClass ¶
func (*IfStmt) GetCondition ¶
type JarFile ¶
type JarFile struct {
File
JarFile string
ImplementationVersion string
ManifestEntryAttributes map[string]map[string]string
ManifestMainAttributes map[string]string
SpecificationVersion string
}
func (*JarFile) GetAPrimaryQlClass ¶
func (*JarFile) GetImplementationVersion ¶
func (*JarFile) GetJarFile ¶
func (*JarFile) GetManifestEntryAttributes ¶
func (*JarFile) GetManifestMainAttributes ¶
func (*JarFile) GetSpecificationVersion ¶
type Javadoc ¶
type Javadoc struct {
Tags []*JavadocTag
NumberOfCommentLines int
CommentedCodeElements string
Version string // redundant from tags
Author string // redundant from tags
}
func (*Javadoc) GetCommentAuthor ¶
func (*Javadoc) GetCommentParam ¶
func (*Javadoc) GetCommentReturn ¶
func (*Javadoc) GetCommentSee ¶
func (*Javadoc) GetCommentSince ¶
func (*Javadoc) GetCommentThrows ¶
func (*Javadoc) GetCommentVersion ¶
type JavadocTag ¶
JavadocTag represents a generic Javadoc tag.
func NewJavadocTag ¶
func NewJavadocTag(tagName, text, docType string) *JavadocTag
NewJavadocTag is a constructor for JavadocTag.
type LEExpr ¶
type LEExpr struct {
BinaryExpr
// contains filtered or unexported fields
}
type LTExpr ¶
type LTExpr struct {
BinaryExpr
// contains filtered or unexported fields
}
type LabeledStmt ¶
type LabeledStmt struct {
Stmt
Label *LabeledStmt
}
type LeftShiftExpr ¶
type LeftShiftExpr struct {
BinaryExpr
// contains filtered or unexported fields
}
func (*LeftShiftExpr) GetOp ¶
func (e *LeftShiftExpr) GetOp() string
type Module ¶
type Module struct {
Cu *CompilationUnit
Di Directive
Name string
// contains filtered or unexported fields
}
func (*Module) GetACompilationUnit ¶
func (m *Module) GetACompilationUnit() *CompilationUnit
func (*Module) GetAPrimaryQlClass ¶
func (*Module) GetDirective ¶
type MulExpr ¶
type MulExpr struct {
BinaryExpr
// contains filtered or unexported fields
}
type NEExpr ¶
type NEExpr struct {
BinaryExpr
// contains filtered or unexported fields
}
type OrBitwiseExpr ¶
type OrBitwiseExpr struct {
BinaryExpr
// contains filtered or unexported fields
}
func (*OrBitwiseExpr) GetOp ¶
func (e *OrBitwiseExpr) GetOp() string
type OrLogicalExpr ¶
type OrLogicalExpr struct {
BinaryExpr
// contains filtered or unexported fields
}
func (*OrLogicalExpr) GetOp ¶
func (e *OrLogicalExpr) GetOp() string
type RemExpr ¶
type RemExpr struct {
BinaryExpr
// contains filtered or unexported fields
}
type ReturnStmt ¶
func (*ReturnStmt) GetAPrimaryQlClass ¶
func (returnStmt *ReturnStmt) GetAPrimaryQlClass() string
func (*ReturnStmt) GetHalsteadID ¶
func (returnStmt *ReturnStmt) GetHalsteadID() int
func (*ReturnStmt) GetPP ¶
func (returnStmt *ReturnStmt) GetPP() string
func (*ReturnStmt) GetResult ¶
func (returnStmt *ReturnStmt) GetResult() *Expr
func (*ReturnStmt) ToString ¶
func (returnStmt *ReturnStmt) ToString() string
type RightShiftExpr ¶
type RightShiftExpr struct {
BinaryExpr
// contains filtered or unexported fields
}
func (*RightShiftExpr) GetOp ¶
func (e *RightShiftExpr) GetOp() string
type Stmt ¶
type Stmt struct {
NodeString string
StmtParent
}
type StmtParent ¶
type StmtParent struct {
Top
}
type SubExpr ¶
type SubExpr struct {
BinaryExpr
// contains filtered or unexported fields
}
type UnsignedRightShiftExpr ¶
type UnsignedRightShiftExpr struct {
BinaryExpr
// contains filtered or unexported fields
}
func (*UnsignedRightShiftExpr) GetOp ¶
func (e *UnsignedRightShiftExpr) GetOp() string
type WhileStmt ¶
type WhileStmt struct {
ConditionalStmt
}
func (*WhileStmt) GetAPrimaryQlClass ¶
func (*WhileStmt) GetCondition ¶
func (*WhileStmt) GetHalsteadID ¶
type XorBitwiseExpr ¶
type XorBitwiseExpr struct {
BinaryExpr
// contains filtered or unexported fields
}
func (*XorBitwiseExpr) GetOp ¶
func (e *XorBitwiseExpr) GetOp() string
type YieldStmt ¶
TODO: Implement the SwitchStmt Expr.
func (*YieldStmt) GetAPrimaryQlClass ¶
func (*YieldStmt) GetHalsteadID ¶
Click to show internal directories.
Click to hide internal directories.