KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > aspectwerkz > transform > inlining > compiler > CompilerInput


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.aspectwerkz.transform.inlining.compiler;
5
6 import com.tc.aspectwerkz.transform.TransformationConstants;
7
8 /**
9  * @author <a HREF="mailto:alex AT gnilux DOT com">Alexandre Vasseur</a>
10  */

11 public class CompilerInput {
12
13   public String JavaDoc joinPointClassName;
14
15   public int joinPointInstanceIndex = TransformationConstants.INDEX_NOTAVAILABLE;
16
17   public boolean isOptimizedJoinPoint = false;
18
19   /**
20    * Index on stack of the first target method arg (0 or 1, depends of static target or not
21    */

22   public int argStartIndex = TransformationConstants.INDEX_NOTAVAILABLE;
23
24   public int callerIndex = TransformationConstants.INDEX_NOTAVAILABLE;
25   public String JavaDoc callerClassSignature;
26
27   public int calleeIndex = TransformationConstants.INDEX_NOTAVAILABLE;
28   public String JavaDoc calleeClassSignature;
29
30   /**
31    * Returns a new instance that suits for proceed() ie where jp index is 0 etc.
32    *
33    * @return
34    */

35   public CompilerInput getCopyForProceed() {
36     CompilerInput input = new CompilerInput();
37     input.joinPointClassName = joinPointClassName;
38     input.calleeClassSignature = calleeClassSignature;
39     input.callerClassSignature = callerClassSignature;
40
41     // proceed() needs specific values
42
input.isOptimizedJoinPoint = false;
43     input.joinPointInstanceIndex = 0;
44     return input;
45   }
46 }
47
Popular Tags