|
org.netbeans.modules.java.source 0.60.2 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.api.java.source.CompilationInfo
org.netbeans.api.java.source.CompilationController
public class CompilationController
Class for explicit invocation of compilation phases on a java source.
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....
| Method Summary | |
|---|---|
protected void |
doInvalidate()
Marks this CompilationInfo as invalid, may be used to
verify confinement. |
static CompilationController |
get(org.netbeans.modules.parsing.spi.Parser.Result result)
Returns an instance of the CompilationController for
given Parser.Result if it is a result
of a java parser. |
JavaSource.Phase |
toPhase(JavaSource.Phase phase)
Moves the state to required phase. |
| Methods inherited from class org.netbeans.api.java.source.CompilationInfo |
|---|
getChangedTree, getClasspathInfo, getCompilationUnit, getDiagnostics, getDocument, getElements, getElementUtilities, getFileObject, getJavaSource, getPhase, getPositionConverter, getSnapshot, getSourceVersion, getText, getTokenHierarchy, getTopLevelElements, getTrees, getTreeUtilities, getTypes, getTypeUtilities |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
@NullUnknown
public static CompilationController get(@NonNull
org.netbeans.modules.parsing.spi.Parser.Result result)
CompilationController for
given Parser.Result if it is a result
of a java parser.
result - for which the CompilationController should be
returned.
CompilationController or null when the given result
is not a result of java parsing.
@NonNull
public JavaSource.Phase toPhase(@NonNull
JavaSource.Phase phase)
throws IOException
org.netbeans.api.java.source.JavaSource.Phase.PARSED
org.netbeans.api.java.source.JavaSource.Phase.ELEMENTS_RESOLVED
org.netbeans.api.java.source.JavaSource.Phase.RESOLVED
org.netbeans.api.java.source.JavaSource.Phase.UP_TO_DATE
phase - The required phase
IllegalArgumentException - in case that given state can not be
reached using this method
IOException - when the file cannot be redprotected void doInvalidate()
CompilationInfo as invalid, may be used to
verify confinement.
doInvalidate in class CompilationInfo
|
org.netbeans.modules.java.source 0.60.2 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||