|
| Resolver (final String thisVersion, final String thisPhase, final String thisLocalRepository) |
|
Collection< Artifact > | resolve (final String thisScope, final String... theseNames) throws DependencyResolutionException |
|
Artifact | resolve1 (final Artifact thisArtifact) throws DependencyResolutionException |
|
Map< String, Collection< Artifact > > | getDependencies () throws DependencyResolutionException |
|
Map< String, Collection< Artifact > > | getDependencies (final String thisPhase) throws DependencyResolutionException |
|
Properties | getProperties (final Map< String, Collection< Artifact >> thisDependenciesMap, final ResultType thisResultType) |
|
|
static boolean | saveSettings (final String thisFilePath, final Properties theseSettings) |
|
static void | main (final String[] args) throws DependencyResolutionException |
|
|
static void | store (final Properties theseProperties, final OutputStream thisOut, final String theseComments) throws IOException |
|
static String | saveConvert (String theString, boolean escapeSpace, boolean escapeUnicode) |
|
static char | toHex (int nibble) |
|
static void | addSlf4jImpl (final Map< String, Collection< Artifact >> thisDependenciesMap) |
|
|
static final char[] | hexDigit = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' } |
|
◆ Resolver()
grammarscope.generator.codedeps.Resolver.Resolver |
( |
final String |
thisVersion, |
|
|
final String |
thisPhase, |
|
|
final String |
thisLocalRepository |
|
) |
| |
◆ [static initializer]()
grammarscope.generator.codedeps.Resolver.[static initializer] |
|
staticpackage |
◆ addSlf4jImpl()
static void grammarscope.generator.codedeps.Resolver.addSlf4jImpl |
( |
final Map< String, Collection< Artifact >> |
thisDependenciesMap | ) |
|
|
staticprivate |
◆ getDependencies() [1/2]
Map<String, Collection<Artifact> > grammarscope.generator.codedeps.Resolver.getDependencies |
( |
| ) |
throws DependencyResolutionException |
Get dependencies
- Returns
- map of dependencies
- Exceptions
-
DependencyResolutionException | exception |
◆ getDependencies() [2/2]
Map<String, Collection<Artifact> > grammarscope.generator.codedeps.Resolver.getDependencies |
( |
final String |
thisPhase | ) |
throws DependencyResolutionException |
Get dependencies
- Parameters
-
thisPhase | phase (compile,runtime) |
- Returns
- map of dependencies
- Exceptions
-
DependencyResolutionException | exception |
◆ getProperties()
Properties grammarscope.generator.codedeps.Resolver.getProperties |
( |
final Map< String, Collection< Artifact >> |
thisDependenciesMap, |
|
|
final ResultType |
thisResultType |
|
) |
| |
Get properties
- Parameters
-
thisDependenciesMap | map of dependencies |
thisResultType | result type |
- Returns
- properties
- Exceptions
-
DependencyResolutionException | exception |
◆ join()
static public<T> String grammarscope.generator.codedeps.Resolver.join |
( |
final String |
thisGlue, |
|
|
final IProcessor< T > |
thisProcessor, |
|
|
final Collection< T > |
theseObjects |
|
) |
| |
|
staticpackage |
Join string array
- Parameters
-
thisGlue | string glue |
thisProcessor | processor |
theseObjects | object array |
<T> | processor result type |
- Returns
- string
◆ main()
static void grammarscope.generator.codedeps.Resolver.main |
( |
final String[] |
args | ) |
throws DependencyResolutionException |
|
static |
◆ resolve()
Collection<Artifact> grammarscope.generator.codedeps.Resolver.resolve |
( |
final String |
thisScope, |
|
|
final String... |
theseNames |
|
) |
| throws DependencyResolutionException |
◆ resolve1()
Artifact grammarscope.generator.codedeps.Resolver.resolve1 |
( |
final Artifact |
thisArtifact | ) |
throws DependencyResolutionException |
◆ saveConvert()
static String grammarscope.generator.codedeps.Resolver.saveConvert |
( |
String |
theString, |
|
|
boolean |
escapeSpace, |
|
|
boolean |
escapeUnicode |
|
) |
| |
|
staticprivate |
◆ saveSettings()
static boolean grammarscope.generator.codedeps.Resolver.saveSettings |
( |
final String |
thisFilePath, |
|
|
final Properties |
theseSettings |
|
) |
| |
|
static |
Save persist data
- Parameters
-
thisFilePath | persist file |
theseSettings | settings to persist |
- Returns
- true if successful
◆ store()
static void grammarscope.generator.codedeps.Resolver.store |
( |
final Properties |
theseProperties, |
|
|
final OutputStream |
thisOut, |
|
|
final String |
theseComments |
|
) |
| throws IOException |
|
staticprivate |
◆ toHex()
static char grammarscope.generator.codedeps.Resolver.toHex |
( |
int |
nibble | ) |
|
|
staticprivate |
Convert a nibble to a hex character
- Parameters
-
nibble | the nibble to convert. |
◆ hexDigit
final char [] grammarscope.generator.codedeps.Resolver.hexDigit = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' } |
|
staticprivate |
◆ theAether
final Aether grammarscope.generator.codedeps.Resolver.theAether |
|
private |
◆ theCoreNlpVersion
String grammarscope.generator.codedeps.Resolver.theCoreNlpVersion = "4.0.0" |
|
static |
◆ theLocalRepository
final String grammarscope.generator.codedeps.Resolver.theLocalRepository |
◆ theMap
Map<String, String[]> grammarscope.generator.codedeps.Resolver.theMap = new HashMap<String, String[]>() |
|
static |
◆ theParserVersion
String grammarscope.generator.codedeps.Resolver.theParserVersion = "4.0.0" |
|
static |
◆ thePhase
final String grammarscope.generator.codedeps.Resolver.thePhase |
◆ theVersion
final String grammarscope.generator.codedeps.Resolver.theVersion |
◆ toFile
final IProcessor<Artifact> grammarscope.generator.codedeps.Resolver.toFile |
|
private |
Initial value:= new IProcessor<Artifact>()
{
@Override
public String process(final Artifact a)
{
if (a.getFile() == null)
{
System.err.println("RESOLVING " + a);
try
{
return a1.getFile().getName();
}
catch (final DependencyResolutionException e)
{
return null;
}
}
return a.getFile().getName();
}
}
◆ toId
final IProcessor<Artifact> grammarscope.generator.codedeps.Resolver.toId |
|
private |
Initial value:= new IProcessor<Artifact>()
{
@Override
public String process(final Artifact a)
{
return a.toString();
}
}
◆ toPath
final IProcessor<Artifact> grammarscope.generator.codedeps.Resolver.toPath |
|
private |
Initial value:= new IProcessor<Artifact>()
{
@Override
public String process(final Artifact a)
{
String thisPath = null;
if (a.getFile() == null)
{
System.err.println("RESOLVING " + a);
try
{
thisPath = a1.getFile().getName();
}
catch (final DependencyResolutionException e)
{
return null;
}
}
else
{
thisPath = a.getFile().toString();
}
thisPath = thisPath.replaceAll(
Resolver.this.theLocalRepository,
"\\${repository}");
return thisPath;
}
}
The documentation for this class was generated from the following file:
- generator/src/main/java/grammarscope/generator/codedeps/Resolver.java