public interface TreeManager
beginTransaction
on the
FileT in question.
Opening a new transaction that conflicts with an already open
transaction results in an IllegalStateException. This TreeManager
does not provide blocking operations on its transaction state.
Attempting to close a transaction on a thread different than than
the opening thread results in a IllegalStateException. A nested
transaction is not considered to be at conflict with its enclosing
transaction.
Modifier and Type | Method and Description |
---|---|
void |
cloneSourceFile(FileT source,
FileT destination)
Clears the destination FileT (unlinks all its children), clones
the source FileT contents, and links the cloned Trees into the
destination FileT.
|
FileT |
createSourceFile(java.net.URI sourceURI)
Creates a new FileT for the given Java source URI (*.java).
|
FileT |
getAnonymousFile()
Fetches an anonymous file.
|
FileT |
getSourceFile(java.net.URI sourceURI)
Fetches the FileT for at the given URI (usually of the form
*.java).
|
FileT getSourceFile(java.net.URI sourceURI)
sourceURI
- The target URI.java.lang.IllegalArgumentException
- if the URI is not recognized as
a Java source file.FileT createSourceFile(java.net.URI sourceURI) throws java.io.IOException
sourceURI
- The target URI.java.io.IOException
- if the new file cannot be created.java.lang.IllegalArgumentException
- if the URI is not recognized as
a Java source file.FileT getAnonymousFile()
void cloneSourceFile(FileT source, FileT destination)
source
- The source FileT.destination
- The destination FileT.