Package railo.runtime.java

Examples of railo.runtime.java.JavaObject


        MethodInstance mi=getMethodInstanceEL(obj,clazz, KeyImpl.getInstance(methodName), args);
        if(mi!=null) return mi;
       
        Class[] classes = getClasses(args);
        //StringBuilder sb=null;
        JavaObject jo;
        Class c;
        ConstructorInstance ci;
        for(int i=0;i<classes.length;i++){
          if(args[i] instanceof JavaObject) {
            jo=(JavaObject) args[i];
            c=jo.getClazz();
            ci = Reflector.getConstructorInstance(c, new Object[0], null);
            if(ci==null) {
             
            throw new NoSuchMethodException("The "+pos(i+1)+" parameter of "+methodName+"("+getDspMethods(classes)+") ia a object created " +
                "by the createObject function (JavaObject/JavaProxy). This object has not been instantiated because it does not have a constructor " +
View Full Code Here


        else if(o instanceof ObjectWrap) {
          if(o instanceof JavaObject ) {
            Struct sct = toStruct(((JavaObject)o).getEmbededObject(null),null,caseSensitive);
              if(sct!=null) return sct;
           
            JavaObject jo = (JavaObject)o;
            return new ObjectStruct(jo);
          }
            return toStruct(((ObjectWrap)o).getEmbededObject(),caseSensitive);
        }
        if(Decision.isSimpleValue(o) || Decision.isArray(o))
View Full Code Here

  }

  public static Objects toObjects(PageContext pc,Object obj) throws PageException {
    if(obj instanceof Objects) return (Objects) obj;
    if(obj instanceof ObjectWrap) return toObjects(pc,((ObjectWrap)obj).getEmbededObject());
    return new JavaObject(pc.getVariableUtil(), obj);
  }
View Full Code Here

  private JavaObject jo;

  public ObjectStruct(Object o) {
    if(o instanceof JavaObject) this.jo=(JavaObject) o;
    else this.jo=new JavaObject(ThreadLocalPageContext.get().getVariableUtil(),o);
  }
View Full Code Here

                }
            }
            else throw ce;
          }
         
            return new JavaObject((pc).getVariableUtil(),clazz);
          }
      catch (Exception e) {
        throw Caster.toPageException(e);
      }
        }
View Full Code Here

TOP

Related Classes of railo.runtime.java.JavaObject

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.