Package org.glassfish.rmic.tools.java
Interface ParserActions
-
- All Known Implementing Classes:
BatchParser,Parser
public interface ParserActionsThis is the protocol by which a Parser makes callbacks to the later phases of the compiler.(As a backwards compatibility trick, Parser implements this protocol, so that an instance of a Parser subclass can handle its own actions. The preferred way to use a Parser, however, is to instantiate it directly with a reference to your own ParserActions implementation.) 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClassDefinitionbeginClass(long off, java.lang.String doc, int mod, IdentifierToken nm, IdentifierToken sup, IdentifierToken[] impl)Define classvoiddefineField(long where, ClassDefinition c, java.lang.String doc, int mod, Type t, IdentifierToken nm, IdentifierToken[] args, IdentifierToken[] exp, Node val)Define a fieldvoidendClass(long off, ClassDefinition c)End classvoidimportClass(long off, IdentifierToken nm)import classvoidimportPackage(long off, IdentifierToken nm)import packagevoidpackageDeclaration(long off, IdentifierToken nm)package declaration
-
-
-
Method Detail
-
packageDeclaration
void packageDeclaration(long off, IdentifierToken nm)package declaration
-
importClass
void importClass(long off, IdentifierToken nm)import class
-
importPackage
void importPackage(long off, IdentifierToken nm)import package
-
beginClass
ClassDefinition beginClass(long off, java.lang.String doc, int mod, IdentifierToken nm, IdentifierToken sup, IdentifierToken[] impl)
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.
-
endClass
void endClass(long off, ClassDefinition c)End class- Parameters:
c- a cookie returned by the corresponding beginClass call
-
defineField
void defineField(long where, ClassDefinition c, java.lang.String doc, int mod, Type t, IdentifierToken nm, IdentifierToken[] args, IdentifierToken[] exp, Node val)Define a field- Parameters:
c- a cookie returned by the corresponding beginClass call
-
-