Package it.unive.lisa.interprocedural
Class ContextInsensitiveToken
- java.lang.Object
-
- it.unive.lisa.interprocedural.ContextInsensitiveToken
-
- All Implemented Interfaces:
ContextSensitivityToken
public class ContextInsensitiveToken extends java.lang.Object implements ContextSensitivityToken
A context sensitive token that is always the same (aka, do not track any information about the call stack).
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextSensitivityTokenempty()A token without any context sensitivity.static ContextInsensitiveTokengetSingleton()Return an instance of the class.ContextSensitivityTokenpopToken()Creates a context sensitive token popping the scope on top of the stack.ContextSensitivityTokenpushToken(it.unive.lisa.analysis.ScopeToken c)Creates a context sensitive token with the given scope on the top of the stack.java.lang.StringtoString()
-
-
-
Method Detail
-
empty
public ContextSensitivityToken empty()
Description copied from interface:ContextSensitivityTokenA token without any context sensitivity.- Specified by:
emptyin interfaceContextSensitivityToken- Returns:
- an empty context sensitive token
-
pushToken
public ContextSensitivityToken pushToken(it.unive.lisa.analysis.ScopeToken c)
Description copied from interface:ContextSensitivityTokenCreates a context sensitive token with the given scope on the top of the stack.- Specified by:
pushTokenin interfaceContextSensitivityToken- Parameters:
c- theScopeTokento be pushed at the top of the context sensitive- Returns:
- a token with the given scope on the top of the call stack
-
popToken
public ContextSensitivityToken popToken()
Description copied from interface:ContextSensitivityTokenCreates a context sensitive token popping the scope on top of the stack.- Specified by:
popTokenin interfaceContextSensitivityToken- Returns:
- a token without the this token's top scope
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getSingleton
public static ContextInsensitiveToken getSingleton()
Return an instance of the class.- Returns:
- an instance of the class
-
-