Data Structures

Delegates

Services

GenerateAstService

Description

API

  • apply(Path pathAppendable appendable)

  • RootNode apply(Path path)

dependencies

  • PmdParsingExternalComponent

WalkTreeService

Description

API

  • apply(File rootConsumer<File> consumer)

dependencies

GetASTofSourceTreeService

Description

extract AST from a source tree

gets the AST of the source tree

API

  • StringBuilder apply(Path rootPath)

dependencies

  • WalkTreeService
  • GenerateAstService

Repositories

Utilities

LogUtil

API

  • addDebuggedClass(Class<> debuggedClass)

  • clearDebuggedClasses()

  • debug( args)

  • debug( depth args)

  • warning( args)

  • warning( depth args)

  • info( args)

  • info( depth args)

  • doLog(StackTraceElement stackTraceElementLevel level args)

fields

  • [private, static] Set<String> debuggedClasses
  • [private, static] Logger logger

GeneratorUtil

API

  • StringBuilder testDataBoilerPlate(String preamble extendeds)

  • StringBuilder testDataTail(StringBuilder builder)

  • StringBuilder stubBoilerPlate(String preamble implementeds)

  • StringBuilder stubTail(StringBuilder builder)

  • StringBuilder generateBoilerPlate(String preambleString extendTypeString pattern implementeds)

  • StringBuilder mapToCode(String inputFunction<String> mapperStringBuilder builder)

  • StringBuilder mapToCode(Stream<String> inputFunction<String> mapperStringBuilder builder)

  • Stream<String> linesOf(String input)

  • Function<StringString> stringConstant(String postfix)

MiscUtil

API

  • StackTraceElement getStackElementAtHeight( depth)

  • syserr(String message)

  • sysout(String message)

TestUtil

API

  • diffCollections(Set<T> expectedSet<T> actual)

  • String getFileContents(Path path)

  • assertStreamEquals(Set<> expectedStream<> actual)

  • String loadResourceAsString(String definitionName)

Glue

TheClass

API

fields

  • [] theField

Generate

API

  • main( args)

  • Class<Supplier<StringBuilder>> getGeneratorByName(String className)

GenerateAST

API

  • main( args)

SourceTreeNode

API

  • Node getChild( index)

  • getNumChildren()

  • String getXPathNodeName()

  • addChild(SourceFileNode child)

  • AstInfo<> getAstInfo()

fields

  • [] List<SourceFileNode> children

AbstractHackNode

API

  • TextRegion getTextRegion()

  • DataMap<DataKey<>> getUserMap()

  • Node getParent()

  • getIndexInParent()

SourceFileNode

API

  • String getPath()

  • String getXPathNodeName()

  • Node getChild( index)

  • getNumChildren()

fields

  • [] Node child
  • [] String path

Config

API

LoggerService

API

  • debug( args)

  • warning( args)

  • info( args)

TestBase

API

  • setUp()

  • tearDown()

  • stubUp(Object test)

  • stubFill(Object instance)

TheClass

API

fields

  • [] theField