| Package | Description |
|---|---|
| merger |
| Modifier and Type | Method and Description |
|---|---|
static CodeSnipitLocation |
CodeSnipitLocation.after(com.github.javaparser.ast.Node node)
|
static CodeSnipitLocation |
CodeSnipitLocation.before(com.github.javaparser.ast.Node node)
|
static CodeSnipitLocation |
CodeSnipitLocation.of(int startEnd)
Creates a new
CodeSnipitLocation of a single line. |
static CodeSnipitLocation |
CodeSnipitLocation.of(int start,
int end)
Creates a new
CodeSnipitLocation. |
static CodeSnipitLocation |
CodeSnipitLocation.of(com.github.javaparser.ast.Node node)
Creates a new
CodeSnipitLocation for the given Node. |
| Modifier and Type | Method and Description |
|---|---|
LinkedHashMap<CodeSnipitLocation,CodeSnipitLocation> |
CodeSnipitLocater.locate(com.github.javaparser.ast.CompilationUnit existingCode,
com.github.javaparser.ast.Node newCode)
Receives two
CompilationUnits and determines the location of a package, imports, fields, constructors, methods or inner classes. |
LinkedHashMap<CodeSnipitLocation,CodeSnipitLocation> |
CodeSnipitLocater.locate(com.github.javaparser.ast.CompilationUnit existingCode,
com.github.javaparser.ast.Node newCode)
Receives two
CompilationUnits and determines the location of a package, imports, fields, constructors, methods or inner classes. |
protected LinkedHashMap<CodeSnipitLocation,CodeSnipitLocation> |
CodeSnipitLocater.recursiveLocator(List<com.github.javaparser.ast.Node> existingNodes,
List<com.github.javaparser.ast.Node> insertNodes)
Calculates the insertion locations for the insertNodes within the existingNodes.
|
protected LinkedHashMap<CodeSnipitLocation,CodeSnipitLocation> |
CodeSnipitLocater.recursiveLocator(List<com.github.javaparser.ast.Node> existingNodes,
List<com.github.javaparser.ast.Node> insertNodes)
Calculates the insertion locations for the insertNodes within the existingNodes.
|
| Modifier and Type | Method and Description |
|---|---|
int |
CodeSnipitLocation.compareTo(CodeSnipitLocation that) |
| Modifier and Type | Method and Description |
|---|---|
void |
CodeSnipitInserter.insert(JavaForgerConfiguration config,
String mergeClassPath,
String newCode,
LinkedHashMap<CodeSnipitLocation,CodeSnipitLocation> newCodeInsertionLocations)
Inserts the new code into the file given by the mergeClassPath according to the insertLocations.
|
void |
CodeSnipitInserter.insert(JavaForgerConfiguration config,
String mergeClassPath,
String newCode,
LinkedHashMap<CodeSnipitLocation,CodeSnipitLocation> newCodeInsertionLocations)
Inserts the new code into the file given by the mergeClassPath according to the insertLocations.
|
Copyright © 2019. All rights reserved.