Package objot.bytecode

Examples of objot.bytecode.Field


    return c.newInstance(); // nothing inited
  }

  private void makeFields()
  {
    Field f = new Field(cons);
    f.setModifier(Mod2.STATIC);
    f.setNameCi(cons.addUcs(NAME_oss));
    f.setDescCi(cons.addUcs(Class2.descript(Object[][].class)));
    y.getFields().addField(f);
    ossCi = cons.addField(y.head.getClassCi(), cons.addNameDesc(f.getNameCi(),
      f.getDescCi()));
    int descCi = cons.addUcs(Class2.descript(Object.class));
    for (int i = 1; i < csn; i++)
      if (cs[i].mode != null && cs[i].mode != New.class)
      {
        f = new Field(cons);
        f.setModifier(Mod2.PRIVATE | (cs[i].mode == Set.class ? Mod2.VOLATILE : 0));
        f.setNameCi(cons.addUcs("o" + i));
        f.setDescCi(descCi);
        y.getFields().addField(f);
        fCis[i] = cons.addField(y.head.getClassCi(), //
          cons.addNameDesc(f.getNameCi(), descCi));
      }
  }
View Full Code Here


    Bytes n = cs.getUtf(cs.getClass(y.head.getClassCi()));
    for (int i = 1; i < cs.getConN(); i++)
      if (cs.getTag(i) == Constants.TAG_CLASS && cs.equalsUtf(cs.getClass(i), n))
        cs.setClass(i, cs.getClass(classCi));

    Field f = new Field(cs);
    f.setModifier(Mod2.PUBLIC | Mod2.STATIC);
    f.setNameCi(cs.addUcs(DATAS_NAME));
    f.setDescCi(cs.addUcs(Class2.descript(Object[].class)));
    y.getFields().addField(f);
    int datasCi = cs.addField(y.head.getClassCi(), cs.addNameDesc(f.getNameCi(),
      f.getDescCi()));

    Code ato = y.getProcs().removeProc(y.getProcs().searchProc(CTOR_NAME, null)).getCode();
    for (Constructor<?> t: ts)
      new WeaveProc(target, y, ato).ctor(t);
    Code ao = y.getProcs().removeProc( //
View Full Code Here

TOP

Related Classes of objot.bytecode.Field

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.