Java Doc for HotSwapJoinPointImpl.java in  » Byte-Code » PROSE » ch » ethz » inf » iks » jvmai » jvmdi » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Byte Code » PROSE » ch.ethz.inf.iks.jvmai.jvmdi 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   ch.ethz.inf.iks.jvmai.jvmdi.HotSwapJoinPointImpl

All known Subclasses:   ch.ethz.inf.iks.jvmai.jvmdi.HotSwapMethodJoinPointImpl,  ch.ethz.inf.iks.jvmai.jvmdi.HotSwapFieldJoinPointImpl,
HotSwapJoinPointImpl
public class HotSwapJoinPointImpl implements CodeJoinPoint,JoinPointStaticPart,ClassSpecific,JoinPointKinds(Code)
HotSwap Join Points are join-points that can occur within the execution of a method. They can be arbitrary points within the bytecode of a method.
author:
   Angela Nicoara
author:
   Gerald Linhofer
version:
   $Revision$


Field Summary
final protected static  intARG_TYPE_BOOLEAN
    
final protected static  intARG_TYPE_BYTE
    
final protected static  intARG_TYPE_CHAR
    
final protected static  intARG_TYPE_DOUBLE
    
final protected static  intARG_TYPE_FLOAT
    
final protected static  intARG_TYPE_INT
    
final protected static  intARG_TYPE_LONG
    
final protected static  intARG_TYPE_OBJECT
    
final protected static  intARG_TYPE_SHORT
    
final protected static  intARG_TYPE_VOID
    
protected  int[]argTypeCodes
     Contains the type codes of the actual parameters of HotSwapJoinPointImpl.method method if HotSwapJoinPointImpl.argTypesInitialized argTypesInitialized is true.
protected  Class[]argTypes
     Contains the classes of the actual parameters of HotSwapJoinPointImpl.method method if HotSwapJoinPointImpl.argTypesInitialized argTypesInitialized is true.
protected  booleanargTypesInitialized
     true if HotSwapJoinPointImpl.argTypes argTypes and HotSwapJoinPointImpl.argTypeCodes argTypeCodes are valid.
protected  Object[]args
     Contains the actual parameters of HotSwapJoinPointImpl.method method if HotSwapJoinPointImpl.gotArgs gotArgs is true.
protected  booleangotArgs
     true if HotSwapJoinPointImpl.args args is valid.
protected  intheight
     'Height' for enclosing join point.
protected  Methodmethod
     Method to which this join point belongs or null if not initialized.
protected  intmethodId
     Method identifier to which this join point belongs.
protected  Object[][]preAllocatedArgs
    
protected  int[][]preAllocatedCodes
    
protected  Objecttarget
     Object on which this join point is executed (the class for static methods) or null if not initialized.

Constructor Summary
public  HotSwapJoinPointImpl()
     Constructs an uninitialized HotSwapJoinPoint instance.
public  HotSwapJoinPointImpl(Object tag, int height)
     Constructs an uninitialized HotSwapJoinPoint instance.

Method Summary
native protected  ObjectdoGetLocalVar(int slot, int type, Thread current, int height)
     Get a local value from the 'caller' (woven method that called the doOn... callback funtion of ch.ethz.inf.iks.jvmai.jvmdi.AspectInterfaceImpl ).
native protected  String[]doGetLocalVariableNames(int slot, int count, Thread current, int height)
    
native protected  voiddoGetLocalVars(int slot, int[] types, Object[] vars, Thread current, int height)
     Get some local values from the 'caller' (woven method that called the doOn... callback funtion of ch.ethz.inf.iks.jvmai.jvmdi.AspectInterfaceImpl ).
native protected  voiddoSetLocalVar(int slot, int type, Object var, Thread current, int height)
     Change a local value of the 'caller' (woven method that called the doOn... callback funtion of ch.ethz.inf.iks.jvmai.jvmdi.AspectInterfaceImpl ).
protected  intencodeArgType(Class argType)
     Returns the type code ( HotSwapJoinPointImpl.ARG_TYPE_OBJECT , HotSwapJoinPointImpl.ARG_TYPE_INT , HotSwapJoinPointImpl.ARG_TYPE_FLOAT , HotSwapJoinPointImpl.ARG_TYPE_BYTE , HotSwapJoinPointImpl.ARG_TYPE_CHAR , HotSwapJoinPointImpl.ARG_TYPE_SHORT , HotSwapJoinPointImpl.ARG_TYPE_BOOLEAN , HotSwapJoinPointImpl.ARG_TYPE_LONG or HotSwapJoinPointImpl.ARG_TYPE_DOUBLE for a given class argType.
public  ObjectgetAopTag()
     Returns a user-defined object.
public  Object[]getArgs()
     Returns the arguments with that the target method was called.
public  intgetByteCodeIndex()
     Returns the bytecode index of the last executed instruction from HotSwapJoinPointImpl.method method or -1 if not initialized.
public  CodeJoinPointgetEnclosingJoinPoint()
     Return the enclosing join-point.
public  StringgetKind()
    
public  intgetMask()
     This method provides information similar to the AspectJ original getKind.
public  MethodgetMethod()
     Returns the method beeing executed when this joinpoint has been reached.
public  SignaturegetSignature()
    
public  JoinPointStaticPartgetStaticPart()
     Returns this object.
public  ObjectgetTarget()
     Return the target object of this joinpoint.
public  ClassgetTargetClass()
     Return the Class of the target.
public  ObjectgetThis()
     Returns the object on that this join point is executed or the class for static methods.
public  voidinit(Object tag)
     (Re)Initialize this join point.
protected  voidinitArgTypes()
     Internal method: initializes some member fields, required to get or set arguments.
public  StringtoLongString()
    
public  StringtoShortString()
    

Field Detail
ARG_TYPE_BOOLEAN
final protected static int ARG_TYPE_BOOLEAN(Code)



ARG_TYPE_BYTE
final protected static int ARG_TYPE_BYTE(Code)



ARG_TYPE_CHAR
final protected static int ARG_TYPE_CHAR(Code)



ARG_TYPE_DOUBLE
final protected static int ARG_TYPE_DOUBLE(Code)



ARG_TYPE_FLOAT
final protected static int ARG_TYPE_FLOAT(Code)



ARG_TYPE_INT
final protected static int ARG_TYPE_INT(Code)



ARG_TYPE_LONG
final protected static int ARG_TYPE_LONG(Code)



ARG_TYPE_OBJECT
final protected static int ARG_TYPE_OBJECT(Code)



ARG_TYPE_SHORT
final protected static int ARG_TYPE_SHORT(Code)



ARG_TYPE_VOID
final protected static int ARG_TYPE_VOID(Code)



argTypeCodes
protected int[] argTypeCodes(Code)
Contains the type codes of the actual parameters of HotSwapJoinPointImpl.method method if HotSwapJoinPointImpl.argTypesInitialized argTypesInitialized is true.



argTypes
protected Class[] argTypes(Code)
Contains the classes of the actual parameters of HotSwapJoinPointImpl.method method if HotSwapJoinPointImpl.argTypesInitialized argTypesInitialized is true.



argTypesInitialized
protected boolean argTypesInitialized(Code)
true if HotSwapJoinPointImpl.argTypes argTypes and HotSwapJoinPointImpl.argTypeCodes argTypeCodes are valid.



args
protected Object[] args(Code)
Contains the actual parameters of HotSwapJoinPointImpl.method method if HotSwapJoinPointImpl.gotArgs gotArgs is true.



gotArgs
protected boolean gotArgs(Code)
true if HotSwapJoinPointImpl.args args is valid.



height
protected int height(Code)
'Height' for enclosing join point. For top level join points this is 0.



method
protected Method method(Code)
Method to which this join point belongs or null if not initialized.



methodId
protected int methodId(Code)
Method identifier to which this join point belongs. (this has nothing to do with JNI jmethodIDs)



preAllocatedArgs
protected Object[][] preAllocatedArgs(Code)



preAllocatedCodes
protected int[][] preAllocatedCodes(Code)



target
protected Object target(Code)
Object on which this join point is executed (the class for static methods) or null if not initialized.




Constructor Detail
HotSwapJoinPointImpl
public HotSwapJoinPointImpl()(Code)
Constructs an uninitialized HotSwapJoinPoint instance. To use it HotSwapJoinPointImpl.init must be called after construction.



HotSwapJoinPointImpl
public HotSwapJoinPointImpl(Object tag, int height)(Code)
Constructs an uninitialized HotSwapJoinPoint instance. To use it HotSwapJoinPointImpl.init must be called after construction.




Method Detail
doGetLocalVar
native protected Object doGetLocalVar(int slot, int type, Thread current, int height)(Code)
Get a local value from the 'caller' (woven method that called the doOn... callback funtion of ch.ethz.inf.iks.jvmai.jvmdi.AspectInterfaceImpl ).

Note: the class the callback funtion is belonging to is hard coded in the native part of this class.
Parameters:
  slot - index of the local variable.
Parameters:
  type - code for the primitive type of the variable.
Parameters:
  current - the current thread (must be the same thread that runs the caller). the value of the local variable.
throws:
  IlligalIdException - can not find the stack frame of the 'target'.




doGetLocalVariableNames
native protected String[] doGetLocalVariableNames(int slot, int count, Thread current, int height)(Code)



doGetLocalVars
native protected void doGetLocalVars(int slot, int[] types, Object[] vars, Thread current, int height)(Code)
Get some local values from the 'caller' (woven method that called the doOn... callback funtion of ch.ethz.inf.iks.jvmai.jvmdi.AspectInterfaceImpl ). The values must must follow each other in the local variable table, so this may for example be used to get the arguments from the 'caller'.

Note: the class the callback funtion is belonging to is hard coded in the native part of this class.
Parameters:
  slot - the first slot used for arguments (0 for static methods 1 otherwise).
Parameters:
  types - array containing type codes for the parameters.
Parameters:
  vars - array that will be filled with the values of the arguments
Parameters:
  current - the current thread (must be the same thread that runs the caller).
throws:
  IlligalIdException - can not find or use the stack frame of the 'target'.




doSetLocalVar
native protected void doSetLocalVar(int slot, int type, Object var, Thread current, int height)(Code)
Change a local value of the 'caller' (woven method that called the doOn... callback funtion of ch.ethz.inf.iks.jvmai.jvmdi.AspectInterfaceImpl ).

Note: the class the callback funtion is belonging to is hard coded in the native part of this class.
Parameters:
  slot - index of the local variable.
Parameters:
  type - code for the primitive type of the variable.
Parameters:
  var - the new value of the local variable.
Parameters:
  current - the current thread (must be the same thread that runs the caller).
throws:
  IlligalIdException - can not find the stack frame of the 'target'.




encodeArgType
protected int encodeArgType(Class argType)(Code)
Returns the type code ( HotSwapJoinPointImpl.ARG_TYPE_OBJECT , HotSwapJoinPointImpl.ARG_TYPE_INT , HotSwapJoinPointImpl.ARG_TYPE_FLOAT , HotSwapJoinPointImpl.ARG_TYPE_BYTE , HotSwapJoinPointImpl.ARG_TYPE_CHAR , HotSwapJoinPointImpl.ARG_TYPE_SHORT , HotSwapJoinPointImpl.ARG_TYPE_BOOLEAN , HotSwapJoinPointImpl.ARG_TYPE_LONG or HotSwapJoinPointImpl.ARG_TYPE_DOUBLE for a given class argType.
Parameters:
  argType - code



getAopTag
public Object getAopTag()(Code)
Returns a user-defined object. This object has been supplied during registration of this joinpoint. the user defined object.



getArgs
public Object[] getArgs()(Code)
Returns the arguments with that the target method was called. arguments the method was called with, primitive typesare enclosed in there java types.
throws:
  IlligalIdException - can not find the stack frame of the 'target'.



getByteCodeIndex
public int getByteCodeIndex()(Code)
Returns the bytecode index of the last executed instruction from HotSwapJoinPointImpl.method method or -1 if not initialized. For top level join points, this is a call to the advices callback function. index
throws:
  IlligalIdException - can not find the stack frame of the 'target'.



getEnclosingJoinPoint
public CodeJoinPoint getEnclosingJoinPoint()(Code)
Return the enclosing join-point. The enclosing join-point is join-point of the calling frame. For instance, if a calls b and x is the method entry join point in b, x.getEnclosingJoinPoint is the point in the execution of the same thread within a's frame where the invocation to be is done.

If if a calls b and within b the join-point y is a field set join point, then x.getEnclsingJoinPoint() and y.getEnclosingJoinPoint() denote the same join point within a's frame. the enclosing JoinPoint.
throws:
  IlligalIdException - can not find the stack frame of the 'target'.




getKind
public String getKind()(Code)



getMask
public int getMask()(Code)
This method provides information similar to the AspectJ original getKind. The problem with getKind is that it works with strings, which is inefficient. We cannot override getKind -- Java is not zero-variant on results (at least until 1.4.*). one of the JoinPointKinds.MASK_XXX integer values



getMethod
public Method getMethod()(Code)
Returns the method beeing executed when this joinpoint has been reached. For MethodEntry Join Points and method exit join points, methods captured statically and the method being currently executed coincide. Therefore, for such joinoints, the signature of the method returned by getMethod and the one returned by getJoinPointStaticPart().getSignature() are the same. This is not the case with Exception Throws, catche Field access & modifications join points. Method
throws:
  IlligalIdException - can not find the stack frame of the 'target'.



getSignature
public Signature getSignature()(Code)
Return the signature of this object



getStaticPart
public JoinPointStaticPart getStaticPart()(Code)
Returns this object. (just present for jaspect compliance).



getTarget
public Object getTarget()(Code)
Return the target object of this joinpoint.



getTargetClass
public Class getTargetClass()(Code)
Return the Class of the target.

Note: this returns the class of the method, which executed the join point, if the target is not a method subclasses have to overwrite this method. the class that declared the target object.




getThis
public Object getThis()(Code)
Returns the object on that this join point is executed or the class for static methods. Object
throws:
  IlligalIdException - can not find the stack frame of the 'target'.



init
public void init(Object tag)(Code)
(Re)Initialize this join point.
Parameters:
  tag - AOP tag associated with this join point



initArgTypes
protected void initArgTypes()(Code)
Internal method: initializes some member fields, required to get or set arguments.



toLongString
public String toLongString()(Code)



toShortString
public String toShortString()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.