public class

BatchParser

extends Parser
java.lang.Object
   ↳ sun.tools.java.Scanner
     ↳ sun.tools.java.Parser
       ↳ sun.tools.javac.BatchParser

Class Overview

Batch file parser, this needs more work. WARNING: The contents of this source file are not part of any supported API. Code that depends on them does so at its own risk: they are subject to change or removal without notice.

Summary

[Expand]
Inherited Constants
From class sun.tools.java.Scanner
From interface sun.tools.java.Constants
From interface sun.tools.java.RuntimeConstants
Fields
protected Vector classes The classes defined in this file
protected Imports imports The current imports
protected Identifier pkg The current package
protected SourceClass sourceClass The current class
protected Environment toplevelEnv The toplevel environment
[Expand]
Inherited Fields
From class sun.tools.java.Parser
From class sun.tools.java.Scanner
From interface sun.tools.java.Constants
From interface sun.tools.java.RuntimeConstants
Public Constructors
BatchParser(Environment env, InputStream in)
Create a batch file parser
Public Methods
ClassDefinition beginClass(long where, String doc, int mod, IdentifierToken t, IdentifierToken sup, IdentifierToken[] interfaces)
This method is deprecated. No replacement.
void defineField(long where, ClassDefinition c, String doc, int mod, Type t, IdentifierToken name, IdentifierToken[] args, IdentifierToken[] exp, Node val)
This method is deprecated. No replacement.
void endClass(long where, ClassDefinition c)
This method is deprecated. No replacement.
ClassDefinition getCurrentClass()
Report the current class under construction.
void importClass(long pos, IdentifierToken t)
This method is deprecated. No replacement.
void importPackage(long pos, IdentifierToken t)
This method is deprecated. No replacement.
void packageDeclaration(long where, IdentifierToken t)
This method is deprecated. No replacement.
[Expand]
Inherited Methods
From class sun.tools.java.Parser
From class sun.tools.java.Scanner
From class java.lang.Object
From interface sun.tools.java.ParserActions

Fields

protected Vector classes

The classes defined in this file

protected Imports imports

The current imports

protected Identifier pkg

The current package

protected SourceClass sourceClass

The current class

protected Environment toplevelEnv

The toplevel environment

Public Constructors

public BatchParser (Environment env, InputStream in)

Create a batch file parser

Throws
IOException

Public Methods

public ClassDefinition beginClass (long where, String doc, int mod, IdentifierToken t, IdentifierToken sup, IdentifierToken[] interfaces)

This method is deprecated.
No replacement.

Define class

Returns
  • a cookie for the class This cookie is used by the parser when calling defineField and endClass, and is not examined otherwise.

public void defineField (long where, ClassDefinition c, String doc, int mod, Type t, IdentifierToken name, IdentifierToken[] args, IdentifierToken[] exp, Node val)

This method is deprecated.
No replacement.

Define a method

Parameters
c a cookie returned by the corresponding beginClass call

public void endClass (long where, ClassDefinition c)

This method is deprecated.
No replacement.

End class

Parameters
c a cookie returned by the corresponding beginClass call

public ClassDefinition getCurrentClass ()

Report the current class under construction.

public void importClass (long pos, IdentifierToken t)

This method is deprecated.
No replacement.

Import class

public void importPackage (long pos, IdentifierToken t)

This method is deprecated.
No replacement.

Import package

public void packageDeclaration (long where, IdentifierToken t)

This method is deprecated.
No replacement.

Package declaration