Package org.sonar.java.se.symbolicvalues
Class SymbolicValue
- java.lang.Object
-
- org.sonar.java.se.symbolicvalues.SymbolicValue
-
- Direct Known Subclasses:
BinarySymbolicValue,SymbolicValue.CaughtExceptionSymbolicValue,SymbolicValue.ExceptionalSymbolicValue,SymbolicValue.UnarySymbolicValue
public class SymbolicValue extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSymbolicValue.AndSymbolicValuestatic classSymbolicValue.BooleanExpressionSymbolicValuestatic classSymbolicValue.CaughtExceptionSymbolicValuestatic classSymbolicValue.ExceptionalSymbolicValuestatic classSymbolicValue.InstanceOfSymbolicValuestatic classSymbolicValue.NotSymbolicValuestatic classSymbolicValue.OrSymbolicValuestatic classSymbolicValue.UnarySymbolicValuestatic classSymbolicValue.XorSymbolicValue
-
Field Summary
Fields Modifier and Type Field Description static SymbolicValueFALSE_LITERALstatic SymbolicValueNULL_LITERALstatic List<SymbolicValue>PROTECTED_SYMBOLIC_VALUESstatic SymbolicValueTRUE_LITERAL
-
Constructor Summary
Constructors Constructor Description SymbolicValue()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SymbolicValue>computedFrom()voidcomputedFrom(List<ProgramState.SymbolicValueSymbol> symbolicValues)List<Symbol>computedFromSymbols()booleanequals(Object o)inthashCode()static booleanisDisposable(SymbolicValue symbolicValue)booleanreferences(SymbolicValue other)List<ProgramState>setConstraint(ProgramState programState, BooleanConstraint booleanConstraint)List<ProgramState>setConstraint(ProgramState programState, Constraint constraint)protected List<ProgramState>setConstraint(ProgramState state, Constraint constraint, Set<RelationalSymbolicValue> knownRelations)List<ProgramState>setConstraint(ProgramState programState, ObjectConstraint nullConstraint)ProgramStatesetSingleConstraint(ProgramState programState, ObjectConstraint nullConstraint)StringtoString()SymbolicValuewrappedValue()
-
-
-
Field Detail
-
NULL_LITERAL
public static final SymbolicValue NULL_LITERAL
-
TRUE_LITERAL
public static final SymbolicValue TRUE_LITERAL
-
FALSE_LITERAL
public static final SymbolicValue FALSE_LITERAL
-
PROTECTED_SYMBOLIC_VALUES
public static final List<SymbolicValue> PROTECTED_SYMBOLIC_VALUES
-
-
Method Detail
-
isDisposable
public static boolean isDisposable(SymbolicValue symbolicValue)
-
references
public boolean references(SymbolicValue other)
-
computedFrom
public void computedFrom(List<ProgramState.SymbolicValueSymbol> symbolicValues)
-
computedFrom
public List<SymbolicValue> computedFrom()
-
setConstraint
public List<ProgramState> setConstraint(ProgramState programState, ObjectConstraint nullConstraint)
-
setConstraint
public List<ProgramState> setConstraint(ProgramState programState, BooleanConstraint booleanConstraint)
-
setConstraint
public List<ProgramState> setConstraint(ProgramState programState, Constraint constraint)
-
setSingleConstraint
public ProgramState setSingleConstraint(ProgramState programState, ObjectConstraint nullConstraint)
-
setConstraint
protected List<ProgramState> setConstraint(ProgramState state, Constraint constraint, Set<RelationalSymbolicValue> knownRelations)
-
wrappedValue
public SymbolicValue wrappedValue()
-
-