|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.copernicus.c.InstanceOfFunctionGenerator
public class InstanceOfFunctionGenerator
A class that generates code that performs lookup operations to implement the "instanceof" operator. It generates a function for each class C that takes the argument as the hashNumber corresponding to some class/interface A and returns 1 if C is an instance of A.
| Red (ssb) |
| Red (ankush) |
| Constructor Summary | |
|---|---|
InstanceOfFunctionGenerator()
|
|
| Method Summary | |
|---|---|
java.lang.String |
generate(soot.SootClass source)
Generate code for a method that looks up the number corresponding to the given interface/class in a table and returns 1 if this class is an instance of that interface/class, 0 otherwise. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InstanceOfFunctionGenerator()
| Method Detail |
|---|
public java.lang.String generate(soot.SootClass source)
source - The class for which such a method needs to be
generated.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||