Package cn.wensiqun.asmsupport.utils

Examples of cn.wensiqun.asmsupport.utils.ScopeLogicVariable


  protected LocalVariableCreator(ProgramBlock block, String name, Type declareClass,
            Type actuallyClass){
      super(block)
    block.removeExe(this);
    if(StringUtils.isBlank(name)){
          this.slv = new ScopeLogicVariable(block.getScope(), declareClass, actuallyClass, true);
    }else{
          this.slv = new ScopeLogicVariable(name, block.getScope(), declareClass, actuallyClass);
    }
  }
View Full Code Here


    }
    LocalVariableEntity lve = new LocalVariableEntity(anonymous ? "anonymous" : name, 0, aClass);
        LocalVariableCreator lvc = OperatorFactory.newOperator(LocalVariableCreator.class,
            new Class<?>[]{ProgramBlock.class, String.class, Type.class, Type.class},
            getExecuteBlock(), anonymous ? null : name, aClass.getType(), aClass.getType());
        ScopeLogicVariable slv = lvc.getScopeLogicVariable();
        slv.setCompileOrder(insnHelper.getMethod().nextInsNumber());
        LocalVariable lv = new LocalVariable(lve);
        lv.setScopeLogicVar(slv);
        return lv;
  }
View Full Code Here

        String[] argNames = me.getArgNames();
        AClass[] argClsses = me.getArgClasses();
        argments = new LocalVariable[argNames.length];
        for (int i = 0; i < argNames.length; i++) {
            ScopeLogicVariable slv = new ScopeLogicVariable(argNames[i], scope, argClsses[i].getType(),
                    argClsses[i].getType());
            LocalVariableEntity lve = new LocalVariableEntity(argNames[i], 0, argClsses[i]);
            LocalVariable lv = new LocalVariable(lve);
            lv.setScopeLogicVar(slv);
            argments[i] = lv;
View Full Code Here

        Component com;
        Scope lastBrotherScope = null;
        for (int i = 0; i < coms.size(); i++) {
            com = coms.get(i);
            if (com instanceof ScopeLogicVariable) {
                ScopeLogicVariable slv = (ScopeLogicVariable) com;
                if(slv.isAnonymous()){
                    continue;
                }
                /*Label start;
                if (lastBrotherScope == null) {
                    start = parent.getStart();
                } else {
                    start = lastBrotherScope.outerEnd();
                }*/
                insnHelper.declarationVariable(slv.getName(), slv
                        .getDeclareType().getDescriptor(), null, slv.getSpecifiedStartLabel(), parent
                        .innerEnd(), slv.getInitStartPos());
            } else {
                lastBrotherScope = (Scope) com;
                declarationVariable(lastBrotherScope);
            }
        }
View Full Code Here

TOP

Related Classes of cn.wensiqun.asmsupport.utils.ScopeLogicVariable

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.