diff options
Diffstat (limited to 'src/main/javassist/compiler/ast/Member.java')
-rw-r--r-- | src/main/javassist/compiler/ast/Member.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/javassist/compiler/ast/Member.java b/src/main/javassist/compiler/ast/Member.java index ee54ecc4..f0303cd3 100644 --- a/src/main/javassist/compiler/ast/Member.java +++ b/src/main/javassist/compiler/ast/Member.java @@ -16,14 +16,24 @@ package javassist.compiler.ast; import javassist.compiler.CompileError; +import javassist.CtField; /** * Member name. */ public class Member extends Symbol { + // cache maintained by fieldAccess() in TypeChecker. + // this is used to obtain the value of a static final field. + private CtField field; + public Member(String name) { super(name); + field = null; } + public void setField(CtField f) { field = f; } + + public CtField getField() { return field; } + public void accept(Visitor v) throws CompileError { v.atMember(this); } } |