Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.1.0)

E13403-02

oracle.javatools.parser.java.v1
Class JavaParser.ParsingOptions

java.lang.Object
  extended by oracle.javatools.parser.java.v1.JavaParser.ParsingOptions
Enclosing class:
JavaParser

public static class JavaParser.ParsingOptions
extends java.lang.Object

ParsingOptions is an encapsulation of the various parsing options available in the JavaParser. Clients will probably create a single ParsingOptions instance and use it for all their parsing needs.


Field Summary
 int inputType
          May be INPUT_JAVA_FILE, INPUT_BLOCK, INPUT_EXPR.
 int parseDepth
          May be DEPTH_MEMBERS, DEPTH_BLOCK, or DEPTH_FULL.
 boolean reportErrors
          May be ERRORS_CHOKE or ERRORS_REPORT.
 Scope scope
          When parsing expressions and code blocks, clients may specify what the enclosing scope is.
 int startOffset
          Clients may specify what start offset into the input to start parsing at.
 
Constructor Summary
JavaParser.ParsingOptions()
           
 
Method Summary
 java.lang.String toString()
          Create a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

reportErrors

public boolean reportErrors
May be ERRORS_CHOKE or ERRORS_REPORT. See the comments for each constant for details. Default is ERRORS_CHOKE.


inputType

public int inputType
May be INPUT_JAVA_FILE, INPUT_BLOCK, INPUT_EXPR. See the comments for each constant for details. Default is INPUT_JAVA_FILE.


parseDepth

public int parseDepth
May be DEPTH_MEMBERS, DEPTH_BLOCK, or DEPTH_FULL. See the comments for each constant for details. Default is DEPTH_FULL.


startOffset

public int startOffset
Clients may specify what start offset into the input to start parsing at. By default, parsing starts at offset 0.


scope

public Scope scope
When parsing expressions and code blocks, clients may specify what the enclosing scope is. Ignored when parsing root java.

Constructor Detail

JavaParser.ParsingOptions

public JavaParser.ParsingOptions()
Method Detail

toString

public java.lang.String toString()
Create a string representation of this object.

Overrides:
toString in class java.lang.Object

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.1.0)

E13403-02

Copyright © 1997, 2009, Oracle. All rights reserved.