org.ow2.jonas.eclipse.compiler
Class JOnASCompilationUnit
java.lang.Object
org.ow2.jonas.eclipse.compiler.JOnASCompilationUnit
- All Implemented Interfaces:
- org.eclipse.jdt.internal.compiler.env.ICompilationUnit, org.eclipse.jdt.internal.compiler.env.IDependent
public class JOnASCompilationUnit
- extends Object
- implements org.eclipse.jdt.internal.compiler.env.ICompilationUnit
JOnAS glue for Eclipse compiler.
- Author:
- Guillaume Sauthier
Fields inherited from interface org.eclipse.jdt.internal.compiler.env.IDependent |
JAR_FILE_ENTRY_SEPARATOR |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JOnASCompilationUnit
public JOnASCompilationUnit(String className,
String sourceFile,
CompilationContext context,
List<CompilerError> errors)
- Creates a new
ICompilationUnit
targeting a given class.
- Parameters:
className
- target classname.sourceFile
- input source file.context
- Compilation context.errors
- errors holder.
getContents
public char[] getContents()
- Specified by:
getContents
in interface org.eclipse.jdt.internal.compiler.env.ICompilationUnit
- Returns:
- the file's content as a char array.
- See Also:
ICompilationUnit.getContents()
getMainTypeName
public char[] getMainTypeName()
- Specified by:
getMainTypeName
in interface org.eclipse.jdt.internal.compiler.env.ICompilationUnit
- Returns:
- the non qualified Java classname.
- See Also:
ICompilationUnit.getMainTypeName()
getPackageName
public char[][] getPackageName()
- Specified by:
getPackageName
in interface org.eclipse.jdt.internal.compiler.env.ICompilationUnit
- Returns:
- the package name (without the type name).
- See Also:
ICompilationUnit.getPackageName()
getFileName
public char[] getFileName()
- Specified by:
getFileName
in interface org.eclipse.jdt.internal.compiler.env.IDependent
- Returns:
- the filename.
- See Also:
IDependent.getFileName()
Copyright © 2010 OW2 Consortium. All Rights Reserved.