Overview | Package | Class | Deprecated | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.sf.saxon.trans
Class CompilerInfo

    java.lang.Object
      net.sf.saxon.trans.CompilerInfo

    public class CompilerInfo

extends Object

This class exists to hold information associated with a specific XSLT compilation episode. In JAXP, the URIResolver and ErrorListener used during XSLT compilation are those defined in the TransformerFactory. The .NET API, however, allows finer granularity, and this class exists to support that.

Constructor Summary
`CompilerInfo()`

Method Summary
`ErrorListener` | `getErrorListener()` Get the ErrorListener being used during this compilation episode
`URIResolver` | `getURIResolver()` Get the URI Resolver being used in this compilation episode.
`boolean` | `isCompileWithTracing()` Determine whether trace hooks are included in the compiled code.
`void` | `setCompileWithTracing(boolean trueOrFalse)` Set whether trace hooks are to be included in the compiled code.
`void` | `setErrorListener(ErrorListener listener)` Set the ErrorListener to be used during this compilation episode
`void` | `setURIResolver(URIResolver resolver)` Set the URI Resolver to be used in this compilation episode.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CompilerInfo

    public CompilerInfo()

Method Detail

### setURIResolver

    public void setURIResolver(URIResolver resolver)

  Set the URI Resolver to be used in this compilation episode.

  Parameters:
    `resolver` - The URIResolver to be used. This is used to dereference URIs encountered in constructs such as xsl:include, xsl:import, and xsl:import-schema.
  Since:
    8.7

### getURIResolver

    public URIResolver getURIResolver()

  Get the URI Resolver being used in this compilation episode.

  Returns:
    resolver The URIResolver in use. This is used to dereference URIs encountered in constructs such as xsl:include, xsl:import, and xsl:import-schema.
  Since:
    8.7

### setErrorListener

    public void setErrorListener(ErrorListener listener)

  Set the ErrorListener to be used during this compilation episode

  Parameters:
    `listener` - The error listener to be used. This is notified of all errors detected during the compilation.
  Since:
    8.7

### getErrorListener

    public ErrorListener getErrorListener()

  Get the ErrorListener being used during this compilation episode

  Returns:
    listener The error listener in use. This is notified of all errors detected during the compilation.
  Since:
    8.7

### setCompileWithTracing

    public void setCompileWithTracing(boolean trueOrFalse)

  Set whether trace hooks are to be included in the compiled code. To use tracing, it is necessary both to compile the code with trace hooks included, and to supply a TraceListener at run-time

  Parameters:
    `trueOrFalse` - true if trace code is to be compiled in, false otherwise
  Since:
    8.9

### isCompileWithTracing

    public boolean isCompileWithTracing()

  Determine whether trace hooks are included in the compiled code.

  Returns:
    true if trace hooks are included, false if not.
  Since:
    8.9

Overview | Package | Class | Deprecated | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (C) Michael H. Kay. All rights reserved.