org.ow2.jonas.eclipse.compiler
Class JOnASNameEnvironment

java.lang.Object
  extended by org.ow2.jonas.eclipse.compiler.JOnASNameEnvironment
All Implemented Interfaces:
org.eclipse.jdt.internal.compiler.env.INameEnvironment

public class JOnASNameEnvironment
extends Object
implements org.eclipse.jdt.internal.compiler.env.INameEnvironment

Central piece of JOnAS glue for eclipse compiler integration.

Author:
Guillaume Sauthier

Constructor Summary
JOnASNameEnvironment(CompilationContext context, List<CompilerError> errors)
          Creates a new JOnASNameEnvironment glue.
 
Method Summary
 void cleanup()
           
 org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer findType(char[][] compoundTypeName)
           
 org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer findType(char[] typeName, char[][] packageName)
           
 boolean isPackage(char[][] parentPackageName, char[] packageName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JOnASNameEnvironment

public JOnASNameEnvironment(CompilationContext context,
                            List<CompilerError> errors)
Creates a new JOnASNameEnvironment glue.

Parameters:
context - CompilationContext
errors - list of compilation errors
Method Detail

cleanup

public void cleanup()
Specified by:
cleanup in interface org.eclipse.jdt.internal.compiler.env.INameEnvironment
See Also:
INameEnvironment.cleanup()

findType

public org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer findType(char[][] compoundTypeName)
Specified by:
findType in interface org.eclipse.jdt.internal.compiler.env.INameEnvironment
See Also:
INameEnvironment.findType(char[][])

findType

public org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer findType(char[] typeName,
                                                                            char[][] packageName)
Specified by:
findType in interface org.eclipse.jdt.internal.compiler.env.INameEnvironment
See Also:
INameEnvironment.findType(char[], char[][])

isPackage

public boolean isPackage(char[][] parentPackageName,
                         char[] packageName)
Specified by:
isPackage in interface org.eclipse.jdt.internal.compiler.env.INameEnvironment
See Also:
INameEnvironment.isPackage(char[][], char[])


Copyright © 2010 OW2 Consortium. All Rights Reserved.