本文整理汇总了Java中com.sun.btrace.annotations.Return类的典型用法代码示例。如果您正苦于以下问题:Java Return类的具体用法?Java Return怎么用?Java Return使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Return类属于com.sun.btrace.annotations包,在下文中一共展示了Return类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: afterdoAction_return
import com.sun.btrace.annotations.Return; //导入依赖的package包/类
@OnMethod(clazz = DS_CLASS_HTTP_CLIENT, method = "doAction", location = @Location(Kind.RETURN) )
public static void afterdoAction_return(@Return Object connection) {
// 메소드 내용 진입후
println("afterdoAction_return");
println(connection);
BTraceUtils.printFields(connection);
println("after doaction");
}
示例2: onGetInputStream
import com.sun.btrace.annotations.Return; //导入依赖的package包/类
@OnMethod(
clazz = "+java.net.JarURLConnection",
method = "getInputStream",
location = @Location(Kind.RETURN))
public static void onGetInputStream(@Self Object thisObject,
@Return Object inputStreamInstance) {
liveStreams.put(identityHashCode(inputStreamInstance), jstackStr());
}
示例3: onGetDataSource2
import com.sun.btrace.annotations.Return; //导入依赖的package包/类
@OnMethod(clazz = DS_CLASS, type = "void (java.lang.String, java.lang.String, java.lang.String)", method = "getConnection", location = @Location(Kind.RETURN))
public static void onGetDataSource2(@Return Connection connection, String url, String id, String pass) {
println("url :" + url + "\nid : " + id + "\npass : " + pass);
printFields(connection);
}
示例4: onGetDataSource3
import com.sun.btrace.annotations.Return; //导入依赖的package包/类
@OnMethod(clazz = DS_CLASS, type = "void (java.lang.String, java.lang.String, java.lang.String, java.lang.String)", method = "getConnection", location = @Location(Kind.RETURN))
public static void onGetDataSource3(@Return Connection connection, String driver, String url, String id, String pass) {
println("driver : " + driver + "\nurl : " + url + "\nid : " + id + "\npass : " + pass);
printFields(connection);
}
示例5: args
import com.sun.btrace.annotations.Return; //导入依赖的package包/类
@OnMethod(clazz="/.*\\.OnMethodTest/", method="callTopLevel",
[email protected](value=Kind.CALL, clazz="/.*\\.OnMethodTest/", method="callTarget", where=Where.AFTER))
public static void args(@Return long retVal, String a, long b) {
println("args");
}
示例6: args
import com.sun.btrace.annotations.Return; //导入依赖的package包/类
@OnMethod(clazz="/.*\\.OnMethodTest/", method="args", [email protected](value=Kind.RETURN))
public static void args(@Self Object self, @Return long retVal, String a, long b, String[] c, int[] d) {
println("args");
}
示例7: args
import com.sun.btrace.annotations.Return; //导入依赖的package包/类
@OnMethod(clazz="/.*\\.OnMethodTest/", method="args", [email protected](value=Kind.RETURN))
public static void args(@Self Object self, @Return long retVal, @Duration long dur, String a, long b, String[] c, int[] d) {
println("args");
}
示例8: args
import com.sun.btrace.annotations.Return; //导入依赖的package包/类
@OnMethod(clazz="/.*\\.OnMethodTest/", method="args", [email protected](value=Kind.RETURN))
public static void args(@Self Object self, @Return long retVal, @Duration Long dur, String a, long b, String[] c, int[] d) {
println("args");
}
示例9: args
import com.sun.btrace.annotations.Return; //导入依赖的package包/类
@OnMethod(clazz="/.*\\.OnMethodTest/", method="newArray",
[email protected](value=Kind.NEWARRAY, clazz="int", where=Where.AFTER))
public static void args(@Self Object self, @Return int[] retVal) {
println("args");
}
示例10: args
import com.sun.btrace.annotations.Return; //导入依赖的package包/类
@OnMethod(clazz="/.*\\.OnMethodTest/", method="newObject",
[email protected](value=Kind.NEW, clazz="/.*/", where=Where.AFTER))
public static void args(@Self Object self, @Return Map instance, String instanceClassName) {
println("args");
}
示例11: args
import com.sun.btrace.annotations.Return; //导入依赖的package包/类
@OnMethod(clazz="/.*\\.OnMethodTest/", method="newArray",
[email protected](value=Kind.NEWARRAY, clazz="java.lang.String", where=Where.AFTER))
public static void args(@Self Object self, @Return String[] retVal) {
println("args");
}
示例12: args2
import com.sun.btrace.annotations.Return; //导入依赖的package包/类
@OnMethod(clazz="/.*\\.OnMethodTest/", method="/arg.*/", [email protected](value=Kind.RETURN))
public static void args2(@Self Object self, @Return long retVal, @Duration long dur, String a, long b, String[] c, int[] d) {
println("args");
}
示例13: args
import com.sun.btrace.annotations.Return; //导入依赖的package包/类
@OnMethod(clazz="/.*\\.OnMethodTest/", method="field",
[email protected](value=Kind.FIELD_GET, clazz="resources.OnMethodTest", field="field", where=Where.AFTER))
public static void args(@Self Object self, @TargetInstance Object inst, @TargetMethodOrField String fldName, @Return int fldVal) {
println("args");
}
示例14: args
import com.sun.btrace.annotations.Return; //导入依赖的package包/类
@OnMethod(clazz="/.*\\.OnMethodTest/", method="array",
[email protected](value=Kind.ARRAY_GET, where=Where.AFTER))
public static void args(@Self Object self, @Return int retVal, int[] arr, int index) {
println("args");
}
示例15: args
import com.sun.btrace.annotations.Return; //导入依赖的package包/类
@OnMethod(clazz="/.*\\.OnMethodTest/", method="args$static", [email protected](value=Kind.RETURN))
public static void args(String a, @Return long retVal, long b, String[] c, int[] d) {
println("args");
}