Search in sources :

Example 6 with INVOKESTATIC

use of org.apache.bcel.generic.INVOKESTATIC in project jop by jop-devel.

the class MethodHelper method getArgSize.

public static int getArgSize(InvokeInstruction m, ConstantPoolGen cp) {
    int retval = 0;
    if (!(m instanceof INVOKESTATIC)) {
        retval += 1;
    }
    Type[] at = m.getArgumentTypes(cp);
    for (Type type : at) {
        retval += type.getSize();
    }
    return retval;
}
Also used : INVOKESTATIC(org.apache.bcel.generic.INVOKESTATIC) Type(org.apache.bcel.generic.Type)

Aggregations

INVOKESTATIC (org.apache.bcel.generic.INVOKESTATIC)6 ConstantPoolGen (org.apache.bcel.generic.ConstantPoolGen)2 InstructionList (org.apache.bcel.generic.InstructionList)2 ObjectType (org.apache.bcel.generic.ObjectType)2 PUSH (org.apache.bcel.generic.PUSH)2 ReferenceType (org.apache.bcel.generic.ReferenceType)2 Type (org.apache.bcel.generic.Type)2 ClassInfo (com.jopdesign.common.ClassInfo)1 MethodInfo (com.jopdesign.common.MethodInfo)1 MemberID (com.jopdesign.common.type.MemberID)1 FlowEdge (com.jopdesign.dfa.framework.FlowEdge)1 Iterator (java.util.Iterator)1 ACONST_NULL (org.apache.bcel.generic.ACONST_NULL)1 BasicType (org.apache.bcel.generic.BasicType)1 BranchInstruction (org.apache.bcel.generic.BranchInstruction)1 FieldInstruction (org.apache.bcel.generic.FieldInstruction)1 GETFIELD (org.apache.bcel.generic.GETFIELD)1 GETSTATIC (org.apache.bcel.generic.GETSTATIC)1 GOTO (org.apache.bcel.generic.GOTO)1 ICONST (org.apache.bcel.generic.ICONST)1