kmy.jint.reflect
Class JintClassTable.JintClassConsumer
java.lang.Object
|
+--kmy.jint.parser.ClassConsumer
|
+--kmy.jint.reflect.JintClassTable.JintClassConsumer
- Enclosing class:
- JintClassTable
- class JintClassTable.JintClassConsumer
- extends ClassConsumer
- implements ErrorStorage
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
packageName
IdentifierNode packageName
importVector
java.util.Vector importVector
imports
IdentifierNode[] imports
errorStorage
ErrorStorage errorStorage
JintClassTable.JintClassConsumer
JintClassTable.JintClassConsumer()
tellImport
public void tellImport(IdentifierNode imp)
- Description copied from class: ClassConsumer
- Notifies class consumer when import statement is encountered.
- Overrides:
- tellImport in class ClassConsumer
tellPackage
public void tellPackage(IdentifierNode packagePath)
- Description copied from class: ClassConsumer
- Notifies class consumer when package statement is encountered.
- Overrides:
- tellPackage in class ClassConsumer
tellErrorStorage
public void tellErrorStorage(ErrorStorage errorStorage)
- Overrides:
- tellErrorStorage in class ClassConsumer
storeError
public void storeError(CompilerException e)
- Specified by:
- storeError in interface ErrorStorage
startScope
public java.lang.Object startScope(java.lang.Object outer,
Identifier className,
int modifiers,
IdentifierNode[] ext,
IdentifierNode[] impl,
java.lang.Class what)
- Description copied from class: ClassConsumer
- This method is called when a scope (class or method) is discovered by the parser.
Note that scope is not just any {...}, it is either class or method (or [...] block
in Jint which is considered to be an inner class with single method).
- Overrides:
- startScope in class ClassConsumer
- Tags copied from class: ClassConsumer
- Parameters:
outerHanle
- handle to the outer class or null for top-level classespackageName
- name of the package, or null for inner classesname
- class name
finishScope
public void finishScope(java.lang.Object handle,
BasicNode baseNode)
- Description copied from class: ClassConsumer
- This method is called when scope (class or method) is completely parsed.
- Overrides:
- finishScope in class ClassConsumer