Package railo.runtime.component

Examples of railo.runtime.component.Member


  private static TagLibTag getAttributeRequirments(Component cfc, boolean runtime) throws ExpressionException {
   
    Struct meta=null;
      //try {
        //meta = Caster.toStruct(cfc.get(Component.ACCESS_PRIVATE, METADATA),null,false);
        Member mem = ComponentUtil.toComponentAccess(cfc).getMember(Component.ACCESS_PRIVATE, KeyConstants._metadata,true,false);
        if(mem!=null)meta = Caster.toStruct(mem.getValue(),null,false);
    //}catch (PageException e) {e.printStackTrace();}
      if(meta==null) return null;
     
      TagLibTag tag=new TagLibTag(null);
    // TAG
View Full Code Here


    if(o instanceof UDFPlus) {
      return ((UDFPlus)o).call(pc,key, arguments, false);
    }
   
    // then check in component
    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!=null?m.getValue():null,access);
  }
View Full Code Here

    Object o=shadow.get(key);
    if(o instanceof UDFPlus) {
      return ((UDFPlus)o).callWithNamedValues(pc,key, args, false);
    }
   
    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

 



  private static Object get(ComponentAccess app, Key name,String defaultValue) {
    Member mem = app.getMember(Component.ACCESS_PRIVATE, name, true, false);
    if(mem==null) return defaultValue;
    return mem.getValue();
  }
View Full Code Here

    return get(KeyImpl.init(name), defaultValue);
  }

  @Override
  public Object get(Key key) throws PageException {
    Member member=comp.getMember(getAccess(),key,true,true);
        if(member!=null) return member.getValue();
        return comp.get(getAccess(), key);
  }
View Full Code Here

        return comp.get(getAccess(), key);
  }

  @Override
  public Object get(Key key, Object defaultValue) {
    Member member=comp.getMember(getAccess(),key,true,true);
        if(member!=null) return member.getValue();
    return comp.get(getAccess(), key, defaultValue);
  }
View Full Code Here

    }
  }


  private static Object get(ComponentAccess app, Key name,String defaultValue) {
    Member mem = app.getMember(Component.ACCESS_PRIVATE, name, true, false);
    if(mem==null) return defaultValue;
    return mem.getValue();
  }
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.