Package cn.wensiqun.asmsupport.operators.variable

Examples of cn.wensiqun.asmsupport.operators.variable.LocalVariableCreator


  private final LocalVariable createOnlyVariable(final AClass aClass, final String name, boolean anonymous){
    if(!anonymous && StringUtils.isBlank(name)){
      throw new IllegalArgumentException("variable must be non-null if 'anonymous' is false");
    }
    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

TOP

Related Classes of cn.wensiqun.asmsupport.operators.variable.LocalVariableCreator

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.