Class SymbolicValue.SymValue
- java.lang.Object
-
- net.sourceforge.pmd.lang.java.symbols.SymbolicValue.SymValue
-
- All Implemented Interfaces:
SymbolicValue
- Enclosing interface:
- SymbolicValue
public static final class SymbolicValue.SymValue extends Object implements SymbolicValue
Represents a primitive or string value.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.sourceforge.pmd.lang.java.symbols.SymbolicValue
SymbolicValue.SymAnnot, SymbolicValue.SymArray, SymbolicValue.SymClass, SymbolicValue.SymEnum, SymbolicValue.SymValue
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Returns true if this value is equal to the other one.int
hashCode()
String
toString()
boolean
valueEquals(Object o)
Returns true if this symbolic value represents the same value as the given object.
-
-
-
Method Detail
-
valueEquals
public boolean valueEquals(Object o)
Description copied from interface:SymbolicValue
Returns true if this symbolic value represents the same value as the given object. If the parameter is null, returns false.- Specified by:
valueEquals
in interfaceSymbolicValue
-
equals
public boolean equals(Object o)
Description copied from interface:SymbolicValue
Returns true if this value is equal to the other one. The parameter must be aSymbolicValue
of the same type. UseSymbolicValue.valueEquals(Object)
to compare to a java object.- Specified by:
equals
in interfaceSymbolicValue
- Overrides:
equals
in classObject
-
-