Documentation ¶
Index ¶
- func BuildMethodCallLocation(jMethodCall *core_domain.CodeCall, ctx *parser.MethodCallContext, ...)
- func BuildMethodCallMethod(jMethodCall *core_domain.CodeCall, callee string, targetType string, ...)
- func BuildMethodCallParameters(jMethodCall *core_domain.CodeCall, ctx *parser.MethodCallContext)
- func BuildMethodParameters(parameters parser.IFormalParametersContext) []core_domain.CodeProperty
- func BuildPosition(ctx *antlr.BaseParserRuleContext, nodeName string) core_domain.CodePosition
- func BuildTypeCtxByIndex(typeType *parser.TypeTypeContext, typeCtx *parser.ClassOrInterfaceTypeContext, ...) *parser.ClassOrInterfaceTypeContext
- func HandleEmptyFullType(ctx *parser.MethodCallContext, targetType string, methodName string, ...) (string, string)
- func ParseTargetType(targetCtx string) string
- func ProcessJavaFile(path string) *parser.JavaParser
- func ProcessJavaString(code string) *parser.JavaParser
- func RemoveTarget(fullType string) string
- func WarpTargetFullType(targetType string) (string, string)
- type JavaFullListener
- func (s *JavaFullListener) AppendClasses(classes []string)
- func (s *JavaFullListener) EnterAnnotation(ctx *parser.AnnotationContext)
- func (s *JavaFullListener) EnterClassDeclaration(ctx *parser.ClassDeclarationContext)
- func (s *JavaFullListener) EnterConstructorDeclaration(ctx *parser.ConstructorDeclarationContext)
- func (s *JavaFullListener) EnterCreator(ctx *parser.CreatorContext)
- func (s *JavaFullListener) EnterExpression(ctx *parser.ExpressionContext)
- func (s *JavaFullListener) EnterFieldDeclaration(ctx *parser.FieldDeclarationContext)
- func (s *JavaFullListener) EnterFormalParameter(ctx *parser.FormalParameterContext)
- func (s *JavaFullListener) EnterImportDeclaration(ctx *parser.ImportDeclarationContext)
- func (s *JavaFullListener) EnterInnerCreator(ctx *parser.InnerCreatorContext)
- func (s *JavaFullListener) EnterInterfaceBodyDeclaration(ctx *parser.InterfaceBodyDeclarationContext)
- func (s *JavaFullListener) EnterInterfaceDeclaration(ctx *parser.InterfaceDeclarationContext)
- func (s *JavaFullListener) EnterInterfaceMethodDeclaration(ctx *parser.InterfaceMethodDeclarationContext)
- func (s *JavaFullListener) EnterLocalVariableDeclaration(ctx *parser.LocalVariableDeclarationContext)
- func (s *JavaFullListener) EnterMethodCall(ctx *parser.MethodCallContext)
- func (s *JavaFullListener) EnterMethodDeclaration(ctx *parser.MethodDeclarationContext)
- func (s *JavaFullListener) EnterPackageDeclaration(ctx *parser.PackageDeclarationContext)
- func (s *JavaFullListener) ExitClassBody(ctx *parser.ClassBodyContext)
- func (s *JavaFullListener) ExitConstructorDeclaration(ctx *parser.ConstructorDeclarationContext)
- func (s *JavaFullListener) ExitCreator(ctx *parser.CreatorContext)
- func (s *JavaFullListener) ExitInnerCreator(ctx *parser.InnerCreatorContext)
- func (s *JavaFullListener) ExitInterfaceBody(ctx *parser.InterfaceBodyContext)
- func (s *JavaFullListener) ExitMethodDeclaration(ctx *parser.MethodDeclarationContext)
- func (s *JavaFullListener) GetNodeInfo() []core_domain.CodeDataStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildMethodCallLocation ¶
func BuildMethodCallLocation(jMethodCall *core_domain.CodeCall, ctx *parser.MethodCallContext, callee string)
func BuildMethodCallMethod ¶
func BuildMethodCallMethod(jMethodCall *core_domain.CodeCall, callee string, targetType string, ctx *parser.MethodCallContext)
func BuildMethodCallParameters ¶
func BuildMethodCallParameters(jMethodCall *core_domain.CodeCall, ctx *parser.MethodCallContext)
func BuildMethodParameters ¶
func BuildMethodParameters(parameters parser.IFormalParametersContext) []core_domain.CodeProperty
func BuildPosition ¶
func BuildPosition(ctx *antlr.BaseParserRuleContext, nodeName string) core_domain.CodePosition
func BuildTypeCtxByIndex ¶
func BuildTypeCtxByIndex(typeType *parser.TypeTypeContext, typeCtx *parser.ClassOrInterfaceTypeContext, index int) *parser.ClassOrInterfaceTypeContext
func HandleEmptyFullType ¶
func ParseTargetType ¶
func ProcessJavaFile ¶
func ProcessJavaFile(path string) *parser.JavaParser
func ProcessJavaString ¶
func ProcessJavaString(code string) *parser.JavaParser
func RemoveTarget ¶
func WarpTargetFullType ¶
Types ¶
type JavaFullListener ¶
type JavaFullListener struct {
parser.BaseJavaParserListener
}
func NewJavaFullListener ¶
func NewJavaFullListener(nodes map[string]core_domain.CodeDataStruct, file string) *JavaFullListener
func (*JavaFullListener) AppendClasses ¶
func (s *JavaFullListener) AppendClasses(classes []string)
func (*JavaFullListener) EnterAnnotation ¶
func (s *JavaFullListener) EnterAnnotation(ctx *parser.AnnotationContext)
func (*JavaFullListener) EnterClassDeclaration ¶
func (s *JavaFullListener) EnterClassDeclaration(ctx *parser.ClassDeclarationContext)
func (*JavaFullListener) EnterConstructorDeclaration ¶
func (s *JavaFullListener) EnterConstructorDeclaration(ctx *parser.ConstructorDeclarationContext)
func (*JavaFullListener) EnterCreator ¶
func (s *JavaFullListener) EnterCreator(ctx *parser.CreatorContext)
func (*JavaFullListener) EnterExpression ¶
func (s *JavaFullListener) EnterExpression(ctx *parser.ExpressionContext)
func (*JavaFullListener) EnterFieldDeclaration ¶
func (s *JavaFullListener) EnterFieldDeclaration(ctx *parser.FieldDeclarationContext)
func (*JavaFullListener) EnterFormalParameter ¶
func (s *JavaFullListener) EnterFormalParameter(ctx *parser.FormalParameterContext)
func (*JavaFullListener) EnterImportDeclaration ¶
func (s *JavaFullListener) EnterImportDeclaration(ctx *parser.ImportDeclarationContext)
func (*JavaFullListener) EnterInnerCreator ¶
func (s *JavaFullListener) EnterInnerCreator(ctx *parser.InnerCreatorContext)
TODO: add inner creator examples
func (*JavaFullListener) EnterInterfaceBodyDeclaration ¶
func (s *JavaFullListener) EnterInterfaceBodyDeclaration(ctx *parser.InterfaceBodyDeclarationContext)
func (*JavaFullListener) EnterInterfaceDeclaration ¶
func (s *JavaFullListener) EnterInterfaceDeclaration(ctx *parser.InterfaceDeclarationContext)
func (*JavaFullListener) EnterInterfaceMethodDeclaration ¶
func (s *JavaFullListener) EnterInterfaceMethodDeclaration(ctx *parser.InterfaceMethodDeclarationContext)
func (*JavaFullListener) EnterLocalVariableDeclaration ¶
func (s *JavaFullListener) EnterLocalVariableDeclaration(ctx *parser.LocalVariableDeclarationContext)
func (*JavaFullListener) EnterMethodCall ¶
func (s *JavaFullListener) EnterMethodCall(ctx *parser.MethodCallContext)
func (*JavaFullListener) EnterMethodDeclaration ¶
func (s *JavaFullListener) EnterMethodDeclaration(ctx *parser.MethodDeclarationContext)
func (*JavaFullListener) EnterPackageDeclaration ¶
func (s *JavaFullListener) EnterPackageDeclaration(ctx *parser.PackageDeclarationContext)
func (*JavaFullListener) ExitClassBody ¶
func (s *JavaFullListener) ExitClassBody(ctx *parser.ClassBodyContext)
func (*JavaFullListener) ExitConstructorDeclaration ¶
func (s *JavaFullListener) ExitConstructorDeclaration(ctx *parser.ConstructorDeclarationContext)
func (*JavaFullListener) ExitCreator ¶
func (s *JavaFullListener) ExitCreator(ctx *parser.CreatorContext)
func (*JavaFullListener) ExitInnerCreator ¶
func (s *JavaFullListener) ExitInnerCreator(ctx *parser.InnerCreatorContext)
TODO: add inner creator examples
func (*JavaFullListener) ExitInterfaceBody ¶
func (s *JavaFullListener) ExitInterfaceBody(ctx *parser.InterfaceBodyContext)
func (*JavaFullListener) ExitMethodDeclaration ¶
func (s *JavaFullListener) ExitMethodDeclaration(ctx *parser.MethodDeclarationContext)
func (*JavaFullListener) GetNodeInfo ¶
func (s *JavaFullListener) GetNodeInfo() []core_domain.CodeDataStruct
Source Files ¶
Click to show internal directories.
Click to hide internal directories.