| |
|
| java.lang.Object org.netbeans.modules.gsf.api.CompilationInfo org.netbeans.napi.gsfret.source.CompilationInfo org.netbeans.napi.gsfret.source.CompilationController
All known Subclasses: org.netbeans.napi.gsfret.source.WorkingCopy,
CompilationController | public class CompilationController extends CompilationInfo (Code) | | This file is originally from Retouche, the Java Support
infrastructure in NetBeans. I have modified the file as little
as possible to make merging Retouche fixes back as simple as
possible.
Class for explicit invocation of compilation phases on a source file.
The implementation delegates to the
CompilationInfo to get the data,
the access to
CompilationInfo is not synchronized, so the class isn't
reentrant.
XXX: make toPhase automatic in getTrees(), Trees.getElement, etc....
author: Petr Hrebejk, Tomas Zezula |
getFileObject | public FileObject getFileObject()(Code) | | |
getText | public String getText()(Code) | | Returns the content of the file represented by the
Source .
String the java source |
getTokenHierarchy | public TokenHierarchy> getTokenHierarchy()(Code) | | |
toPhase | public Phase toPhase(Phase phase) throws IOException(Code) | | Moves the state to required phase. If given state was already reached
the state is not changed. The method will throw exception if a state is
illegal required. Acceptable parameters for thid method are
org.netbeans.napi.gsfret.source.Source.Phase.PARSED
org.netbeans.napi.gsfret.source.Source.Phase.ELEMENTS_RESOLVED
org.netbeans.napi.gsfret.source.Source.Phase.RESOLVED
org.netbeans.napi.gsfret.source.Source.Phase.UP_TO_DATE
Parameters: phase - The required phase the reached state throws: IllegalArgumentException - in case that given state can not be reached using this method throws: IOException - when the file cannot be red |
|
|
|