java.lang.Class.getSignatureAttribute()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(8.5k)|赞(0)|评价(0)|浏览(224)

本文整理了Java中java.lang.Class.getSignatureAttribute()方法的一些代码示例,展示了Class.getSignatureAttribute()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Class.getSignatureAttribute()方法的具体详情如下:
包路径:java.lang.Class
类名称:Class
方法名:getSignatureAttribute

Class.getSignatureAttribute介绍

[英]Get the Signature attribute for this class. Returns null if not found.
[中]获取此类的签名属性。如果未找到,则返回null。

代码示例

代码示例来源:origin: robovm/robovm

  1. /**
  2. * Returns the {@code Type} that represents the superclass of this {@code
  3. * class}.
  4. */
  5. public Type getGenericSuperclass() {
  6. GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  7. parser.parseForClass(this, getSignatureAttribute());
  8. return Types.getType(parser.superclassType);
  9. }

代码示例来源:origin: robovm/robovm

  1. /**
  2. * Returns an array containing {@code TypeVariable} objects for type
  3. * variables declared by the generic class represented by this {@code
  4. * Class}. Returns an empty array if the class is not generic.
  5. */
  6. @SuppressWarnings("unchecked")
  7. public synchronized TypeVariable<Class<T>>[] getTypeParameters() {
  8. GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  9. parser.parseForClass(this, getSignatureAttribute());
  10. return parser.formalTypeParameters.clone();
  11. }

代码示例来源:origin: robovm/robovm

  1. /**
  2. * Returns the {@link Type}s of the interfaces that this {@code Class} directly
  3. * implements. If the {@code Class} represents a primitive type or {@code
  4. * void} then an empty array is returned.
  5. */
  6. public Type[] getGenericInterfaces() {
  7. GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  8. parser.parseForClass(this, getSignatureAttribute());
  9. return Types.getTypeArray(parser.interfaceTypes, true);
  10. }

代码示例来源:origin: MobiVM/robovm

  1. /**
  2. * Returns the {@link Type}s of the interfaces that this {@code Class} directly
  3. * implements. If the {@code Class} represents a primitive type or {@code
  4. * void} then an empty array is returned.
  5. */
  6. public Type[] getGenericInterfaces() {
  7. GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  8. parser.parseForClass(this, getSignatureAttribute());
  9. return Types.getTypeArray(parser.interfaceTypes, true);
  10. }

代码示例来源:origin: ibinti/bugvm

  1. /**
  2. * Returns an array containing {@code TypeVariable} objects for type
  3. * variables declared by the generic class represented by this {@code
  4. * Class}. Returns an empty array if the class is not generic.
  5. */
  6. @SuppressWarnings("unchecked")
  7. public synchronized TypeVariable<Class<T>>[] getTypeParameters() {
  8. GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  9. parser.parseForClass(this, getSignatureAttribute());
  10. return parser.formalTypeParameters.clone();
  11. }

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

  1. /**
  2. * Returns the {@code Type} that represents the superclass of this {@code
  3. * class}.
  4. */
  5. public Type getGenericSuperclass() {
  6. GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  7. parser.parseForClass(this, getSignatureAttribute());
  8. return Types.getType(parser.superclassType);
  9. }

代码示例来源:origin: ibinti/bugvm

  1. /**
  2. * Returns the {@code Type} that represents the superclass of this {@code
  3. * class}.
  4. */
  5. public Type getGenericSuperclass() {
  6. GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  7. parser.parseForClass(this, getSignatureAttribute());
  8. return Types.getType(parser.superclassType);
  9. }

代码示例来源:origin: com.bugvm/bugvm-rt

  1. /**
  2. * Returns an array containing {@code TypeVariable} objects for type
  3. * variables declared by the generic class represented by this {@code
  4. * Class}. Returns an empty array if the class is not generic.
  5. */
  6. @SuppressWarnings("unchecked")
  7. public synchronized TypeVariable<Class<T>>[] getTypeParameters() {
  8. GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  9. parser.parseForClass(this, getSignatureAttribute());
  10. return parser.formalTypeParameters.clone();
  11. }

代码示例来源:origin: com.bugvm/bugvm-rt

  1. /**
  2. * Returns the {@link Type}s of the interfaces that this {@code Class} directly
  3. * implements. If the {@code Class} represents a primitive type or {@code
  4. * void} then an empty array is returned.
  5. */
  6. public Type[] getGenericInterfaces() {
  7. GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  8. parser.parseForClass(this, getSignatureAttribute());
  9. return Types.getTypeArray(parser.interfaceTypes, true);
  10. }

代码示例来源:origin: FlexoVM/flexovm

  1. /**
  2. * Returns an array containing {@code TypeVariable} objects for type
  3. * variables declared by the generic class represented by this {@code
  4. * Class}. Returns an empty array if the class is not generic.
  5. */
  6. @SuppressWarnings("unchecked")
  7. public synchronized TypeVariable<Class<T>>[] getTypeParameters() {
  8. GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  9. parser.parseForClass(this, getSignatureAttribute());
  10. return parser.formalTypeParameters.clone();
  11. }

代码示例来源:origin: ibinti/bugvm

  1. /**
  2. * Returns the {@link Type}s of the interfaces that this {@code Class} directly
  3. * implements. If the {@code Class} represents a primitive type or {@code
  4. * void} then an empty array is returned.
  5. */
  6. public Type[] getGenericInterfaces() {
  7. GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  8. parser.parseForClass(this, getSignatureAttribute());
  9. return Types.getTypeArray(parser.interfaceTypes, true);
  10. }

代码示例来源:origin: MobiVM/robovm

  1. /**
  2. * Returns the {@code Type} that represents the superclass of this {@code
  3. * class}.
  4. */
  5. public Type getGenericSuperclass() {
  6. GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  7. parser.parseForClass(this, getSignatureAttribute());
  8. return Types.getType(parser.superclassType);
  9. }

代码示例来源:origin: MobiVM/robovm

  1. /**
  2. * Returns an array containing {@code TypeVariable} objects for type
  3. * variables declared by the generic class represented by this {@code
  4. * Class}. Returns an empty array if the class is not generic.
  5. */
  6. @SuppressWarnings("unchecked")
  7. public synchronized TypeVariable<Class<T>>[] getTypeParameters() {
  8. GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  9. parser.parseForClass(this, getSignatureAttribute());
  10. return parser.formalTypeParameters.clone();
  11. }

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

  1. /**
  2. * Returns an array containing {@code TypeVariable} objects for type
  3. * variables declared by the generic class represented by this {@code
  4. * Class}. Returns an empty array if the class is not generic.
  5. */
  6. @SuppressWarnings("unchecked")
  7. public synchronized TypeVariable<Class<T>>[] getTypeParameters() {
  8. GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  9. parser.parseForClass(this, getSignatureAttribute());
  10. return parser.formalTypeParameters.clone();
  11. }

代码示例来源:origin: FlexoVM/flexovm

  1. /**
  2. * Returns the {@link Type}s of the interfaces that this {@code Class} directly
  3. * implements. If the {@code Class} represents a primitive type or {@code
  4. * void} then an empty array is returned.
  5. */
  6. public Type[] getGenericInterfaces() {
  7. GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  8. parser.parseForClass(this, getSignatureAttribute());
  9. return Types.getTypeArray(parser.interfaceTypes, true);
  10. }

代码示例来源:origin: com.gluonhq/robovm-rt

  1. /**
  2. * Returns the {@code Type} that represents the superclass of this {@code
  3. * class}.
  4. */
  5. public Type getGenericSuperclass() {
  6. GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  7. parser.parseForClass(this, getSignatureAttribute());
  8. return Types.getType(parser.superclassType);
  9. }

代码示例来源:origin: com.gluonhq/robovm-rt

  1. /**
  2. * Returns an array containing {@code TypeVariable} objects for type
  3. * variables declared by the generic class represented by this {@code
  4. * Class}. Returns an empty array if the class is not generic.
  5. */
  6. @SuppressWarnings("unchecked")
  7. public synchronized TypeVariable<Class<T>>[] getTypeParameters() {
  8. GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  9. parser.parseForClass(this, getSignatureAttribute());
  10. return parser.formalTypeParameters.clone();
  11. }

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

  1. /**
  2. * Returns the {@link Type}s of the interfaces that this {@code Class} directly
  3. * implements. If the {@code Class} represents a primitive type or {@code
  4. * void} then an empty array is returned.
  5. */
  6. public Type[] getGenericInterfaces() {
  7. GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  8. parser.parseForClass(this, getSignatureAttribute());
  9. return Types.getTypeArray(parser.interfaceTypes, true);
  10. }

代码示例来源:origin: com.bugvm/bugvm-rt

  1. /**
  2. * Returns the {@code Type} that represents the superclass of this {@code
  3. * class}.
  4. */
  5. public Type getGenericSuperclass() {
  6. GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  7. parser.parseForClass(this, getSignatureAttribute());
  8. return Types.getType(parser.superclassType);
  9. }

代码示例来源:origin: com.gluonhq/robovm-rt

  1. /**
  2. * Returns the {@link Type}s of the interfaces that this {@code Class} directly
  3. * implements. If the {@code Class} represents a primitive type or {@code
  4. * void} then an empty array is returned.
  5. */
  6. public Type[] getGenericInterfaces() {
  7. GenericSignatureParser parser = new GenericSignatureParser(getClassLoader());
  8. parser.parseForClass(this, getSignatureAttribute());
  9. return Types.getTypeArray(parser.interfaceTypes, true);
  10. }

相关文章

Class类方法