Examples of GlobalVariable


Examples of net.sf.saxon.instruct.GlobalVariable

        }

        if (!redundant) {
            GeneralVariable inst;
            if (global) {
                inst = new GlobalVariable();
                ((GlobalVariable)inst).setExecutable(getExecutable());
                ((GlobalVariable)inst).setHostLanguage(Configuration.XSLT);
                if (select != null) {
                    select.setContainer(((GlobalVariable)inst));
                }
View Full Code Here

Examples of net.sf.saxon.instruct.GlobalVariable

        }
        HashMap map = executable.getCompiledGlobalVariables();
        if (map != null) {
            Iterator iter = map.values().iterator();
            while (iter.hasNext()) {
                GlobalVariable var = (GlobalVariable)iter.next();
                Expression select = var.getSelectExpression();
                if (select != null && (select.getDependencies() & StaticProperty.DEPENDS_ON_FOCUS) != 0) {
                    return true;
                }
            }
        }
View Full Code Here

Examples of net.sf.saxon.instruct.GlobalVariable

        }
        HashMap map = executable.getCompiledGlobalVariables();
        if (map != null) {
            Iterator iter = map.values().iterator();
            while (iter.hasNext()) {
                GlobalVariable var = (GlobalVariable)iter.next();
                Expression select = var.getSelectExpression();
                select.addToPathMap(pathMap, null);
            }
        }
        return pathMap;
    }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.eval.GlobalVariable

}
/**
* @see org.aspectj.org.eclipse.jdt.core.eval.IEvaluationContext#newVariable(String, String, String)
*/
public IGlobalVariable newVariable(String typeName, String name, String initializer) {
  GlobalVariable newVar =
    this.context.newVariable(
      typeName.toCharArray(),
      name.toCharArray(),
      (initializer == null) ?
        null :
View Full Code Here

Examples of org.eclipse.jdt.internal.eval.GlobalVariable

}
/**
* @see org.eclipse.jdt.core.eval.IEvaluationContext#newVariable(String, String, String)
*/
public IGlobalVariable newVariable(String typeName, String name, String initializer) {
  GlobalVariable newVar =
    this.context.newVariable(
      typeName.toCharArray(),
      name.toCharArray(),
      (initializer == null) ?
        null :
View Full Code Here

Examples of org.jruby.compiler.ir.operands.GlobalVariable

import org.jruby.interpreter.InterpreterContext;
import org.jruby.runtime.builtin.IRubyObject;

public class GetGlobalVariableInstr extends GetInstr {
    public GetGlobalVariableInstr(Variable dest, String gvarName) {
        super(Operation.GET_GLOBAL_VAR, dest, new GlobalVariable(gvarName), null);
    }
View Full Code Here

Examples of org.jruby.compiler.ir.operands.GlobalVariable

import org.jruby.runtime.builtin.IRubyObject;

public class PutGlobalVarInstr extends PutInstr {

    public PutGlobalVarInstr(String varName, Operand value) {
        super(Operation.PUT_GLOBAL_VAR, new GlobalVariable(varName), null, value);
    }
View Full Code Here

Examples of org.jruby.internal.runtime.GlobalVariable

                    assert name != null;
                    assert accessor != null;
                    assert name.startsWith("$");
                    synchronized (ctx) {
                        Bindings engineScope = ctx.getBindings(ScriptContext.ENGINE_SCOPE);                 
                        engineScope.put(name, new GlobalVariable(accessor));
                    }
                }


                public void defineReadonly(String name, IAccessor accessor) {
                    assert name != null;
                    assert accessor != null;
                    assert name.startsWith("$");
                    synchronized (ctx) {
                        Bindings engineScope = ctx.getBindings(ScriptContext.ENGINE_SCOPE);
                        engineScope.put(name, new GlobalVariable(new
                                             ReadonlyAccessor(name, accessor)));
                    }
                }

                public boolean isDefined(String name) {
View Full Code Here

Examples of org.jruby.internal.runtime.GlobalVariable

                    assert name != null;
                    assert accessor != null;
                    assert name.startsWith("$");
                    synchronized (ctx) {
                        Bindings engineScope = ctx.getBindings(ScriptContext.ENGINE_SCOPE);                 
                        engineScope.put(name, new GlobalVariable(accessor));
                    }
                }


                @Override
                public void defineReadonly(String name, IAccessor accessor) {
                    assert name != null;
                    assert accessor != null;
                    assert name.startsWith("$");
                    synchronized (ctx) {
                        Bindings engineScope = ctx.getBindings(ScriptContext.ENGINE_SCOPE);
                        engineScope.put(name, new GlobalVariable(new
                                             ReadonlyAccessor(name, accessor)));
                    }
                }

                @Override
View Full Code Here

Examples of org.jruby.internal.runtime.GlobalVariable

                    assert name != null;
                    assert accessor != null;
                    assert name.startsWith("$");
                    synchronized (ctx) {
                        Bindings engineScope = ctx.getBindings(ScriptContext.ENGINE_SCOPE);                 
                        engineScope.put(name, new GlobalVariable(accessor));
                    }
                }


                @Override
                public void defineReadonly(String name, IAccessor accessor) {
                    assert name != null;
                    assert accessor != null;
                    assert name.startsWith("$");
                    synchronized (ctx) {
                        Bindings engineScope = ctx.getBindings(ScriptContext.ENGINE_SCOPE);
                        engineScope.put(name, new GlobalVariable(new
                                             ReadonlyAccessor(name, accessor)));
                    }
                }

                @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.