|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kit.furia.fragment.asm.AbstractFunction
public abstract class AbstractFunction
AbstractFunction holds common logic for representing functions.
Field Summary | |
---|---|
protected java.util.List<org.objectweb.asm.tree.analysis.Value> |
params
|
protected java.util.Set<org.objectweb.asm.tree.analysis.Value> |
paramSet
|
Constructor Summary | |
---|---|
protected |
AbstractFunction()
|
Method Summary | |
---|---|
void |
addParam(org.objectweb.asm.tree.analysis.Value param)
Adds a new parameter to this function. |
protected abstract boolean |
equalFunctions(org.objectweb.asm.tree.analysis.Value x)
Returns true if the function identifiers are equal. |
int |
getSize()
|
protected abstract int |
hashCodeFunctionName()
Generate the hash code for the function name. |
protected abstract java.lang.String |
printFunctionName()
Returns the string representation of the function name. |
void |
toFragment(java.lang.StringBuilder result,
java.util.Set visited,
IntegerHolder count,
int max)
Prints the fragment into the given result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List<org.objectweb.asm.tree.analysis.Value> params
protected java.util.Set<org.objectweb.asm.tree.analysis.Value> paramSet
Constructor Detail |
---|
protected AbstractFunction()
Method Detail |
---|
public void addParam(org.objectweb.asm.tree.analysis.Value param)
param
- the new parameter.public int getSize()
getSize
in interface org.objectweb.asm.tree.analysis.Value
protected abstract java.lang.String printFunctionName()
protected abstract boolean equalFunctions(org.objectweb.asm.tree.analysis.Value x)
x
-
protected abstract int hashCodeFunctionName()
public void toFragment(java.lang.StringBuilder result, java.util.Set visited, IntegerHolder count, int max) throws HugeFragmentException
toFragment
in interface FValue
result
- The resulting string representation of the given expression.visited
- A set used to control recursive references.count
- The number of "expansions" that have been executed.max
- The maximum number of expansions that will be executed.
HugeFragmentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |