|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jet.compiler.JET2Compiler
WorkspaceCompiler or JETCompilerOptions for options
public class JET2Compiler
The compiler that turns a JET2 sources files Java files in the Eclipse workspace.
| Constructor Summary | |
|---|---|
JET2Compiler(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor,
java.util.Map options)
Deprecated. Create an instance |
|
JET2Compiler(org.eclipse.core.resources.IProject project,
java.util.Map options,
IJETCompilerState compilerState,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated. Create an instance of the JET compiler capable of incremental compilation from a saved state. |
|
| Method Summary | |
|---|---|
void |
clean()
Deprecated. |
void |
compile(org.eclipse.core.resources.IResource resource)
Deprecated. Compile the passed resource into a Java file. |
void |
createTransformFiles()
Deprecated. Create the Template Loader class for the project |
static java.util.Map |
getDefaultCompilerOptions()
Deprecated. Use JETCompilerOptions.getDefaultCompilerOptions() instead |
int |
getNoCompiles()
Deprecated. |
boolean |
isJET2SourceFile(org.eclipse.core.resources.IResource resource)
Deprecated. Test whether the supplied resource is a compilable JET2 source file. |
void |
removeDerivedResources(org.eclipse.core.resources.IResource resource)
Deprecated. Remove any resources for the passed resource representing a JET template. |
void |
removeDerivedResources(org.eclipse.core.resources.IResource resource,
boolean derivedOnly)
Deprecated. Remove any derived resources for this resource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String RUNTIME_PROBLEM_MARKER
public static final java.lang.String COMPILE_PROBLEM_MARKER
public static final java.lang.String DEFAULT_COMPILED_TEMPLATE_PACKAGE
JETCompilerOptions.DEFAULT_COMPILED_TEMPLATE_PACKAGE insteadOPTION_COMPILED_TEMPLATE_PACKAGE option; value: "org.eclipse.jet2.internal.compiled".
public static final java.lang.String DEFAULT_COMPILED_TEMPLATE_SRC_DIR
JETCompilerOptions.DEFAULT_COMPILED_TEMPLATE_SRC_DIR insteadOPTION_COMPILED_TEMPLATE_SRC_DIR option; value: "jet2java".
public static final java.lang.String DEFAULT_TEMPLATE_EXT
JETCompilerOptions.DEFAULT_TEMPLATE_EXT insteadOPTION_TEMPLATE_EXT option; value: "jet".
public static final java.lang.Boolean DEFAULT_SET_JAVA_FILES_AS_DERIVED
JETCompilerOptions.DEFAULT_SET_JAVA_FILES_AS_DERIVED insteadpublic static final java.lang.String OPTION_COMPILED_TEMPLATE_PACKAGE
JETCompilerOptions.OPTION_COMPILED_TEMPLATE_PACKAGE instead
public static final java.lang.String OPTION_COMPILED_TEMPLATE_SRC_DIR
JETCompilerOptions.OPTION_COMPILED_TEMPLATE_SRC_DIR instead
public static final java.lang.String OPTION_TEMPLATE_EXT
JETCompilerOptions.OPTION_TEMPLATE_EXT instead
public static final java.lang.String OPTION_SET_JAVA_FILES_AS_DERIVED
JETCompilerOptions.OPTION_SET_JAVA_FILES_AS_DERIVED instead| Constructor Detail |
|---|
public JET2Compiler(org.eclipse.core.resources.IProject project,
java.util.Map options,
IJETCompilerState compilerState,
org.eclipse.core.runtime.IProgressMonitor monitor)
project - the project containing templates to be compiled.options - the compiler optionscompilerState - the saved state from previous a previous compilemonitor - a progress monitor
public JET2Compiler(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor,
java.util.Map options)
project - the project upon which the compiler will actmonitor - a progress monitor for compiler actionsoptions - a map of compiler options| Method Detail |
|---|
public static java.util.Map getDefaultCompilerOptions()
JETCompilerOptions.getDefaultCompilerOptions() instead
public void createTransformFiles()
public boolean isJET2SourceFile(org.eclipse.core.resources.IResource resource)
resource -
true if the identified resource is a jet2 source filepublic void compile(org.eclipse.core.resources.IResource resource)
resource - a project resource
public void removeDerivedResources(org.eclipse.core.resources.IResource resource)
throws org.eclipse.core.runtime.CoreException
This method is equivalent to:
removeDerivedResources(resource, false).
resource - a resource
org.eclipse.core.runtime.CoreException - if a derived resource cannot be removed.removeDerivedResources(IResource, boolean)
public void removeDerivedResources(org.eclipse.core.resources.IResource resource,
boolean derivedOnly)
throws org.eclipse.core.runtime.CoreException
resource - a resourcederivedOnly - if true, Java files with the derived attribute set are removed.
org.eclipse.core.runtime.CoreException - if a derived resource cannot be removed.public final int getNoCompiles()
public void clean()
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||