com.sun.xml.ws.policy.privateutil
Class PolicyUtils.Commons

java.lang.Object
  extended by com.sun.xml.ws.policy.privateutil.PolicyUtils.Commons
Enclosing class:
PolicyUtils

public static class PolicyUtils.Commons
extends Object


Constructor Summary
PolicyUtils.Commons()
           
 
Method Summary
static String getCallerMethodName()
          Function returns the name of the caller method for the method executing this function.
static String getStackMethodName(int methodIndexInStack)
          Method returns the name of the method that is on the methodIndexInStack position in the call stack of the current Thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyUtils.Commons

public PolicyUtils.Commons()
Method Detail

getStackMethodName

public static String getStackMethodName(int methodIndexInStack)
Method returns the name of the method that is on the methodIndexInStack position in the call stack of the current Thread.

Parameters:
methodIndexInStack - index to the call stack to get the method name for.
Returns:
the name of the method that is on the methodIndexInStack position in the call stack of the current Thread.

getCallerMethodName

public static String getCallerMethodName()
Function returns the name of the caller method for the method executing this function.

Returns:
caller method name from the call stack of the current Thread.


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.