📄 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 + -