4 * represents a field of a type
9 public class FieldDescriptor extends Descriptor {
14 public FieldDescriptor(String name) {
18 public TypeDescriptor getType() {
23 public void setType(TypeDescriptor td) {
28 public void setPtr(boolean ptr) {
32 public boolean getPtr() {
36 public Expr getBaseSizeExpr() {
37 if (ptr) { /* ptrs are 32bits */
38 return new IntegerLiteralExpr(32);
40 return type.getSizeExpr();