Package railo.runtime.interpreter.ref.var

Examples of railo.runtime.interpreter.ref.var.Variable


    @Override
    public Object getValue(PageContext pc) throws PageException {
      // if ref == null, it is val based Casting
      if(ref==null) return Caster.castTo(pc,type,strType,val);
      if(ref instanceof Variable && "queryColumn".equalsIgnoreCase(strType)) {
        Variable var=(Variable) ref;
        return Caster.castTo(pc,type,strType,var.getCollection(pc));
      }
      return Caster.castTo(pc,type,strType,ref.getValue(pc));
    }
View Full Code Here


                // Extract next Var String
                cfml.removeSpace();
                name = identifier(true);
                if(name==null) throw new InterpreterException("Invalid identifier");
                cfml.removeSpace();
                ref=new Variable(ref,name);
            }
            // []
            else if (cfml.forwardIfCurrent('[')) {
              cfml.removeSpace();
                ref=new Variable(ref,assignOp());
                cfml.removeSpace();
                if (!cfml.forwardIfCurrent(']'))
                    throw new InterpreterException("Invalid Syntax Closing []] not found");
            }
            // finish
View Full Code Here

    private Ref scope(String idStr) {
        if (idStr.equals("var")) {
            String name=identifier(false);
            if(name!=null){
                cfml.removeSpace();
                return new Variable(new railo.runtime.interpreter.ref.var.Scope(ScopeSupport.SCOPE_VAR),name);
            }
        }
        int scope = VariableInterpreter.scopeString2Int(idStr);
        if(scope==Scope.SCOPE_UNDEFINED) {
            return new Variable(new railo.runtime.interpreter.ref.var.Scope(Scope.SCOPE_UNDEFINED),idStr);
        }
        return new railo.runtime.interpreter.ref.var.Scope(scope);
       
    }
View Full Code Here


    @Override
  public Object getValue(PageContext pc) throws PageException {
      if(left instanceof Variable) {
        Variable var = (Variable)left;
        String[] arr = LFunctionValue.toStringArray(pc, var);
          return railo.runtime.op.Elvis.operate(pc, arr)?left.getValue(pc):right.getValue(pc);
      }
     
      Object val = left.getValue(pc);
View Full Code Here

TOP

Related Classes of railo.runtime.interpreter.ref.var.Variable

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.