Package org.cadixdev.mercury
Class SourceContext
java.lang.Object
org.cadixdev.mercury.SourceContext
- Direct Known Subclasses:
RewriteContext
public class SourceContext
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description org.eclipse.jdt.core.dom.CompilationUnit
getCompilationUnit()
Mercury
getMercury()
java.lang.String
getPackageName()
java.lang.String
getPrimaryType()
java.lang.String
getQualifiedPrimaryType()
java.nio.file.Path
getSourceFile()
org.eclipse.jface.text.Document
loadDocument()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getMercury
-
getSourceFile
public final java.nio.file.Path getSourceFile() -
getCompilationUnit
public final org.eclipse.jdt.core.dom.CompilationUnit getCompilationUnit() -
getPackageName
public final java.lang.String getPackageName() -
getPrimaryType
public final java.lang.String getPrimaryType() -
getQualifiedPrimaryType
public final java.lang.String getQualifiedPrimaryType() -
loadDocument
public final org.eclipse.jface.text.Document loadDocument() throws java.io.IOException- Throws:
java.io.IOException
-