01: //Tested with BCEL-5.1
02: //http://jakarta.apache.org/builds/jakarta-bcel/release/v5.1/
03:
04: package com.puppycrawl.tools.checkstyle.bcel.generic;
05:
06: import org.apache.bcel.generic.ConstantPoolGen;
07: import org.apache.bcel.generic.InvokeInstruction;
08: import org.apache.bcel.generic.Type;
09:
10: /**
11: * Describe class MethodReference
12: * @author Rick Giles
13: * @version 18-Jun-2003
14: */
15: public class InvokeReference extends FieldOrMethodReference {
16:
17: /**
18: * @param aInstruction
19: * @param aPoolGen
20: */
21: public InvokeReference(InvokeInstruction aInstruction,
22: ConstantPoolGen aPoolGen) {
23: super (aInstruction, aPoolGen);
24: }
25:
26: /**
27: * @return
28: */
29: public Type[] getArgTypes() {
30: return ((InvokeInstruction) mInstruction)
31: .getArgumentTypes(mPoolGen);
32: }
33: }
|