aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/expr/FieldAccess.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/expr/FieldAccess.java')
-rw-r--r--src/main/javassist/expr/FieldAccess.java32
1 files changed, 29 insertions, 3 deletions
diff --git a/src/main/javassist/expr/FieldAccess.java b/src/main/javassist/expr/FieldAccess.java
index 18fb8346..335314a5 100644
--- a/src/main/javassist/expr/FieldAccess.java
+++ b/src/main/javassist/expr/FieldAccess.java
@@ -16,9 +16,26 @@
package javassist.expr;
-import javassist.*;
-import javassist.bytecode.*;
-import javassist.compiler.*;
+import javassist.CannotCompileException;
+import javassist.ClassPool;
+import javassist.CtBehavior;
+import javassist.CtClass;
+import javassist.CtField;
+import javassist.CtPrimitiveType;
+import javassist.NotFoundException;
+import javassist.bytecode.BadBytecode;
+import javassist.bytecode.Bytecode;
+import javassist.bytecode.CodeAttribute;
+import javassist.bytecode.CodeIterator;
+import javassist.bytecode.ConstPool;
+import javassist.bytecode.Descriptor;
+import javassist.bytecode.MethodInfo;
+import javassist.bytecode.Opcode;
+import javassist.compiler.CompileError;
+import javassist.compiler.Javac;
+import javassist.compiler.JvstCodeGen;
+import javassist.compiler.JvstTypeChecker;
+import javassist.compiler.ProceedHandler;
import javassist.compiler.ast.ASTList;
/**
@@ -37,6 +54,7 @@ public class FieldAccess extends Expr {
* Returns the method or constructor containing the field-access
* expression represented by this object.
*/
+ @Override
public CtBehavior where() { return super.where(); }
/**
@@ -45,6 +63,7 @@ public class FieldAccess extends Expr {
*
* @return -1 if this information is not available.
*/
+ @Override
public int getLineNumber() {
return super.getLineNumber();
}
@@ -54,6 +73,7 @@ public class FieldAccess extends Expr {
*
* @return null if this information is not available.
*/
+ @Override
public String getFileName() {
return super.getFileName();
}
@@ -122,6 +142,7 @@ public class FieldAccess extends Expr {
* including the expression can catch and the exceptions that
* the throws declaration allows the method to throw.
*/
+ @Override
public CtClass[] mayThrow() {
return super.mayThrow();
}
@@ -149,6 +170,7 @@ public class FieldAccess extends Expr {
*
* @param statement a Java statement except try-catch.
*/
+ @Override
public void replace(String statement) throws CannotCompileException {
thisClass.getClassFile(); // to call checkModify().
ConstPool constPool = getConstPool();
@@ -236,6 +258,7 @@ public class FieldAccess extends Expr {
index = i;
}
+ @Override
public void doit(JvstCodeGen gen, Bytecode bytecode, ASTList args)
throws CompileError
{
@@ -262,6 +285,7 @@ public class FieldAccess extends Expr {
gen.setType(fieldType);
}
+ @Override
public void setReturnType(JvstTypeChecker c, ASTList args)
throws CompileError
{
@@ -284,6 +308,7 @@ public class FieldAccess extends Expr {
index = i;
}
+ @Override
public void doit(JvstCodeGen gen, Bytecode bytecode, ASTList args)
throws CompileError
{
@@ -314,6 +339,7 @@ public class FieldAccess extends Expr {
gen.addNullIfVoid();
}
+ @Override
public void setReturnType(JvstTypeChecker c, ASTList args)
throws CompileError
{