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

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

org.netbeans.modules.java.source 0.13.0 1

org.netbeans.api.java.source
Class CompilationInfo

java.lang.Object
  extended by org.netbeans.api.java.source.CompilationInfo
Direct Known Subclasses:
CompilationController

public class CompilationInfo
extends Object

Asorted information about the JavaSource.


Method Summary
 ClasspathInfo getClasspathInfo()
           
 CompilationUnitTree getCompilationUnit()
          Returns the javac tree representing the source file.
 List<Diagnostic> getDiagnostics()
          Returns the errors in the file represented by the JavaSource.
 Document getDocument()
           
 Elements getElements()
           
 ElementUtilities getElementUtilities()
           
 FileObject getFileObject()
           
 JavaSource getJavaSource()
           
 JavaSource.Phase getPhase()
          Returns the current phase of the JavaSource.
 String getText()
          Returns the content of the file represented by the JavaSource.
 TokenHierarchy<Void> getTokenHierarchy()
           
 Trees getTrees()
           
 TreeUtilities getTreeUtilities()
           
 Types getTypes()
           
 TypeUtilities getTypeUtilities()
          Get the TypeUtilities.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPhase

public JavaSource.Phase getPhase()
Returns the current phase of the JavaSource.

Returns:
JavaSource.Phase the state which was reached by the JavaSource.

getCompilationUnit

public CompilationUnitTree getCompilationUnit()
Returns the javac tree representing the source file.

Returns:
CompilationUnitTree the compilation unit cantaining the top level classes contained in the, java source file. It may return null when the phase is less than JavaSource.Phase.PARSED

getText

public String getText()
Returns the content of the file represented by the JavaSource.

Returns:
String the java source

getTokenHierarchy

public TokenHierarchy<Void> getTokenHierarchy()

getDiagnostics

public List<Diagnostic> getDiagnostics()
Returns the errors in the file represented by the JavaSource.

Returns:
an list of Diagnostic

getTrees

public Trees getTrees()

getTypes

public Types getTypes()

getElements

public Elements getElements()

getJavaSource

public JavaSource getJavaSource()

getClasspathInfo

public ClasspathInfo getClasspathInfo()

getFileObject

public FileObject getFileObject()

getDocument

public Document getDocument()
                     throws IOException
Throws:
IOException

getTreeUtilities

public TreeUtilities getTreeUtilities()

getElementUtilities

public ElementUtilities getElementUtilities()

getTypeUtilities

public TypeUtilities getTypeUtilities()
Get the TypeUtilities.

Returns:
an instance of TypeUtilities
Since:
0.6

org.netbeans.modules.java.source 0.13.0 1

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