com.sun.tools.javac.parser
Class Scanner.Factory

java.lang.Object
  extended by com.sun.tools.javac.parser.Scanner.Factory
Direct Known Subclasses:
DocCommentScanner.Factory
Enclosing class:
Scanner

public static class Scanner.Factory
extends java.lang.Object

A factory for creating scanners.


Field Summary
(package private)  Keywords keywords
           
(package private)  Log log
           
(package private)  Names names
           
static Context.Key<Scanner.Factory> scannerFactoryKey
          The context key for the scanner factory.
(package private)  Source source
           
 
Constructor Summary
protected Scanner.Factory(Context context)
          Create a new scanner factory.
 
Method Summary
static Scanner.Factory instance(Context context)
          Get the Factory instance for this context.
 Scanner newScanner(char[] input, int inputLength)
           
 Scanner newScanner(java.lang.CharSequence input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scannerFactoryKey

public static final Context.Key<Scanner.Factory> scannerFactoryKey
The context key for the scanner factory.


log

final Log log

names

final Names names

source

final Source source

keywords

final Keywords keywords
Constructor Detail

Scanner.Factory

protected Scanner.Factory(Context context)
Create a new scanner factory.

Method Detail

instance

public static Scanner.Factory instance(Context context)
Get the Factory instance for this context.


newScanner

public Scanner newScanner(java.lang.CharSequence input)

newScanner

public Scanner newScanner(char[] input,
                          int inputLength)