org.eclipse.xtext.xbase.compiler
Class OnTheFlyJavaCompiler.PatchedFileSystem

java.lang.Object
  extended by org.eclipse.jdt.internal.compiler.batch.FileSystem
      extended by org.eclipse.xtext.xbase.compiler.OnTheFlyJavaCompiler.PatchedFileSystem
All Implemented Interfaces:
org.eclipse.jdt.internal.compiler.env.INameEnvironment, org.eclipse.jdt.internal.compiler.util.SuffixConstants
Enclosing class:
OnTheFlyJavaCompiler

public static class OnTheFlyJavaCompiler.PatchedFileSystem
extends org.eclipse.jdt.internal.compiler.batch.FileSystem


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jdt.internal.compiler.batch.FileSystem
org.eclipse.jdt.internal.compiler.batch.FileSystem.Classpath, org.eclipse.jdt.internal.compiler.batch.FileSystem.ClasspathNormalizer, org.eclipse.jdt.internal.compiler.batch.FileSystem.ClasspathSectionProblemReporter
 
Field Summary
 
Fields inherited from interface org.eclipse.jdt.internal.compiler.util.SuffixConstants
EXTENSION_class, EXTENSION_CLASS, EXTENSION_java, EXTENSION_JAVA, SUFFIX_class, SUFFIX_CLASS, SUFFIX_java, SUFFIX_JAVA, SUFFIX_STRING_class, SUFFIX_STRING_CLASS, SUFFIX_STRING_java, SUFFIX_STRING_JAVA
 
Constructor Summary
OnTheFlyJavaCompiler.PatchedFileSystem(org.eclipse.jdt.internal.compiler.batch.FileSystem delegate)
           
 
Method Summary
 void cleanup()
          This method cleans the environment uo.
 boolean equals(java.lang.Object obj)
           
 org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer findType(char[][] compoundName)
          Find a type with the given compound name.
 org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer findType(char[][] compoundName, boolean asBinaryOnly)
           
 org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer findType(char[] typeName, char[][] packageName)
          Find a type named in the package .
 char[][][] findTypeNames(char[][] packageName)
           
 org.eclipse.jdt.internal.compiler.batch.FileSystem getDelegate()
           
 int hashCode()
           
 boolean isPackage(char[][] compoundName, char[] packageName)
          Answer whether packageName is the name of a known subpackage inside the package parentPackageName.
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.jdt.internal.compiler.batch.FileSystem
getClasspath, getClasspath
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OnTheFlyJavaCompiler.PatchedFileSystem

public OnTheFlyJavaCompiler.PatchedFileSystem(org.eclipse.jdt.internal.compiler.batch.FileSystem delegate)
Method Detail

cleanup

public void cleanup()
Description copied from interface: org.eclipse.jdt.internal.compiler.env.INameEnvironment
This method cleans the environment uo. It is responsible for releasing the memory and freeing resources. Passed that point, the name environment is no longer usable. A name environment can have a long life cycle, therefore it is the responsibility of the code which created it to decide when it is a good time to clean it up.

Specified by:
cleanup in interface org.eclipse.jdt.internal.compiler.env.INameEnvironment
Overrides:
cleanup in class org.eclipse.jdt.internal.compiler.batch.FileSystem

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

findType

public org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer findType(char[] typeName,
                                                                            char[][] packageName)
Description copied from interface: org.eclipse.jdt.internal.compiler.env.INameEnvironment
Find a type named in the package . Answer the binary form of the type if it is known to be consistent. Otherwise, answer the compilation unit which defines the type or null if the type does not exist. The default package is indicated by char[0][]. It is known that the package containing the type exists. NOTE: This method can be used to find a member type using its internal name A$B, but the source file for A is answered if the binary file is inconsistent.

Specified by:
findType in interface org.eclipse.jdt.internal.compiler.env.INameEnvironment
Overrides:
findType in class org.eclipse.jdt.internal.compiler.batch.FileSystem

findType

public org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer findType(char[][] compoundName)
Description copied from interface: org.eclipse.jdt.internal.compiler.env.INameEnvironment
Find a type with the given compound name. Answer the binary form of the type if it is known to be consistent. Otherwise, answer the compilation unit which defines the type or null if the type does not exist. Types in the default package are specified as {{typeName}}. It is unknown whether the package containing the type actually exists. NOTE: This method can be used to find a member type using its internal name A$B, but the source file for A is answered if the binary file is inconsistent.

Specified by:
findType in interface org.eclipse.jdt.internal.compiler.env.INameEnvironment
Overrides:
findType in class org.eclipse.jdt.internal.compiler.batch.FileSystem

findType

public org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer findType(char[][] compoundName,
                                                                            boolean asBinaryOnly)
Overrides:
findType in class org.eclipse.jdt.internal.compiler.batch.FileSystem

findTypeNames

public char[][][] findTypeNames(char[][] packageName)
Overrides:
findTypeNames in class org.eclipse.jdt.internal.compiler.batch.FileSystem

getDelegate

public org.eclipse.jdt.internal.compiler.batch.FileSystem getDelegate()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

isPackage

public boolean isPackage(char[][] compoundName,
                         char[] packageName)
Description copied from interface: org.eclipse.jdt.internal.compiler.env.INameEnvironment
Answer whether packageName is the name of a known subpackage inside the package parentPackageName. A top level package is found relative to null. The default package is always assumed to exist. For example: isPackage({{java}, {awt}}, {event}); isPackage(null, {java});

Specified by:
isPackage in interface org.eclipse.jdt.internal.compiler.env.INameEnvironment
Overrides:
isPackage in class org.eclipse.jdt.internal.compiler.batch.FileSystem

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object