Package railo.runtime.type.scope

Examples of railo.runtime.type.scope.ObjectStruct


          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))
          throw new CasterException(o,"Struct");
        if(o instanceof Collection) return new CollectionStruct((Collection)o);

        if ( o == null )
            throw new CasterException( "null can not be casted to a Struct" );

        return new ObjectStruct(o);
    }
View Full Code Here

TOP

Related Classes of railo.runtime.type.scope.ObjectStruct

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.