org.ow2.jonas.eclipse.compiler
Class CompilationContext

java.lang.Object
  extended by org.ow2.jonas.eclipse.compiler.CompilationContext

public class CompilationContext
extends Object

The CompilationContext defines all the options needed by the eclipse compiler.

Author:
Guillaume Sauthier

Constructor Summary
CompilationContext()
           
 
Method Summary
 String getAbsolutePath(String filename)
           
 org.eclipse.jdt.internal.compiler.impl.CompilerOptions getCompilerOptions()
           
 ClassLoader getContextualClassLoader()
           
 String getEncoding()
           
 File getOutputDirectory()
           
 File getSourceDirectory()
           
 List<String> getSources()
           
 void setCompilerOptions(org.eclipse.jdt.internal.compiler.impl.CompilerOptions compilerOptions)
           
 void setContextualClassLoader(ClassLoader contextualClassLoader)
           
 void setEncoding(String encoding)
           
 void setOutputDirectory(File outputDirectory)
           
 void setSourceDirectory(File sourceDirectory)
           
 void setSources(List<String> sources)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompilationContext

public CompilationContext()
Method Detail

getSourceDirectory

public File getSourceDirectory()
Returns:
the sourceDirectory

setSourceDirectory

public void setSourceDirectory(File sourceDirectory)
Parameters:
sourceDirectory - the sourceDirectory to set

getOutputDirectory

public File getOutputDirectory()
Returns:
the outputDirectory

setOutputDirectory

public void setOutputDirectory(File outputDirectory)
Parameters:
outputDirectory - the outputDirectory to set

getSources

public List<String> getSources()
Returns:
the sources

setSources

public void setSources(List<String> sources)
Parameters:
sources - the sources to set

getEncoding

public String getEncoding()
Returns:
the encoding

setEncoding

public void setEncoding(String encoding)
Parameters:
encoding - the encoding to set

getContextualClassLoader

public ClassLoader getContextualClassLoader()
Returns:
the contextualClassLoader

setContextualClassLoader

public void setContextualClassLoader(ClassLoader contextualClassLoader)
Parameters:
contextualClassLoader - the contextualClassLoader to set

getCompilerOptions

public org.eclipse.jdt.internal.compiler.impl.CompilerOptions getCompilerOptions()
Returns:
the compilerOptions

setCompilerOptions

public void setCompilerOptions(org.eclipse.jdt.internal.compiler.impl.CompilerOptions compilerOptions)
Parameters:
compilerOptions - the compilerOptions to set

getAbsolutePath

public String getAbsolutePath(String filename)
Parameters:
filename - relative path.
Returns:
the absolute path to the file.


Copyright © 2010 OW2 Consortium. All Rights Reserved.