de.grogra.rgg.model
public class CompilationFilter extends FilterBase implements ObjectSource, ResourceLoader
FilterSource.MetaDataKey<V>| Modifier and Type | Field and Description |
|---|---|
static MimeType |
COMPILATION_UNIT_TYPE |
static IOFlavor |
CUNIT_FLAVOR |
static java.lang.String |
DEACTIVATION_CATEGORY |
static boolean |
WRITE_CLASSES |
item, sourceAUTO_PROGRESS, DESTINATION_FILE, DESTINATION_URLDEFAULT_VALUE, EMPTY_MAP| Constructor and Description |
|---|
CompilationFilter(FilterItem item,
FilterSource source) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addResource(FilterSource source) |
Type<?>[] |
compile(de.grogra.xl.compiler.CClass shell,
java.lang.ClassLoader parentLoader) |
static void |
exportCompiled(Item item,
java.lang.Object info,
Context ctx) |
de.grogra.xl.compiler.scope.CompilationUnitScope |
getCompilationUnit() |
java.lang.String |
getJoinedDeactivationCategory() |
java.lang.Object |
getObject()
Returns the data as an object of a class which is compatible which
the flavor.
|
void |
loadResource(Registry r) |
get, getFilter, getFlavor, getImpl, getMetaData, getRegistry, getSource, getSystemId, initProgressMonitor, setFlavor, setMetaData, setMetaData, setProgress, setSystemId, toString, toURLclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFilter, getFlavor, getMetaData, getSystemId, initProgressMonitor, setMetaData, setProgressgetRegistrypublic static final MimeType COMPILATION_UNIT_TYPE
public static final IOFlavor CUNIT_FLAVOR
public static final java.lang.String DEACTIVATION_CATEGORY
public static boolean WRITE_CLASSES
public CompilationFilter(FilterItem item, FilterSource source)
public boolean addResource(FilterSource source)
addResource in interface ResourceLoaderpublic Type<?>[] compile(de.grogra.xl.compiler.CClass shell, java.lang.ClassLoader parentLoader) throws java.io.IOException
java.io.IOExceptionpublic de.grogra.xl.compiler.scope.CompilationUnitScope getCompilationUnit()
public java.lang.String getJoinedDeactivationCategory()
getJoinedDeactivationCategory in interface ResourceLoaderpublic java.lang.Object getObject()
ObjectSourcegetObject in interface ObjectSourcepublic void loadResource(Registry r) throws java.io.IOException
loadResource in interface ResourceLoaderjava.io.IOException