Package io.schram.jwebassembly
Class JWebAssemblyCompiler
- java.lang.Object
-
- io.schram.jwebassembly.JWebAssemblyCompiler
-
public class JWebAssemblyCompiler extends java.lang.ObjectFacade 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.MethodaddFileprivate java.lang.reflect.MethodaddLibraryprivate java.lang.Objectcompiler(package private) static java.lang.StringCOMPILER_CLASS_NAMEprivate java.lang.reflect.MethodcompileToBinaryprivate java.lang.reflect.MethodcompileToTextprivate org.codehaus.plexus.logging.Loggerlogprivate java.lang.reflect.MethodsetProperty
-
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) voidaddFile(java.io.File file)(package private) voidaddLibrary(java.io.File file)(package private) voidcompileToBinary(java.io.File target)(package private) voidcompileToText(java.io.File target)private static java.lang.reflect.MethodgetMethod(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) voidsetProperty(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.MojoExecutionExceptionFacade 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
-
-