public class ParameterProperty extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_PARAMS
Maximum number of parameters that can be represented by a
ParameterProperty.
|
| Constructor and Description |
|---|
ParameterProperty()
Constructor.
|
ParameterProperty(int bits)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
copyFrom(ParameterProperty other)
Make this object the same as the given one.
|
BitSet |
getAsBitSet() |
BitSet |
getMatchingParameters(BitSet nullArgSet)
Given a bitset of null arguments passed to the method represented by this
property, return a bitset indicating which null arguments correspond to
an non-null param.
|
int |
getParamsWithProperty()
Get the non-null param bitset.
|
boolean |
hasProperty(int param)
Return whether or not a parameter might be non-null.
|
void |
intersectWith(ParameterProperty targetDerefParamSet)
Intersect this set with the given set.
|
boolean |
isEmpty()
Return whether or not the set of non-null parameters is empty.
|
Iterable<Integer> |
iterable() |
void |
setParamsWithProperty(BitSet nonNullSet)
Set the non-null param set from given BitSet.
|
void |
setParamsWithProperty(int nonNullParamSet)
Set the non-null param bitset.
|
void |
setParamWithProperty(int param,
boolean hasProperty)
Set whether or not a parameter might be non-null.
|
String |
toString() |
public static final int MAX_PARAMS
public ParameterProperty()
public ParameterProperty(int bits)
public int getParamsWithProperty()
public void setParamsWithProperty(int nonNullParamSet)
nonNullParamSet - the non-null param bitsetpublic void setParamsWithProperty(BitSet nonNullSet)
nonNullSet - BitSet indicating which parameters are non-nullpublic void setParamWithProperty(int param,
boolean hasProperty)
param - the parameter indexhasProperty - true if the parameter might be non-null, false otherwisepublic boolean hasProperty(int param)
param - the parameter indexpublic BitSet getMatchingParameters(BitSet nullArgSet)
nullArgSet - bitset of null argumentspublic BitSet getAsBitSet()
public boolean isEmpty()
public void intersectWith(ParameterProperty targetDerefParamSet)
targetDerefParamSet - another setpublic void copyFrom(ParameterProperty other)
other - another ParameterNullnessPropertyCopyright © 2003–2015. All rights reserved.