Package io.schram.jwebassembly
Class JWebAssemblyCompiler
- java.lang.Object
-
- io.schram.jwebassembly.JWebAssemblyCompiler
-
public class JWebAssemblyCompiler extends java.lang.Object
Facade for the "de.inetsoftware.jwebassembly.JWebAssembly" class. Retrieves and accesses the class via reflection.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.reflect.Method
addFile
private java.lang.reflect.Method
addLibrary
private java.lang.Object
compiler
(package private) static java.lang.String
COMPILER_CLASS_NAME
private java.lang.reflect.Method
compileToBinary
private java.lang.reflect.Method
compileToText
private org.codehaus.plexus.logging.Logger
log
private java.lang.reflect.Method
setProperty
-
Constructor Summary
Constructors Constructor Description JWebAssemblyCompiler(org.apache.maven.artifact.Artifact compilerDependency, org.codehaus.plexus.logging.Logger log)
Facade class for interacting with a (reflectively accessed) JWebAssembly instance
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addFile(java.io.File file)
(package private) void
addLibrary(java.io.File file)
(package private) void
compileToBinary(java.io.File target)
(package private) void
compileToText(java.io.File target)
private static java.lang.reflect.Method
getMethod(java.lang.Class<?> clazz, java.lang.String name, java.lang.Class<?>... parameterTypes)
private static java.lang.Class<?>
getReferenceToCompilerFor(org.apache.maven.artifact.Artifact compilerDependency)
(package private) void
setProperty(java.lang.String key, java.lang.String value)
-
-
-
Field Detail
-
COMPILER_CLASS_NAME
static final java.lang.String COMPILER_CLASS_NAME
- See Also:
- Constant Field Values
-
compiler
private final java.lang.Object compiler
-
addFile
private final java.lang.reflect.Method addFile
-
compileToBinary
private final java.lang.reflect.Method compileToBinary
-
compileToText
private final java.lang.reflect.Method compileToText
-
setProperty
private final java.lang.reflect.Method setProperty
-
addLibrary
private final java.lang.reflect.Method addLibrary
-
log
private final org.codehaus.plexus.logging.Logger log
-
-
Constructor Detail
-
JWebAssemblyCompiler
JWebAssemblyCompiler(org.apache.maven.artifact.Artifact compilerDependency, org.codehaus.plexus.logging.Logger log) throws org.apache.maven.plugin.MojoExecutionException
Facade class for interacting with a (reflectively accessed) JWebAssembly instance- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-
Method Detail
-
getReferenceToCompilerFor
private static java.lang.Class<?> getReferenceToCompilerFor(org.apache.maven.artifact.Artifact compilerDependency) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getMethod
private static java.lang.reflect.Method getMethod(java.lang.Class<?> clazz, java.lang.String name, java.lang.Class<?>... parameterTypes) throws java.lang.Exception
- Throws:
java.lang.Exception
-
addFile
void addFile(java.io.File file) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
addLibrary
void addLibrary(java.io.File file) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
setProperty
void setProperty(java.lang.String key, java.lang.String value) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
compileToBinary
void compileToBinary(java.io.File target) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
compileToText
void compileToText(java.io.File target) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-