Examples of GlobalVariableEntity


Examples of cn.wensiqun.asmsupport.entity.GlobalVariableEntity

    create(cv, (NewMemberClass)owner);
  }
 
  private void create(IClassContext cv, NewMemberClass owner){
        this.context = cv;
        fe = new GlobalVariableEntity(owner, fieldClass, modifiers, name);
        owner.addGlobalVariableEntity(fe);
  }
View Full Code Here

Examples of cn.wensiqun.asmsupport.entity.GlobalVariableEntity

    }

    @Override
    public GlobalVariableEntity getGlobalVariableEntity(String name) {
        Class<?> fieldOwner = reallyClass;
        GlobalVariableEntity entiey = null;
        for(;!fieldOwner.equals(Object.class;fieldOwner = fieldOwner.getSuperclass()){
            try {
                Field f = fieldOwner.getDeclaredField(name);
                entiey = new GlobalVariableEntity(this, AClassFactory.getProductClass(f.getType()), f.getModifiers(), name);
               
            } catch (NoSuchFieldException e) {
                //throw new IllegalArgumentException("no such method exception : " + methodName);
            }
        }
View Full Code Here

Examples of cn.wensiqun.asmsupport.entity.GlobalVariableEntity

     * @param name 变量名
     *
     */
    public GlobalVariable(AClass owner, AClass declareClass,int modifiers,
            String name) {
        gve = new GlobalVariableEntity(owner, declareClass,modifiers, name);
        staticOwner = owner;
    }
View Full Code Here

Examples of cn.wensiqun.asmsupport.entity.GlobalVariableEntity

     * @param modifiers 变量修饰符
     * @param name 变量名
     */
    public GlobalVariable(IVariable var, AClass declareClass, int modifiers,
            String name) {
        gve = new GlobalVariableEntity(var.getParamterizedType(), declareClass, modifiers, name);
        variableOwner = var;
    }
View Full Code Here

Examples of cn.wensiqun.asmsupport.entity.GlobalVariableEntity

    private GlobalVariableEntity gve;
   
   
    public ThisVariable(AClass aclass) {
        this.gve = new GlobalVariableEntity(aclass, aclass, Opcodes.ACC_FINAL, ASConstant.THIS);
    }
View Full Code Here

Examples of cn.wensiqun.asmsupport.entity.GlobalVariableEntity

    /**
     * 通过Class获取的全局变量
     * @param insnHelper
     */
    public SuperVariable(AClass aclass) {
        this.gve = new GlobalVariableEntity(
                AClassFactory.getProductClass(aclass.getSuperClass()),
                AClassFactory.getProductClass(aclass.getSuperClass()),
                Opcodes.ACC_FINAL, ASConstant.SUPER);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.