Package railo.runtime

Examples of railo.runtime.Component.instanceOf()


                break;
           }
        }
        if(o instanceof Component) {
            Component comp=((Component)o);
            return comp.instanceOf(type);
        }
        if(isArrayType(type) && isArray(o)){
          String t=type.substring(0,type.length()-2);
          Array arr = Caster.toArray(o,null);
          if(arr!=null){
View Full Code Here


        case CFTypes.TYPE_XML:          return isXML(o);
    }
   
        if(o instanceof Component) {
          Component comp=((Component)o);
            return comp.instanceOf(strType);
        }
        if(isArrayType(strType) && isArray(o)){
          String _strType=strType.substring(0,strType.length()-2);
          short _type=CFTypes.toShort(_strType, false, (short)-1);
          Array arr = Caster.toArray(o,null);
View Full Code Here

        }
       
       
        if(o instanceof Component) {
            Component comp=((Component)o);
            if(comp.instanceOf(type)) return o;
            // neo batch
            throw new ExpressionException("can't cast Component of Type ["+comp.getAbsName()+"] to ["+type+"]");
        }
        throw new CasterException(o,type);
    }
View Full Code Here

        else if(type==CFTypes.TYPE_XML)            return toXML(o);
        else if(type==CFTypes.TYPE_FUNCTION)       return toFunction(o);

        if(o instanceof Component) {
            Component comp=((Component)o);
            if(comp.instanceOf(strType)) return o;
            throw new ExpressionException("can't cast Component of Type ["+comp.getAbsName()+"] to ["+strType+"]");
        }
       
        if(strType.endsWith("[]") && Decision.isArray(o)){
        String _strType=strType.substring(0,strType.length()-2);
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.