org.eclipse.jdt.internal.compiler.batch
类 FileSystem
java.lang.Object
org.eclipse.jdt.internal.compiler.batch.FileSystem
- 所有已实现的接口:
- INameEnvironment, SuffixConstants
public class FileSystem
- extends Object
- implements INameEnvironment, SuffixConstants
| 从接口 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 |
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileSystem
public FileSystem(String[] classpathNames,
String[] initialFileNames,
String encoding)
FileSystem
protected FileSystem(FileSystem.Classpath[] paths,
String[] initialFileNames)
getClasspath
public static FileSystem.Classpath getClasspath(String classpathName,
String encoding,
AccessRuleSet accessRuleSet)
getClasspath
public static FileSystem.Classpath getClasspath(String classpathName,
String encoding,
boolean isSourceOnly,
AccessRuleSet accessRuleSet,
String destinationPath)
cleanup
public void cleanup()
- 从接口
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.
- 指定者:
- 接口
INameEnvironment 中的 cleanup
findType
public NameEnvironmentAnswer findType(char[][] compoundName)
- 从接口
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.
- 指定者:
- 接口
INameEnvironment 中的 findType
findTypeNames
public char[][][] findTypeNames(char[][] packageName)
findType
public NameEnvironmentAnswer findType(char[][] compoundName,
boolean asBinaryOnly)
findType
public NameEnvironmentAnswer findType(char[] typeName,
char[][] packageName)
- 从接口
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.
- 指定者:
- 接口
INameEnvironment 中的 findType
isPackage
public boolean isPackage(char[][] compoundName,
char[] packageName)
- 从接口
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});
- 指定者:
- 接口
INameEnvironment 中的 isPackage
Copyright © 2013. All Rights Reserved.