Method Summary |
|
int | adjustFlags(long flags) |
void | assembleClassSig(Type type) |
void | assembleParamsSig(List<Type> typarams) |
void | assembleSig(Type type) Assemble signature of given type in string buffer. |
void | assembleSig(List<Type> types) |
int | beginAttrs() Leave space for attribute count and return index for
number of attributes field. |
void | endAttr(int index) Fill in attribute length. |
void | endAttrs(int index, int count) Fill in number of attributes. |
void | enterInner(ClassSymbol c) Enter an inner class into the `innerClasses' set/queue. |
Name | fieldName(Symbol sym) Given a field, return its name. |
public static String | flagNames(long flags) Return flags as a string, separated by " ". |
long | getLastModified(FileObject filename) |
RetentionPolicy | getRetention(TypeSymbol annotationType) |
boolean | hasTypeVar(List<Type> l) |
public static ClassWriter | instance(Context context) Get the ClassWriter instance for this context. |
NameAndType | nameType(Symbol sym) Given a symbol, return its name-and-type. |
void | putChar(ByteBuffer buf, int op, int x) Write a character into given byte buffer;
byte buffer will not be grown. |
void | putInt(ByteBuffer buf, int adr, int x) Write an integer into given byte buffer;
byte buffer will not be grown. |
Name | typeSig(Type type) |
int | writeAttr(Name attrName) Write header for an attribute to data buffer and return
position past attribute length index. |
public JavaFileObject | writeClass(ClassSymbol c) Emit a class file for a given class. |
public void | writeClassFile(OutputStream out, ClassSymbol c) Write class `c' to outstream `out'. |
void | writeCode(Code code) Write code attribute of method. |
void | writeCompoundAttribute(Attribute.Compound c) Write a compound attribute excluding the '@' marker. |
int | writeEnclosingMethodAttribute(ClassSymbol c) Write the EnclosingMethod attribute if needed. |
void | writeField(VarSymbol v) Write field symbol, entering all references into constant pool. |
void | writeFields(Scope.Entry e) |
int | writeFlagAttrs(long flags) Write flag attributes; return number of attributes written. |
void | writeInnerClasses() Write "inner classes" attribute. |
int | writeJavaAnnotations(List<Attribute.Compound> attrs) Write Java-language annotations; return number of JVM
attributes written (zero or one). |
int | writeMemberAttrs(Symbol sym) Write member (field or method) attributes;
return number of attributes written. |
void | writeMethod(MethodSymbol m) Write method symbol, entering all references into constant pool. |
void | writeMethods(Scope.Entry e) |
int | writeParameterAttrs(MethodSymbol m) Write method parameter annotations;
return number of attributes written. |
void | writePool(Pool pool) Write constant pool to pool buffer. |
void | writeStackMap(Code code) |
void | writeStackMapType(Type t) |
public Name | xClassName(Type t) Given a type t, return the extended class name of its erasure in
external representation. |