-
- All Known Subinterfaces:
SettableVarMapping
- All Known Implementing Classes:
HashVarMapping
,LinearProbingVarMapping
public interface VarMapping
Interface of variable mappings.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Val
get(int symHandle)
Gets the target of the var, or null if absent.boolean
has(int symHandle)
Returns true if the var mapping has the var, otherwise false.Set<Integer>
symHandleSet()
Returns the set of the sym handles of the vars in this var mapping.
-
-
-
Method Detail
-
get
@Nullable Val get(int symHandle)
Gets the target of the var, or null if absent.- Parameters:
symHandle
- the sym handle of the var.- Returns:
- the target of the var, or null if absent.
-
has
boolean has(int symHandle)
Returns true if the var mapping has the var, otherwise false.- Parameters:
symHandle
- the sym handle of the var.- Returns:
- true if the var mapping has the var, otherwise false.
-
-