|
SandMark version 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sandmark.statistics.HalsteadMeasures
Constructor Summary | |
HalsteadMeasures()
|
Method Summary | |
java.util.Vector |
evalMeasures(java.util.Iterator itr)
Evaluates the Halstead measures n1,n2,N1 and N2 |
int |
getMeasure(java.lang.String measure)
Returns the value corresponding to the given measure |
java.lang.String |
getOperand(EDU.purdue.cs.bloat.editor.Instruction instruct)
Returns the operand of the given 'operand instruction' if present returns 'none' if not an operand instruction |
java.lang.String |
getOperatorType(EDU.purdue.cs.bloat.editor.Instruction instruct)
Gets the operator type of the given instruction returns 'none' if not an operator instruction |
boolean |
isAdd(EDU.purdue.cs.bloat.editor.Instruction instruct)
Returns true if instruction is an add instruction |
boolean |
isDiv(EDU.purdue.cs.bloat.editor.Instruction instruct)
Returns true if instruction is a div instruction |
boolean |
isMul(EDU.purdue.cs.bloat.editor.Instruction instruct)
Returns true if instruction is a mul instruction |
boolean |
isNew(EDU.purdue.cs.bloat.editor.Instruction instruct)
Returns true if instruction is a new instruction |
boolean |
isPutfield(EDU.purdue.cs.bloat.editor.Instruction instruct)
Returns true if instruction is a putfield instruction |
boolean |
isPutstatic(EDU.purdue.cs.bloat.editor.Instruction instruct)
Returns true if instruction is a putstatic instruction |
boolean |
isRem(EDU.purdue.cs.bloat.editor.Instruction instruct)
Returns true if instruction is a rem instruction |
boolean |
isSub(EDU.purdue.cs.bloat.editor.Instruction instruct)
Returns true if instruction is a sub instruction |
void |
setMeasure(java.lang.String measure,
int value)
Sets measure with the corresponding value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HalsteadMeasures()
Method Detail |
public int getMeasure(java.lang.String measure)
measure
- the symbolic name of the measure whose value is needed
public void setMeasure(java.lang.String measure, int value)
measure
- the symbolic name of the measurevalue
- the value to be setpublic java.util.Vector evalMeasures(java.util.Iterator itr)
public java.lang.String getOperatorType(EDU.purdue.cs.bloat.editor.Instruction instruct)
instruct
- the instruction to be analyzed
public java.lang.String getOperand(EDU.purdue.cs.bloat.editor.Instruction instruct)
instruct
- the instruction to be analyzedpublic boolean isAdd(EDU.purdue.cs.bloat.editor.Instruction instruct)
instruct
- the instruction to be analyzedpublic boolean isSub(EDU.purdue.cs.bloat.editor.Instruction instruct)
instruct
- the instruction to be analyzedpublic boolean isMul(EDU.purdue.cs.bloat.editor.Instruction instruct)
instruct
- the instruction to be analyzedpublic boolean isDiv(EDU.purdue.cs.bloat.editor.Instruction instruct)
instruct
- the instruction to be analyzedpublic boolean isRem(EDU.purdue.cs.bloat.editor.Instruction instruct)
instruct
- the instruction to be analyzedpublic boolean isPutstatic(EDU.purdue.cs.bloat.editor.Instruction instruct)
instruct
- the instruction to be analyzedpublic boolean isPutfield(EDU.purdue.cs.bloat.editor.Instruction instruct)
instruct
- the instruction to be analyzedpublic boolean isNew(EDU.purdue.cs.bloat.editor.Instruction instruct)
instruct
- the instruction to be analyzed
|
SandMark version 3.0 Wed Jan 29 10:30:05 MST 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |