Package cn.wensiqun.asmsupport.exception

Examples of cn.wensiqun.asmsupport.exception.ASMSupportException


        this.setParent(parent);
        parent.addComponent(this);

        this.name = name;
        if(declareClass.equals(Type.VOID_TYPE) || actuallyClass.equals(Type.VOID_TYPE) ){
          throw new ASMSupportException("cannot declare a void type");
        }
        this.actuallyType = actuallyClass;
        this.declareType = declareClass;
        this.specifiedStartLabel = parent.getStart();
        store();
View Full Code Here


              ftrCls.equals(AClass.FLOAT_ACLASS) ||
              ftrCls.equals(AClass.DOUBLE_ACLASS) ||
              ftrCls.equals(AClass.BOOLEAN_WRAP_ACLASS) ||
              ftrCls.equals(AClass.FLOAT_WRAP_ACLASS) ||
              ftrCls.equals(AClass.DOUBLE_WRAP_ACLASS)){
               throw new ASMSupportException("this operator " + operator + " cannot support for type " + ftrCls );
           }
        }
    }
View Full Code Here

    @Override
    public final void execute() {
        if(byOtherUsed){
            super.execute();
        }else{
            throw new ASMSupportException("the operator " + operator + " has not been used by other operator.");
        }
    }
View Full Code Here

    }

    protected final void checkFactorForNumerical(AClass ftrCls){
        if(!ftrCls.isPrimitive() ||
           ftrCls.equals(AClass.BOOLEAN_ACLASS)){
            throw new ASMSupportException("this operator " + operator + " cannot support for type " + ftrCls );
        }
    }
View Full Code Here

        this.argNames = argNames;
        this.modifier = modifier;
        this.argClasses = argClasses;

        if (argClasses.length != argNames.length) {
            throw new ASMSupportException(
                    "different length between argClasses and argNames");
        }

        this.argTypes = new Type[argClasses.length];
        for (int i = 0; i < argClasses.length; i++) {
View Full Code Here

    @Override
  public Object clone() {
    try {
      return super.clone();
    } catch (CloneNotSupportedException e) {
      throw new ASMSupportException("cannot clone this");
    }
  }
View Full Code Here

        } else if (obj instanceof Class) {
         
          return new Value(AClassFactory.getProductClass((Class) obj));
         
        }
        throw new ASMSupportException("cannot support type " + obj.getClass() + " for this method!");
    }
View Full Code Here

      modifier.setClassWriter(cw);
      cr.accept(cv, 0);
      modifiedClassBytes = cw.toByteArray();
     
    } catch (Exception e) {
      throw new ASMSupportException(e.getMessage(), e);
    }
        return loader.loadClass(name);
  }
View Full Code Here

            if(log.isDebugEnabled()){
              log.debug("run operator " + factor1.getParamterizedType() + " " + operator + " " + factor2.getParamterizedType());
            }
            super.execute();
        }else{
            throw new ASMSupportException("the operator " + factor1.getParamterizedType() + " " + operator + " " +
                                          factor2.getParamterizedType() + " has not been used by other operator.");
        }
    }
View Full Code Here

    }

    @Override
    public void loadToStack(ProgramBlock block) {
        if(getReturnType().equals(Type.VOID_TYPE)){
            throw new ASMSupportException("cannot push the void return type to stack!");
        }
       
        boolean saveRef = isSaveReference();
        setSaveReference(true);
        this.execute();
View Full Code Here

TOP

Related Classes of cn.wensiqun.asmsupport.exception.ASMSupportException

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.