Examples of Executable


Examples of mitza.dynamic.compile.Executable

  public void doTag() throws JspException {
    try {
      log.debug("componentUri={}, componentTemplateUri={}", componentUri, componentTemplateUri);

      DcpClassLoader loader = new DcpClassLoader(componentUri, componentTemplateUri);
      Executable dcpExecutable = loader.getExecutable();
      log.debug("Got Executable '{}'", dcpExecutable);
      String result = dcpExecutable.execute();

      JspContext context = getJspContext();
      JspWriter out = context.getOut();
      out.write(result);
    } catch (Exception e) {
View Full Code Here

Examples of net.sf.saxon.expr.instruct.Executable

    public void startDocument(URI baseURI) {
        inDocument = true;
        seenRoot = false;
        try {
            exec = new Executable(controller.getConfiguration());
            destination = new XdmDestination();
            receiver = destination.getReceiver(controller.getConfiguration());
            receiver = new NamespaceReducer(receiver);
           
            PipelineConfiguration pipe = controller.makePipelineConfiguration();
View Full Code Here

Examples of net.sf.saxon.instruct.Executable

    public String getSystemId() {
        if (locationId == -1) {
            return null;
        }
        Executable exec = getExecutable();
        if (exec == null) {
            return null;
        }
        LocationMap map = exec.getLocationMap();
        if (map == null) {
            return null;
        }
        return map.getSystemId(locationId);
    }
View Full Code Here

Examples of net.sf.saxon.instruct.Executable

     * Get the LocationProvider allowing location identifiers to be resolved.
     * @return the LocationProvider used to turn the location id into real location information
     */

    public LocationProvider getLocationProvider() {
        Executable exec = getExecutable();
        if (exec != null) {
            return exec.getLocationMap();
        } else {
            return null;
        }
    }
View Full Code Here

Examples of net.sf.saxon.instruct.Executable

     * @param config the configuration
     */

    protected void setConfiguration(Configuration config) {
        this.config = config;
        executable = new Executable(config);
        executable.setCollationTable(new CollationMap(config.getCollationMap()));
        executable.setHostLanguage(Configuration.XPATH);
    }
View Full Code Here

Examples of net.sf.saxon.instruct.Executable

     * @param visitor an expression visitor
     */

    public void checkFunctionCall(UserFunction compiledFunction,
                            ExpressionVisitor visitor) throws XPathException {
        Executable executable = visitor.getExecutable();
        boolean isXSLT = executable != null && executable.getHostLanguage() == Configuration.XSLT;
        int n = compiledFunction.getNumberOfArguments();
        for (int i=0; i<n; i++) {
            RoleLocator role = new RoleLocator(
                    RoleLocator.FUNCTION, compiledFunction.getFunctionName(), i);
            if (isXSLT) {
View Full Code Here

Examples of net.sf.saxon.instruct.Executable

        if (errorListener instanceof StandardErrorListener) {
            errorListener = ((StandardErrorListener)errorListener).makeAnother(Configuration.XQUERY);
            ((StandardErrorListener)errorListener).setRecoveryPolicy(Configuration.DO_NOT_RECOVER);
        }
        //collations = new CollationMap(config);
        executable = new Executable(config);
        executable.setCollationTable(new CollationMap(config.getCollationMap()));
        executable.setHostLanguage(Configuration.XQUERY);
        executable.setLocationMap(new LocationMap());
        executable.setSchemaAware((Boolean)config.getConfigurationProperty(FeatureKeys.XQUERY_SCHEMA_AWARE));
        reset();
View Full Code Here

Examples of net.sf.saxon.instruct.Executable

             if (errorListener instanceof StandardErrorListener) {
                 errorListener = ((StandardErrorListener)errorListener).makeAnother(Configuration.XQUERY);
                 ((StandardErrorListener)errorListener).setRecoveryPolicy(Configuration.DO_NOT_RECOVER);
             }
             //collations = new CollationMap(config);
             executable = new Executable(config);
             executable.setCollationTable(new CollationMap(config.getCollationMap()));
             executable.setHostLanguage(Configuration.XQUERY);
             executable.setLocationMap(new LocationMap());
             reset();
         } else {
View Full Code Here

Examples of net.sf.saxon.instruct.Executable

        errorListener = c.errorListener;
        tracing = c.tracing;
        generateCode = c.generateCode;
        isUpdating = c.isUpdating;
        languageVersion = c.languageVersion;
        executable = new Executable(config);
        executable.setCollationTable(new CollationMap(c.executable.getCollationTable()));
        executable.setHostLanguage(Configuration.XQUERY);
        executable.setLocationMap(new LocationMap());
    }
View Full Code Here

Examples of net.sf.saxon.instruct.Executable

     * @param visitor an ExpressionVisitor
     */

    public void refineVariableType(
            ItemType type, int cardinality, Value constantValue, int properties, ExpressionVisitor visitor) {
        Executable exec = visitor.getExecutable();
        if (exec == null) {
            // happens during use-when evaluation
            return;
        }
        TypeHierarchy th = exec.getConfiguration().getTypeHierarchy();
        ItemType oldItemType = getItemType(th);
        ItemType newItemType = oldItemType;
        if (th.isSubType(type, oldItemType)) {
            newItemType = type;
        }
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.