public interface ParserActions
(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.
| Modifier and Type | Method and Description |
|---|---|
ClassDefinition |
beginClass(long off,
String doc,
int mod,
IdentifierToken nm,
IdentifierToken sup,
IdentifierToken[] impl)
Define class
|
void |
defineField(long where,
ClassDefinition c,
String doc,
int mod,
Type t,
IdentifierToken nm,
IdentifierToken[] args,
IdentifierToken[] exp,
Node val)
Define a field
|
void |
endClass(long off,
ClassDefinition c)
End class
|
void |
importClass(long off,
IdentifierToken nm)
import class
|
void |
importPackage(long off,
IdentifierToken nm)
import package
|
void |
packageDeclaration(long off,
IdentifierToken nm)
package declaration
|
void packageDeclaration(long off,
IdentifierToken nm)
void importClass(long off,
IdentifierToken nm)
void importPackage(long off,
IdentifierToken nm)
ClassDefinition beginClass(long off, String doc, int mod, IdentifierToken nm, IdentifierToken sup, IdentifierToken[] impl)
void endClass(long off,
ClassDefinition c)
c - a cookie returned by the corresponding beginClass callvoid defineField(long where,
ClassDefinition c,
String doc,
int mod,
Type t,
IdentifierToken nm,
IdentifierToken[] args,
IdentifierToken[] exp,
Node val)
c - a cookie returned by the corresponding beginClass callCopyright © 2017–2020 Eclipse Foundation. All rights reserved.