Package railo.runtime.component

Examples of railo.runtime.component.Member


    }*/
   
   
    protected java.util.List<Member> getMembers(int access) {
        java.util.List<Member> members=new ArrayList<Member>();
        Member e;
        Iterator<Entry<Key, Member>> it = _data.entrySet().iterator();
        while(it.hasNext()) {
          e=it.next().getValue();
            if(e.getAccess()<=access)members.add(e);
        }
        return members;
    }
View Full Code Here


        }
      if(superAccess) {
        return  _udfs.get(key);
        }
        // check data
        Member member=_data.get(key);
        if(member!=null) {
            if(member.getAccess()<=access)return member;
            return null;
        }
        return null;
    }
View Full Code Here

        }
        if(superAccess)
          return  _udfs.get(key);
       
        // check data
        Member member=_data.get(key);
        if(isAccessible(pc,member)) return member;
        return null;
    }
View Full Code Here

   * return the access of a member
   * @param key
   * @return returns the access (Component.ACCESS_REMOTE, ACCESS_PUBLIC, ACCESS_PACKAGE,Component.ACCESS_PRIVATE)
   */
  private int getAccess(Collection.Key key){
        Member member=getMember(ACCESS_PRIVATE,key,false,false);
        if(member==null) return Component.ACCESS_PRIVATE;
        return member.getAccess();
  }
View Full Code Here

   
    String castToString(boolean superAccess) throws PageException {
      // magic function
      PageContext pc = ThreadLocalPageContext.get();
    if(pc!=null) {
      Member member = getMember(pc,KeyConstants.__toString,true,superAccess);
      //Object o = get(pc,"_toString",null);
      if(member instanceof UDFPlus) {
        UDFPlus udf = (UDFPlus)member;
        if(udf.getReturnType()==CFTypes.TYPE_STRING && udf.getFunctionArguments().length==0) {
          return Caster.toString(_call(pc, KeyConstants.__toString,udf, null, new Object[0]));
View Full Code Here

   
    String castToString(boolean superAccess,String defaultValue) {
      // magic function
      PageContext pc = ThreadLocalPageContext.get();
    if(pc!=null) {
      Member member = getMember(pc,KeyConstants.__toString,true,superAccess);
      //Object o = get(pc,"_toString",null);
      if(member instanceof UDFPlus) {
        UDFPlus udf = (UDFPlus)member;
        if(udf.getReturnType()==CFTypes.TYPE_STRING && udf.getFunctionArguments().length==0) {
          try {
View Full Code Here

    boolean castToBooleanValue(boolean superAccess) throws PageException {
      // magic function
      PageContext pc = ThreadLocalPageContext.get();
    if(pc!=null) {
      Member member = getMember(pc,KeyConstants.__toBoolean,true,superAccess);
      //Object o = get(pc,"_toBoolean",null);
      if(member instanceof UDFPlus) {
        UDFPlus udf = (UDFPlus)member;
        if(udf.getReturnType()==CFTypes.TYPE_BOOLEAN && udf.getFunctionArguments().length==0) {
          return Caster.toBooleanValue(_call(pc, KeyConstants.__toBoolean,udf, null, new Object[0]));
View Full Code Here

   
    Boolean castToBoolean(boolean superAccess,Boolean defaultValue) {
      // magic function
      PageContext pc = ThreadLocalPageContext.get();
    if(pc!=null) {
      Member member = getMember(pc,KeyConstants.__toBoolean,true,superAccess);
      //Object o = get(pc,"_toBoolean",null);
      if(member instanceof UDFPlus) {
        UDFPlus udf = (UDFPlus)member;
        if(udf.getReturnType()==CFTypes.TYPE_BOOLEAN && udf.getFunctionArguments().length==0) {
          try {
View Full Code Here

   
    double castToDoubleValue(boolean superAccess) throws PageException {
      // magic function
      PageContext pc = ThreadLocalPageContext.get();
    if(pc!=null) {
      Member member = getMember(pc,KeyConstants.__toNumeric,true,superAccess);
      //Object o = get(pc,"_toNumeric",null);
      if(member instanceof UDFPlus) {
        UDFPlus udf = (UDFPlus)member;
        if(udf.getReturnType()==CFTypes.TYPE_NUMERIC && udf.getFunctionArguments().length==0) {
          return Caster.toDoubleValue(_call(pc, KeyConstants.__toNumeric,udf, null, new Object[0]));
View Full Code Here

    }
    double castToDoubleValue(boolean superAccess,double defaultValue) {
      // magic function
      PageContext pc = ThreadLocalPageContext.get();
    if(pc!=null) {
      Member member = getMember(pc,KeyConstants.__toNumeric,true,superAccess);
      //Object o = get(pc,"_toNumeric",null);
      if(member instanceof UDFPlus) {
        UDFPlus udf = (UDFPlus)member;
        if(udf.getReturnType()==CFTypes.TYPE_NUMERIC && udf.getFunctionArguments().length==0) {
          try {
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.