Documentation ¶
Index ¶
- Constants
- type ClassExtras
- type ClassField
- type ClassInfo
- type Extractor
- func (extractor *Extractor) ExtractCalls(units []*core.Unit) ([]*object.Call, error)
- func (extractor *Extractor) ExtractClass(unit *core.Unit) (*object.Clazz, error)
- func (extractor *Extractor) ExtractClasses(units []*core.Unit) ([]*object.Clazz, error)
- func (extractor *Extractor) ExtractFunction(unit *core.Unit) (*object.Function, error)
- func (extractor *Extractor) ExtractFunctions(units []*core.Unit) ([]*object.Function, error)
- func (extractor *Extractor) ExtractSymbols(units []*core.Unit) ([]*object.Symbol, error)
- func (extractor *Extractor) GetLang() core.LangType
- func (extractor *Extractor) IsCall(unit *core.Unit) bool
- func (extractor *Extractor) IsClass(unit *core.Unit) bool
- func (extractor *Extractor) IsFunction(unit *core.Unit) bool
- func (extractor *Extractor) IsSymbol(unit *core.Unit) bool
- type FunctionExtras
Constants ¶
View Source
const ( KindJavaProgram core.KindRepr = "program" KindJavaProgramDeclaration core.KindRepr = "package_declaration" KindJavaScopeIdentifier core.KindRepr = "scoped_identifier" KindJavaIdentifier core.KindRepr = "identifier" KindJavaClassDeclaration core.KindRepr = "class_declaration" KindJavaEnumDeclaration core.KindRepr = "enum_declaration" KindJavaInterfaceDeclaration core.KindRepr = "interface_declaration" KindJavaMethodDeclaration core.KindRepr = "method_declaration" KindJavaFormalParameters core.KindRepr = "formal_parameters" KindJavaFormalParameter core.KindRepr = "formal_parameter" KindJavaMethodInvocation core.KindRepr = "method_invocation" KindJavaModifiers core.KindRepr = "modifiers" KindJavaAnnotation core.KindRepr = "annotation" KindJavaMarkerAnnotation core.KindRepr = "marker_annotation" KindJavaBlock core.KindRepr = "block" FieldJavaType core.KindRepr = "type" FieldJavaDimensions core.KindRepr = "dimensions" FieldJavaObject core.KindRepr = "object" FieldJavaName core.KindRepr = "name" FieldJavaArguments core.KindRepr = "arguments" )
https://github.com/tree-sitter/tree-sitter-java/tree/master/src/node-types.json
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClassExtras ¶
type ClassExtras struct { Annotations []string `json:"annotations"` Fields []*ClassField `json:"fields"` }
type ClassField ¶
type Extractor ¶
type Extractor struct { }
func (*Extractor) ExtractCalls ¶
func (*Extractor) ExtractClass ¶
func (*Extractor) ExtractClasses ¶
func (*Extractor) ExtractFunction ¶
func (*Extractor) ExtractFunctions ¶
func (*Extractor) ExtractSymbols ¶
type FunctionExtras ¶
type FunctionExtras struct { Annotations []string `json:"annotations"` ClassInfo *ClassInfo `json:"classInfo"` }
FunctionExtras JavaFunctionExtras
Click to show internal directories.
Click to hide internal directories.