Documentation
¶
Index ¶
- Constants
- Variables
- func Frontend(src string, force bool) (javaparser.ICompilationUnitContext, error)
- func ShowJavaCompilingCost()
- func TypeAddBracketLevel(typ ssa.Type, level int) ssa.Type
- type AnnotationDescription
- type HookMemberCallMethodFunc
- type HookReturnFunc
- type Ithrows
- type JavaFramework
- type JavaSwitchLabel
- type SSABuilder
- func (*SSABuilder) BuildFromAST(raw ssa.FrontAST, b *ssa.FunctionBuilder) error
- func (s *SSABuilder) Create() ssa.Builder
- func (*SSABuilder) FilterFile(path string) bool
- func (*SSABuilder) FilterPreHandlerFile(path string) bool
- func (*SSABuilder) GetLanguage() consts.Language
- func (*SSABuilder) ParseAST(src string) (ssa.FrontAST, error)
- func (s *SSABuilder) PreHandlerFile(ast ssa.FrontAST, editor *memedit.MemEditor, builder *ssa.FunctionBuilder)
- func (s *SSABuilder) PreHandlerProject(fileSystem fi.FileSystem, ast ssa.FrontAST, fb *ssa.FunctionBuilder, ...) error
Constants ¶
View Source
const ( SERVLET_PATH = "javax.servlet" SERVLET_REQUEST_DISPATHCE = "getRequestDispatcher" SERVLET_TEMPLATE_PREFIX = "webapp" )
View Source
const ( SPRING_PATH = "org.springframework" SPRING_UI_MODEL_NAME = "org.springframework.ui.Model" )
View Source
const ( FrameworkSupportJAVAEE = "java_ee" FrameworkSupportSpringBoot = "spring_boot" )
View Source
const FRAMEWORK_DEFAULT_CLASSPATH = "src/main"
Variables ¶
View Source
var Builder ssa.Builder = &SSABuilder{}
View Source
var INNER_CLASS_SPLIT = "$"
View Source
var ServletAnnotationMap = map[string]bool{ "HandlesTypes": true, "HttpConstraint": true, "HttpMethodConstraint": true, "MultipartConfig": true, "ServletSecurity": true, "WebFilter": true, "WebInitParam": true, "WebListener": true, "WebServlet": true, }
View Source
var SpringFrameworkAnnotationMap = map[string]bool{ "CrossOrigin": true, "InitBinder": true, "ExceptionHandlerReflectiveProcessor": true, "RequestBody": true, "PathVariable": true, "package-info": true, "ModelAttribute": true, "RequestAttribute": true, "RequestHeader": true, "ExceptionHandler": true, "ControllerMappingReflectiveProcessor": true, "GetMapping": true, "Mapping": true, "MatrixVariable": true, "DeleteMapping": true, "CookieValue": true, "BindParam": true, "PostMapping": true, "PutMapping": true, "ControllerAdvice": true, "PatchMapping": true, "RequestMapping": true, "RequestMethod": true, "RequestParam": true, "RequestPart": true, "ResponseBody": true, "ResponseStatus": true, "RestController": true, "RestControllerAdvice": true, "SessionAttribute": true, "SessionAttributes": true, "ValueConstants": true, }
Functions ¶
func Frontend ¶ added in v1.3.2
func Frontend(src string, force bool) (javaparser.ICompilationUnitContext, error)
func ShowJavaCompilingCost ¶
func ShowJavaCompilingCost()
Types ¶
type AnnotationDescription ¶
type AnnotationDescription struct {
Name string
}
type HookReturnFunc ¶
type Ithrows ¶
type Ithrows interface {
THROWS() antlr.TerminalNode
QualifiedNameList() javaparser.IQualifiedNameListContext
}
type JavaFramework ¶
type JavaFramework struct {
// contains filtered or unexported fields
}
type JavaSwitchLabel ¶
type JavaSwitchLabel string
const ( CASE JavaSwitchLabel = "case" DEFAULT = "default" )
type SSABuilder ¶ added in v1.3.3
type SSABuilder struct {
*ssa.PreHandlerInit
}
func (*SSABuilder) BuildFromAST ¶
func (*SSABuilder) BuildFromAST(raw ssa.FrontAST, b *ssa.FunctionBuilder) error
func (*SSABuilder) Create ¶
func (s *SSABuilder) Create() ssa.Builder
func (*SSABuilder) FilterFile ¶ added in v1.3.3
func (*SSABuilder) FilterFile(path string) bool
func (*SSABuilder) FilterPreHandlerFile ¶
func (*SSABuilder) FilterPreHandlerFile(path string) bool
func (*SSABuilder) GetLanguage ¶
func (*SSABuilder) GetLanguage() consts.Language
func (*SSABuilder) PreHandlerFile ¶
func (s *SSABuilder) PreHandlerFile(ast ssa.FrontAST, editor *memedit.MemEditor, builder *ssa.FunctionBuilder)
func (*SSABuilder) PreHandlerProject ¶
func (s *SSABuilder) PreHandlerProject(fileSystem fi.FileSystem, ast ssa.FrontAST, fb *ssa.FunctionBuilder, path string) error
Source Files
¶
- Visit_Object.go
- blueprint.go
- builder.go
- builder_prehandler.go
- java_framework_java_ee.go
- java_framework_spring_boot.go
- java_framework_support.go
- java_full_type_name.go
- profile.go
- range.go
- visit_entry.go
- visit_import.go
- visit_interface.go
- visit_java9_module.go
- visit_literal.go
- visit_modifier.go
- visit_package_n_class.go
- visit_stmt_block_expr.go
Click to show internal directories.
Click to hide internal directories.