Skip to content

SpringParser

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/libs/parser-core/src/parsers/backend/spring.parser.ts

Implements: IParser

Methods

MethodSignatureReturns
initializeinitialize(config: ParserConfig)Promise<void>
canParsecanParse(filePath: string)boolean
parseFileparseFile(filePath: string, content: string)Promise<ParseResult>
parseFilesparseFiles(files: ParseFileInput[])Promise<ParseResult[]>
destroydestroy()Promise<void>

Properties

PropertyType
nameany
versionany
supportedPatternsany

Where it refuses work

  • SpringParser stops the work with an early return when !source.trim().
  • SpringParser stops the work with an early return when !/\borg\.springframework\b|@(?:Rest)?Controller|@Entity|@RequestMapping/.test(source).

When something fails

  • SpringParser handles failure in 1 place: it turns it into a return value in all 1.

Was this page helpful?

Download as PDF