KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > bcel > generic > InvokeReference


1 //Tested with BCEL-5.1
2
//http://jakarta.apache.org/builds/jakarta-bcel/release/v5.1/
3

4 package com.puppycrawl.tools.checkstyle.bcel.generic;
5
6 import org.apache.bcel.generic.ConstantPoolGen;
7 import org.apache.bcel.generic.InvokeInstruction;
8 import org.apache.bcel.generic.Type;
9
10
11 /**
12  * Describe class MethodReference
13  * @author Rick Giles
14  * @version 18-Jun-2003
15  */

16 public class InvokeReference
17     extends FieldOrMethodReference
18 {
19
20     /**
21      * @param aInstruction
22      * @param aPoolGen
23      */

24     public InvokeReference(
25         InvokeInstruction aInstruction,
26         ConstantPoolGen aPoolGen)
27     {
28         super(aInstruction, aPoolGen);
29     }
30
31     /**
32      * @return
33      */

34     public Type[] getArgTypes()
35     {
36         return ((InvokeInstruction) mInstruction).getArgumentTypes(mPoolGen);
37     }
38 }
39
Popular Tags