Package railo.runtime.component

Examples of railo.runtime.component.Member


    }
  }
 
 
  public static void addGet(ComponentImpl comp, Property prop) {
    Member m = comp.getMember(Component.ACCESS_PRIVATE,KeyImpl.getInstance("get"+prop.getName()),true,false);
    if(!(m instanceof UDF)){
      UDF udf = new UDFGetterProperty(comp,prop);
      comp.registerUDF(udf.getFunctionName(), udf);
    }
  }
View Full Code Here


      comp.registerUDF(udf.getFunctionName(), udf);
    }
  }

  public static void addSet(ComponentImpl comp, Property prop) throws PageException {
    Member m = comp.getMember(Component.ACCESS_PRIVATE,KeyImpl.getInstance("set"+prop.getName()),true,false);
    if(!(m instanceof UDF)){
      UDF udf = new UDFSetterProperty(comp,prop);
      comp.registerUDF(udf.getFunctionName(), udf);
    }
  }
View Full Code Here

      comp.registerUDF(udf.getFunctionName(), udf);
    }
  }
 
  public static void addHas(ComponentImpl comp, Property prop) {
    Member m = comp.getMember(Component.ACCESS_PRIVATE,KeyImpl.getInstance("has"+getSingularName(prop)),true,false);
    if(!(m instanceof UDF)){
      UDF udf = new UDFHasProperty(comp,prop);
      comp.registerUDF(udf.getFunctionName(), udf);
    }
  }
View Full Code Here

      comp.registerUDF(udf.getFunctionName(), udf);
    }
  }

  public static void addAdd(ComponentImpl comp, Property prop) {
    Member m = comp.getMember(ComponentImpl.ACCESS_PRIVATE,KeyImpl.getInstance("add"+getSingularName(prop)),true,false);
    if(!(m instanceof UDF)){
      UDF udf = new UDFAddProperty(comp,prop);
      comp.registerUDF(udf.getFunctionName(), udf);
    }
  }
View Full Code Here

      comp.registerUDF(udf.getFunctionName(), udf);
    }
  }

  public static void addRemove(ComponentImpl comp, Property prop) {
    Member m = comp.getMember(Component.ACCESS_PRIVATE,KeyImpl.getInstance("remove"+getSingularName(prop)),true,false);
    if(!(m instanceof UDF)){
      UDF udf = new UDFRemoveProperty(comp,prop);
      comp.registerUDF(udf.getFunctionName(), udf);
    }
  }
View Full Code Here

    /*public Object call(PageContext pc, String key, Object[] arguments) throws PageException {
      return call(pc, KeyImpl.init(key), arguments);
    }*/

  public Object call(PageContext pc, Collection.Key key, Object[] arguments) throws PageException {
      Member m = component.getMember(access, key, false,false);
    if(m!=null) {
      if(m instanceof UDFPlus) return ((UDFPlus)m).call(pc,key, arguments, false);
          throw ComponentUtil.notFunction(component, key, m.getValue(),access);
    }
    throw ComponentUtil.notFunction(component, key, null,access);
  }
View Full Code Here

    /*public Object callWithNamedValues(PageContext pc, String key, Struct args) throws PageException {
      return callWithNamedValues(pc, KeyImpl.init(key), args);
    }*/

  public Object callWithNamedValues(PageContext pc, Collection.Key key, Struct args) throws PageException {
      Member m = component.getMember(access, key, false,false);
    if(m!=null) {
      if(m instanceof UDFPlus) return ((UDFPlus)m).callWithNamedValues(pc,key, args, false);
          throw ComponentUtil.notFunction(component, key, m.getValue(),access);
    }
    throw ComponentUtil.notFunction(component, key, null,access);
  }
View Full Code Here

    }
  }

    Object _call(PageContext pc, Collection.Key key, Struct namedArgs, Object[] args,boolean superAccess) throws PageException {
     
      Member member=getMember(pc,key,false, superAccess);
     
      if(member instanceof UDFPlus) {
        return _call(pc,key,(UDFPlus)member,namedArgs,args);
        }
        return onMissingMethod(pc, -1, member, key.getString(), args, namedArgs, superAccess);
View Full Code Here

        }
        return onMissingMethod(pc, -1, member, key.getString(), args, namedArgs, superAccess);
    }

    Object _call(PageContext pc, int access, Collection.Key key, Struct namedArgs, Object[] args,boolean superAccess) throws PageException {
        Member member=getMember(access,key,false,superAccess);
        if(member instanceof UDF) {
            return _call(pc,key,(UDFPlus)member,namedArgs,args);
        }
        return onMissingMethod(pc, access, member, key.getString(), args, namedArgs, superAccess);
    }
View Full Code Here

        }
        return onMissingMethod(pc, access, member, key.getString(), args, namedArgs, superAccess);
    }
   
    public Object onMissingMethod(PageContext pc, int access,Member member,String name,Object _args[],Struct _namedArgs, boolean superAccess) throws PageException {
      Member ommm = access==-1?
          getMember(pc,KeyConstants._onmissingmethod,false, superAccess):
          getMember(access,KeyConstants._onmissingmethod,false, superAccess);
        if(ommm instanceof UDF) {
          Argument args=new ArgumentImpl();
          if(_args!=null) {
View Full Code Here

TOP

Related Classes of railo.runtime.component.Member

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.