org.eclipse.jdt.internal.compiler.classfmt
Class AnnotationMethodInfo

java.lang.Object
  extended by org.eclipse.jdt.internal.compiler.classfmt.ClassFileStruct
      extended by org.eclipse.jdt.internal.compiler.classfmt.MethodInfo
          extended by org.eclipse.jdt.internal.compiler.classfmt.AnnotationMethodInfo
All Implemented Interfaces:
Comparable, IBinaryMethod, IGenericMethod
Direct Known Subclasses:
AnnotationMethodInfoWithAnnotations

public class AnnotationMethodInfo
extends MethodInfo


Field Summary
protected  Object defaultValue
           
 
Fields inherited from class org.eclipse.jdt.internal.compiler.classfmt.MethodInfo
accessFlags, argumentNames, argumentNamesIndex, attributeBytes, descriptor, exceptionNames, name, signature, signatureUtf8Offset, tagBits
 
Method Summary
static MethodInfo createAnnotationMethod(byte[] classFileBytes, int[] offsets, int offset)
           
 Object getDefaultValue()
          Return ClassSignature for a Class Class.
protected  void toStringContent(StringBuffer buffer)
           
 
Methods inherited from class org.eclipse.jdt.internal.compiler.classfmt.MethodInfo
compareTo, createMethod, equals, getAnnotations, getArgumentNames, getExceptionTypeNames, getGenericSignature, getMethodDescriptor, getModifiers, getParameterAnnotations, getSelector, getTagBits, hashCode, initialize, isClinit, isConstructor, isSynthetic, sizeInBytes, toString
 
Methods inherited from class org.eclipse.jdt.internal.compiler.classfmt.ClassFileStruct
doubleAt, floatAt, i4At, i8At, reset, u1At, u2At, u4At, utf8At
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

defaultValue

protected Object defaultValue
Method Detail

createAnnotationMethod

public static MethodInfo createAnnotationMethod(byte[] classFileBytes,
                                                int[] offsets,
                                                int offset)

getDefaultValue

public Object getDefaultValue()
Description copied from interface: IBinaryMethod
Return ClassSignature for a Class Class. Return Constant for compile-time constant of primitive type, as well as String literals. Return EnumConstantSignature if value is an enum constant. Return IBinaryAnnotation for annotation type. Return Object[] for array type.

Specified by:
getDefaultValue in interface IBinaryMethod
Overrides:
getDefaultValue in class MethodInfo
Returns:
default value of this annotation method

toStringContent

protected void toStringContent(StringBuffer buffer)
Overrides:
toStringContent in class MethodInfo


Copyright © 2012. All Rights Reserved.