站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

ClasspathInfo (Java Source) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.java.source 0.13.0 1

org.netbeans.api.java.source
Class ClasspathInfo

java.lang.Object
  extended by org.netbeans.api.java.source.ClasspathInfo

public final class ClasspathInfo
extends Object

Class which contains info about classpath


Nested Class Summary
static class ClasspathInfo.PathKind
           
 
Method Summary
 void addChangeListener(ChangeListener listener)
          Registers ChangeListener which will be notified about the changes in the classpath.
static ClasspathInfo create(ClassPath bootPath, ClassPath classPath, ClassPath sourcePath)
           
static ClasspathInfo create(File file)
          Creates new interface to the compiler
static ClasspathInfo create(FileObject fo)
          Creates new interface to the compiler
 ClassIndex getClassIndex()
           
 ClassPath getClassPath(ClasspathInfo.PathKind pathKind)
           
 void removeChangeListener(ChangeListener listener)
          Removes ChangeListener from the list of listeners.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()
Overrides:
toString in class Object

create

public static ClasspathInfo create(File file)
Creates new interface to the compiler

Parameters:
file - for which the CompilerInterface should be created
Returns:
ClasspathInfo or null if the file does not exist on the local file system or it has no classpath associated

create

public static ClasspathInfo create(FileObject fo)
Creates new interface to the compiler

Parameters:
fo - for which the CompilerInterface should be created

create

public static ClasspathInfo create(ClassPath bootPath,
                                   ClassPath classPath,
                                   ClassPath sourcePath)

addChangeListener

public void addChangeListener(ChangeListener listener)
Registers ChangeListener which will be notified about the changes in the classpath.

Parameters:
listener - The listener to register.

removeChangeListener

public void removeChangeListener(ChangeListener listener)
Removes ChangeListener from the list of listeners.

Parameters:
listener - The listener to remove.

getClassPath

public ClassPath getClassPath(ClasspathInfo.PathKind pathKind)

getClassIndex

public ClassIndex getClassIndex()

org.netbeans.modules.java.source 0.13.0 1

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.