public void BeginClass() { exe.BeginClass(Io.GetClassname(), TypeAttributes.Public); if (Io.genlist) { io.Out(".class " + Io.GetClassname() + "{\r\n"); } }
private String genFieldRef(Var e) { if (e == null) { return(null); } StringBuilder sb = new StringBuilder(MyC.MAXSTR); if (e.getSign() == Tok.T_UNSIGNED) /* if var is unsigned, put it in sig */ { sb.Append("unsigned "); } sb.Append(ilSType(e.getTypeId())); /* get the datatype */ sb.Append(" "); sb.Append(Io.GetClassname()); /* get the current classname */ sb.Append("."); sb.Append(e.getName()); /* copy the variable name */ return(sb.ToString()); }
public Emit(Io o) { io = o; exe = new Exe(Io.GetClassname()); }