1 package org.ibex.classgen;
3 /** This class represents Field references. It is used as an argument to the
4 GETFIELD, PUTFIELD, GETSTATIC, and PUTSTATCI bytecodes
10 public class FieldRef extends ClassGen.FieldOrMethodRef {
11 /** Create a reference to field <i>name</i> of class <i>c</i> with the type <i>t</i> */
12 public FieldRef(Type.Class c, String name, Type t) { super(c, name, t.getDescriptor()); }
13 /** Equivalent to FieldRef(new Type.Class(s), ...)
14 @see #FieldRef(Type.Class, String, Type, )
16 public FieldRef(String s, String name, Type t) { this(Type.fromDescriptor(s).asClass(), name, t); }