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


Field Summary
(package private)  ErrorStorage errorStorage
           
(package private)  IdentifierNode[] imports
           
(package private)  java.util.Vector importVector
           
(package private)  IdentifierNode packageName
           
 
Constructor Summary
(package private) JintClassTable.JintClassConsumer()
           
 
Method Summary
 void finishScope(java.lang.Object handle, BasicNode baseNode)
          This method is called when scope (class or method) is completely parsed.
 java.lang.Object startScope(java.lang.Object outer, Identifier className, int modifiers, IdentifierNode[] ext, IdentifierNode[] impl, java.lang.Class what)
          This method is called when a scope (class or method) is discovered by the parser.
 void storeError(CompilerException e)
           
 void tellErrorStorage(ErrorStorage errorStorage)
           
 void tellImport(IdentifierNode imp)
          Notifies class consumer when import statement is encountered.
 void tellPackage(IdentifierNode packagePath)
          Notifies class consumer when package statement is encountered.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

packageName

IdentifierNode packageName

importVector

java.util.Vector importVector

imports

IdentifierNode[] imports

errorStorage

ErrorStorage errorStorage
Constructor Detail

JintClassTable.JintClassConsumer

JintClassTable.JintClassConsumer()
Method Detail

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 classes
packageName - name of the package, or null for inner classes
name - 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