|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.Tools.PatMat.Spec.TypeSet
public static class Spec.TypeSet
A representation for storing Types that values can be.
Type
,
PreciselyTyped
Constructor Summary | |
---|---|
Spec.TypeSet()
Constructs a new Spec.TypeSet . |
|
Spec.TypeSet(int t)
Constructs a new Spec.TypeSet with type t . |
|
Spec.TypeSet(Spec.TypeSet ts)
Constructs a new Spec.TypeSet with the same
contents as the supplied Spec.TypeSet . |
Method Summary | |
---|---|
void |
addAll(Spec.TypeSet ts)
Adds all the types contained in TypeSet
ts to this . |
Object |
clone()
Clones a Spec.TypeSet . |
boolean |
contains(int type)
Checks if this contains type . |
boolean |
containsSigned(int bitwidth)
Returns true if this contains the specified
signed precise type. |
boolean |
containsSmall()
Returns true if this contains any small types. |
boolean |
containsUnsigned(int bitwidth)
Returns true if this contains the specified
unsigned precise type. |
void |
set(int type)
Records that this contains
type . |
void |
setAll()
Records that this contains all five basic
Types, { INT, LONG, FLOAT, DOUBLE, POINTER }. |
void |
setSignedPrecise(int numBits)
Recordes that this contains
a signed, specific precise type value
requires: 1 <= numBits <= 32 |
void |
setUnsignedPrecise(int numBits)
Recordes that this contains
an unsigned, specific precise type value
requires: 1 <= numBits <= 32 |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Spec.TypeSet()
Spec.TypeSet
.
public Spec.TypeSet(int t)
Spec.TypeSet
with type t
.
public Spec.TypeSet(Spec.TypeSet ts)
Spec.TypeSet
with the same
contents as the supplied Spec.TypeSet
.
Method Detail |
---|
public Object clone()
Spec.TypeSet
.
clone
in class Object
public boolean contains(int type)
this
contains type
.
type
has
been turned on by a call to set(type)
or
setAll()
. Else returns false.
public boolean containsSmall()
this
contains any small types.
public boolean containsSigned(int bitwidth)
this
contains the specified
signed precise type.
public boolean containsUnsigned(int bitwidth)
this
contains the specified
unsigned precise type.
public void set(int type)
this
contains
type
.
public void setSignedPrecise(int numBits)
this
contains
a signed, specific precise type value
numBits
- The bit length of the type.public void setUnsignedPrecise(int numBits)
this
contains
an unsigned, specific precise type value
numBits
- The bit length of the type.public void addAll(Spec.TypeSet ts)
TypeSet
ts
to this
.
public void setAll()
this
contains all five basic
Types, { INT, LONG, FLOAT, DOUBLE, POINTER }.
Note that it does not set any bits for the PreciseTypes.
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |