Package cn.wensiqun.asmsupport.exception

Examples of cn.wensiqun.asmsupport.exception.ClassException


  }
   
  @Override
  protected void verifyArgument() {
    if(!(arrayReference.getParamterizedType() instanceof ArrayClass)){
          throw new ClassException(toString() + " : the declare class of " + arrayReference.toString() + " is not a array type");
        }
   
    if(ArrayUtils.isNotEmpty(parDims)){
      for(Parameterized par : parDims){
        AClassUtils.autoCastTypeCheck(par.getParamterizedType(), AClass.INT_ACLASS);
View Full Code Here


  }
 
 
  private static ArrayClass getAndAddForArray(AClass rootComponent, int dim){
        if(rootComponent.isArray()){
            throw new ClassException("the class " + rootComponent + " has already a array clss");
        }
   
        StringBuilder arrayClassDesc = new StringBuilder();
        int tmpDim = dim;
        while(tmpDim-- > 0){
View Full Code Here

     * @param arrayCls
     * @return
     */
    public static ArrayClass getArrayClass(Class<?> arrayCls){
        if(!arrayCls.isArray()){
            throw new ClassException("the class" + arrayCls + " is not a array class");
        }
        return (ArrayClass) getProductClass(arrayCls);
    }
View Full Code Here

    public AbstractClassCreatorContext(int version, int access, String name,
            Class<?> superCls, Class<?>[] interfaces) {
        if (superCls == null) {
            superCls = Object.class;
        } else if (superCls.isInterface()) {
            throw new ClassException("the super class \"" + superCls.getName()
                    + "\" is an interface");
        }
        sc = newSemiClass(version, access, name, superCls, interfaces);
        cw = new ClassWriter(0);
        methodCreaters = new ArrayList<IMethodCreator>();
View Full Code Here

TOP

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

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.