b13fd4dbb0a22e155dc218136d98911b72f0b66f
[org.ibex.classgen.git] / src / org / ibex / classgen / FieldRef.java
1 package org.ibex.classgen;
2
3 /** This class represents Field references. It is used as an argument to the 
4 GETFIELD, PUTFIELD, GETSTATIC, and PUTSTATCI bytecodes 
5 @see CGConst#GETFIELD
6 @see CGConst#PUTFIELD
7 @see CGConst#GETSTATIC
8 @see CGConst#PUTSTATIC
9 */
10 public class FieldRef extends MemberRef {
11     /** Create a reference to field <i>name</i> of class <i>c</i> with the type <i>t</i>  */    
12     public final Type type;
13     public FieldRef(Type.Class c, String name, Type t) { super(c, name); this.type = t; }
14     public String getDescriptor() { return name; }
15 }
16