com.jstatcom.model
Class Scope

java.lang.Object
  extended by com.jstatcom.model.Scope

public abstract class Scope
extends java.lang.Object

This typesave enumeration contains all existing Scope types. It can be used to set the scope that certain components should use to retrieve symbols from.

Author:
Markus Kraetzig

Field Summary
static Scope GLOBAL
          The local symbol scope.
static Scope LOCAL
          The local symbol scope.
static Scope UPPER
          The local symbol scope.
 
Method Summary
abstract  SymbolTable getSymbolTable(java.awt.Component comp)
          Gets the symbol table according to this scope from the component hierarchy.
 java.lang.String toString()
          Gets string representation of this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GLOBAL

public static final Scope GLOBAL
The local symbol scope.


UPPER

public static final Scope UPPER
The local symbol scope.


LOCAL

public static final Scope LOCAL
The local symbol scope.

Method Detail

getSymbolTable

public abstract SymbolTable getSymbolTable(java.awt.Component comp)
Gets the symbol table according to this scope from the component hierarchy. The method returns null of there is no parent SymbolScope.

Parameters:
comp - the component to start searching from
Returns:
the symbol table or null

toString

public final java.lang.String toString()
Gets string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
a string