aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/javac/JavacNode.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/lombok/javac/JavacNode.java')
-rw-r--r--src/lombok/javac/JavacNode.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lombok/javac/JavacNode.java b/src/lombok/javac/JavacNode.java
index 46e06579..a0ee2789 100644
--- a/src/lombok/javac/JavacNode.java
+++ b/src/lombok/javac/JavacNode.java
@@ -36,6 +36,7 @@ import com.sun.tools.javac.tree.JCTree.JCClassDecl;
import com.sun.tools.javac.tree.JCTree.JCCompilationUnit;
import com.sun.tools.javac.tree.JCTree.JCMethodDecl;
import com.sun.tools.javac.tree.JCTree.JCVariableDecl;
+import com.sun.tools.javac.util.Context;
import com.sun.tools.javac.util.Name;
import com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition;
@@ -164,6 +165,15 @@ public class JavacNode extends lombok.core.LombokNode<JavacAST, JavacNode, JCTre
}
/**
+ * Convenient shortcut to the owning JavacAST object's getContext method.
+ *
+ * @see JavacAST#getContext()
+ */
+ public Context getContext() {
+ return ast.getContext();
+ }
+
+ /**
* Convenient shortcut to the owning JavacAST object's toName method.
*
* @see JavacAST#toName(String)