org.jaitools.jiffle.parser
Class Symbol

java.lang.Object
  extended by org.jaitools.jiffle.parser.Symbol

public class Symbol
extends java.lang.Object

Represents a symbol in a Jiffle script. Used by SymbolScopeStack during script compilation.

Since:
0.1
Version:
$Id: Symbol.java 1653 2011-06-16 10:23:02Z michael.bedward $
Author:
Michael Bedward

Constructor Summary
Symbol(java.lang.String name, SymbolType type, ScopeType scopeType)
          Creates a new symbol.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getName()
          Gets this symbol's name.
 ScopeType getScopeType()
          Gets this symbol's scope type.
 SymbolType getType()
          Gets this symbol's type.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Symbol

public Symbol(java.lang.String name,
              SymbolType type,
              ScopeType scopeType)
Creates a new symbol.

Parameters:
name - name as used in the Jiffle script
type - type of symbol
scopeType - scope of symbol
Method Detail

getName

public java.lang.String getName()
Gets this symbol's name.

Returns:
symbol name

getType

public SymbolType getType()
Gets this symbol's type.

Returns:
symbol type

getScopeType

public ScopeType getScopeType()
Gets this symbol's scope type.

Returns:
symbol scope type

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2011. All Rights Reserved.