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.CompilationUnitgetCompilationUnit()MercurygetMercury()java.lang.StringgetPackageName()java.lang.StringgetPrimaryType()java.lang.StringgetQualifiedPrimaryType()java.nio.file.PathgetSourceFile()org.eclipse.jface.text.DocumentloadDocument()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
-