IContext¶
-
public interface
IContext
¶ Interface for a context in which analysis or transformations occurs. Implementors must override
hashCode()
andequals(Object)
usinglocation()
andlanguage()
, and also implementIContextInternal
.
Methods¶
language¶
-
ILanguageImpl
language
()¶ Returns: Language of this context.
location¶
-
FileObject
location
()¶ Returns: Location of this context.
persist¶
-
void
persist
()¶ Persist context data from memory to permanent storing. Acquires a read lock. Can be called while holding the write lock.
Throws: - IOException – When persisting fails unexpectedly.
read¶
-
IClosableLock
read
()¶ Request read access to this context.
Returns: Closable lock which must be held during reading. Close the lock when done.