本文整理了Java中javassist.bytecode.annotation.Annotation.toString()
方法的一些代码示例,展示了Annotation.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Annotation.toString()
方法的具体详情如下:
包路径:javassist.bytecode.annotation.Annotation
类名称:Annotation
方法名:toString
[英]Returns a string representation of the annotation.
[中]返回注释的字符串表示形式。
代码示例来源:origin: redisson/redisson
/**
* Obtains the string representation of this object.
*/
public String toString() {
return value.toString();
}
代码示例来源:origin: org.javassist/javassist
/**
* Obtains the string representation of this object.
*/
@Override
public String toString() {
return value.toString();
}
代码示例来源:origin: redisson/redisson
/**
* Returns a string representation of this object.
*/
public String toString() {
Annotation[] a = getAnnotations();
StringBuilder sbuf = new StringBuilder();
int i = 0;
while (i < a.length) {
sbuf.append(a[i++].toString());
if (i != a.length)
sbuf.append(", ");
}
return sbuf.toString();
}
代码示例来源:origin: redisson/redisson
/**
* Returns a string representation of this object.
*/
public String toString() {
Annotation[][] aa = getAnnotations();
StringBuilder sbuf = new StringBuilder();
int k = 0;
while (k < aa.length) {
Annotation[] a = aa[k++];
int i = 0;
while (i < a.length) {
sbuf.append(a[i++].toString());
if (i != a.length)
sbuf.append(" ");
}
if (k != aa.length)
sbuf.append(", ");
}
return sbuf.toString();
}
}
代码示例来源:origin: org.javassist/javassist
/**
* Returns a string representation of this object.
*/
@Override
public String toString() {
Annotation[] a = getAnnotations();
StringBuilder sbuf = new StringBuilder();
int i = 0;
while (i < a.length) {
sbuf.append(a[i++].toString());
if (i != a.length)
sbuf.append(", ");
}
return sbuf.toString();
}
代码示例来源:origin: org.javassist/javassist
/**
* Returns a string representation of this object.
*/
@Override
public String toString() {
Annotation[][] aa = getAnnotations();
StringBuilder sbuf = new StringBuilder();
for (Annotation[] a : aa) {
for (Annotation i : a)
sbuf.append(i.toString()).append(" ");
sbuf.append(", ");
}
return sbuf.toString().replaceAll(" (?=,)|, $","");
}
}
代码示例来源:origin: redisson/redisson
return annotation.toString();
else if ("hashCode".equals(name))
return new Integer(hashCode());
代码示例来源:origin: org.javassist/javassist
/**
* Executes a method invocation on a proxy instance.
* The implementations of <code>toString()</code>, <code>equals()</code>,
* and <code>hashCode()</code> are directly supplied by the
* <code>AnnotationImpl</code>. The <code>annotationType()</code> method
* is also available on the proxy instance.
*/
@Override
public Object invoke(Object proxy, Method method, Object[] args)
throws Throwable
{
String name = method.getName();
if (Object.class == method.getDeclaringClass()) {
if ("equals".equals(name)) {
Object obj = args[0];
return Boolean.valueOf(checkEquals(obj));
}
else if ("toString".equals(name))
return annotation.toString();
else if ("hashCode".equals(name))
return Integer.valueOf(hashCode());
}
else if ("annotationType".equals(name)
&& method.getParameterTypes().length == 0)
return getAnnotationType();
MemberValue mv = annotation.getMemberValue(name);
if (mv == null)
return getDefault(name, method);
return mv.getValue(classLoader, pool, method);
}
代码示例来源:origin: org.jboss/javassist
/**
* Obtains the string representation of this object.
*/
public String toString() {
return value.toString();
}
代码示例来源:origin: com.eclipsesource.jaxrs/jersey-all
/**
* Obtains the string representation of this object.
*/
public String toString() {
return value.toString();
}
代码示例来源:origin: hstaudacher/osgi-jax-rs-connector
/**
* Obtains the string representation of this object.
*/
public String toString() {
return value.toString();
}
代码示例来源:origin: org.jboss.javassist/com.springsource.javassist
/**
* Obtains the string representation of this object.
*/
public String toString() {
return value.toString();
}
代码示例来源:origin: hstaudacher/osgi-jax-rs-connector
/**
* Obtains the string representation of this object.
*/
public String toString() {
return value.toString();
}
代码示例来源:origin: hstaudacher/osgi-jax-rs-connector
/**
* Returns a string representation of this object.
*/
public String toString() {
Annotation[] a = getAnnotations();
StringBuilder sbuf = new StringBuilder();
int i = 0;
while (i < a.length) {
sbuf.append(a[i++].toString());
if (i != a.length)
sbuf.append(", ");
}
return sbuf.toString();
}
代码示例来源:origin: hstaudacher/osgi-jax-rs-connector
/**
* Returns a string representation of this object.
*/
public String toString() {
Annotation[] a = getAnnotations();
StringBuilder sbuf = new StringBuilder();
int i = 0;
while (i < a.length) {
sbuf.append(a[i++].toString());
if (i != a.length)
sbuf.append(", ");
}
return sbuf.toString();
}
代码示例来源:origin: com.eclipsesource.jaxrs/jersey-all
/**
* Returns a string representation of this object.
*/
public String toString() {
Annotation[] a = getAnnotations();
StringBuilder sbuf = new StringBuilder();
int i = 0;
while (i < a.length) {
sbuf.append(a[i++].toString());
if (i != a.length)
sbuf.append(", ");
}
return sbuf.toString();
}
代码示例来源:origin: org.jboss.javassist/com.springsource.javassist
/**
* Returns a string representation of this object.
*/
public String toString() {
Annotation[] a = getAnnotations();
StringBuilder sbuf = new StringBuilder();
int i = 0;
while (i < a.length) {
sbuf.append(a[i++].toString());
if (i != a.length)
sbuf.append(", ");
}
return sbuf.toString();
}
代码示例来源:origin: org.jboss/javassist
/**
* Returns a string representation of this object.
*/
public String toString() {
Annotation[] a = getAnnotations();
StringBuffer sbuf = new StringBuffer();
int i = 0;
while (i < a.length) {
sbuf.append(a[i++].toString());
if (i != a.length)
sbuf.append(", ");
}
return sbuf.toString();
}
代码示例来源:origin: org.jboss.javassist/com.springsource.javassist
/**
* Returns a string representation of this object.
*/
public String toString() {
Annotation[][] aa = getAnnotations();
StringBuilder sbuf = new StringBuilder();
int k = 0;
while (k < aa.length) {
Annotation[] a = aa[k++];
int i = 0;
while (i < a.length) {
sbuf.append(a[i++].toString());
if (i != a.length)
sbuf.append(" ");
}
if (k != aa.length)
sbuf.append(", ");
}
return sbuf.toString();
}
}
代码示例来源:origin: hstaudacher/osgi-jax-rs-connector
/**
* Returns a string representation of this object.
*/
public String toString() {
Annotation[][] aa = getAnnotations();
StringBuilder sbuf = new StringBuilder();
int k = 0;
while (k < aa.length) {
Annotation[] a = aa[k++];
int i = 0;
while (i < a.length) {
sbuf.append(a[i++].toString());
if (i != a.length)
sbuf.append(" ");
}
if (k != aa.length)
sbuf.append(", ");
}
return sbuf.toString();
}
}
内容来源于网络,如有侵权,请联系作者删除!