Package railo.runtime.type.scope

Examples of railo.runtime.type.scope.Local


        newArgs.setFunctionArgumentNames(properties.argumentsSet);
        LocalImpl newLocal=pci.getScopeFactory().getLocalInstance();
       
    Undefined   undefined=pc.undefinedScope();
    Argument  oldArgs=pc.argumentsScope();
        Local    oldLocal=pc.localScope();
        Collection.Key oldCalledName=pci.getActiveUDFCalledName();
       
    pc.setFunctionScopes(newLocal,newArgs);
    pci.setActiveUDFCalledName(calledName);
   
View Full Code Here


        Undefined undefined=(Undefined) scope;
       
        boolean check=undefined.getCheckArguments();
        Variables orgVar=pc.variablesScope();
        Argument orgArgs=pc.argumentsScope();
            Local orgLocal=pc.localScope();
       
        pci.setVariablesScope(undefined.variablesScope());
        if(check)pci.setFunctionScopes(undefined.localScope(), undefined.argumentsScope());
            try{
              if(value!=NULL) return setVariable(pc, str,value);
View Full Code Here

    }
   
    newLocal.setEL(KEY_ATTRIBUTES, newArgs);

    Argument oldArgs=pc.argumentsScope();
        Local oldLocal=pc.localScope();
       
        int oldMode=undefined.setMode(Undefined.MODE_LOCAL_OR_ARGUMENTS_ALWAYS);
    pc.setFunctionScopes(newLocal,newArgs);
   
    try {
View Full Code Here

    // define a ohter enviroment for the function
    if(objs.length>1 && objs[objs.length-1] instanceof Scope){
     
      // Variables Scope
      Variables var=null;
      Local lcl=null,cLcl=null;
      Argument arg=null,cArg=null;
      if(objs[objs.length-1] instanceof Variables){
        var=(Variables) objs[objs.length-1];
      }
      else if(objs[objs.length-1] instanceof CallerImpl){
        CallerImpl ci = ((CallerImpl) objs[objs.length-1]);
        var=ci.getVariablesScope();
        lcl = ci.getLocalScope();
        arg = ci.getArgumentsScope();
      }
     
      if(var!=null){
        Variables cVar=pc.variablesScope();
        pc.setVariablesScope(var);
        if(lcl!=null && !(lcl instanceof LocalNotSupportedScope)) {
          cLcl = pc.localScope();
          cArg=pc.argumentsScope();
          pc.setFunctionScopes(lcl, arg);
        }
            try{
              return _call(pc, objs,objs.length-1,preciseMath);
            }
            finally{
              pc.setVariablesScope(cVar);
              if(cLcl!=null) pc.setFunctionScopes(cLcl, cArg);
            }
      }
     
      // Undefined Scope
      else if(objs[objs.length-1] instanceof Undefined) {
        PageContextImpl pci=(PageContextImpl) pc;
        Undefined undefined=(Undefined) objs[objs.length-1];
       
        boolean check=undefined.getCheckArguments();
        Variables orgVar=pc.variablesScope();
        Argument orgArgs=pc.argumentsScope();
            Local orgLocal=pc.localScope();
       
        pci.setVariablesScope(undefined.variablesScope());
        if(check)pci.setFunctionScopes(undefined.localScope(), undefined.argumentsScope());
            try{
              return _call(pc, objs,objs.length-1,preciseMath);
View Full Code Here

TOP

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

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.