?? isymboltable.java
字號:
/**
* Soft Gems Resource parser. Created by Mike Lischke.
*
* The source code in this file can freely be used for any purpose provided this notice remains
* unchanged in the file.
*
* Copyright 2004 by Mike Lischke, www.soft-gems.net, public@soft-gems.net. All rights reserved.
*/
package net.softgems.resourceparser.expressions;
/**
* This interface supplies a lookup facility for symbol to value mappings.
*/
public interface ISymbolTable
{
//------------------------------------------------------------------------------------------------
/**
* Takes the given symbol and looks for it in the internal list. If a symbol definition exists then
* its value (which also can be <b>null</b>) and returns it to the caller.
*
* @param symbol The symbol to look for.
* @param line The line number of the actual input where this symbol was read from.
* @param column The column number of the symbol.
* @return A single value (Integer, String, Double etc.) for the given name or <b>null</b> if
* the symbol does not represent a value or is not defined.
*/
public Object lookup(String symbol, int line, int column);
//------------------------------------------------------------------------------------------------
/**
* Determines, whether the given symbol is defined in the symbol table.
*
* @param symbol The name of the symbol to lookup for.
* @return <b>true</b> if the symbol is defined, otherwise <b>false</b>.
*/
public boolean isDefined(String symbol);
//------------------------------------------------------------------------------------------------
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -