Package com.ibm.wala.cast.ir.translator
Class AstTranslator.AbstractScope
- java.lang.Object
-
- com.ibm.wala.cast.ir.translator.AstTranslator.AbstractScope
-
- All Implemented Interfaces:
AstTranslator.Scope
- Enclosing class:
- AstTranslator
public abstract class AstTranslator.AbstractScope extends Object implements AstTranslator.Scope
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractScope(AstTranslator.Scope parent)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.wala.cast.ir.translator.AstTranslator.Scope
type
-
-
-
-
Constructor Detail
-
AbstractScope
protected AbstractScope(AstTranslator.Scope parent)
-
-
Method Detail
-
getUnderlyingSymtab
protected abstract SymbolTable getUnderlyingSymtab()
-
getParent
public AstTranslator.Scope getParent()
- Specified by:
getParent
in interfaceAstTranslator.Scope
-
size
public int size()
- Specified by:
size
in interfaceAstTranslator.Scope
-
getAllNames
public Iterator<String> getAllNames()
- Specified by:
getAllNames
in interfaceAstTranslator.Scope
-
allocateTempValue
public int allocateTempValue()
- Specified by:
allocateTempValue
in interfaceAstTranslator.Scope
-
getConstantValue
public int getConstantValue(Object o)
- Specified by:
getConstantValue
in interfaceAstTranslator.Scope
-
isConstant
public boolean isConstant(int valueNumber)
- Specified by:
isConstant
in interfaceAstTranslator.Scope
-
getConstantObject
public Object getConstantObject(int valueNumber)
- Specified by:
getConstantObject
in interfaceAstTranslator.Scope
-
declare
public void declare(CAstSymbol s, int vn)
- Specified by:
declare
in interfaceAstTranslator.Scope
-
declare
public void declare(CAstSymbol s)
- Specified by:
declare
in interfaceAstTranslator.Scope
-
makeSymbol
protected AstTranslator.Symbol makeSymbol(CAstSymbol s)
-
makeSymbol
protected AstTranslator.Symbol makeSymbol(CAstSymbol s, int vn)
-
makeSymbol
protected abstract AstTranslator.Symbol makeSymbol(String nm, CAstType type, boolean isFinal, boolean isInternalName, Object defaultInitValue, int vn, AstTranslator.Scope parent)
-
isCaseInsensitive
public boolean isCaseInsensitive(String nm)
- Specified by:
isCaseInsensitive
in interfaceAstTranslator.Scope
-
lookup
public AstTranslator.Symbol lookup(String nm)
- Specified by:
lookup
in interfaceAstTranslator.Scope
-
contains
public boolean contains(String nm)
- Specified by:
contains
in interfaceAstTranslator.Scope
-
isGlobal
public boolean isGlobal(AstTranslator.Symbol s)
- Specified by:
isGlobal
in interfaceAstTranslator.Scope
-
isLexicallyScoped
public abstract boolean isLexicallyScoped(AstTranslator.Symbol s)
- Specified by:
isLexicallyScoped
in interfaceAstTranslator.Scope
-
getEntityScope
protected abstract AstTranslator.AbstractScope getEntityScope()
-
getEntity
public abstract CAstEntity getEntity()
- Specified by:
getEntity
in interfaceAstTranslator.Scope
-
-