Method Summary |
|
long | adjustClassFlags(long flags) |
long | adjustFieldFlags(long flags) |
long | adjustMethodFlags(long flags) |
void | attachAnnotationDefault(Symbol sym) Attach the default value for an annotation element. |
void | attachAnnotations(Symbol sym) Attach annotations. |
void | attachParameterAnnotations(Symbol method) Attach parameter annotations. |
public BadClassFile | badClassFile(String key, Object... args) |
Type | classSigToType() Convert class signature to type, where signature is implicit. |
public void | complete(Symbol sym) Completion for classes to be loaded. |
public ClassSymbol | defineClass(Name name, Symbol owner) Define a new class given its name and owner. |
public ClassSymbol | enterClass(Name name, TypeSymbol owner) Create a new toplevel or member class symbol with given name
and owner and enter in `classes' unless already there. |
public ClassSymbol | enterClass(Name flatName, JavaFileObject classFile) Creates a new toplevel class symbol with given flat name and
given class (or source) file. |
public ClassSymbol | enterClass(Name flatname) Create a new member or toplevel class symbol with given flat name
and enter in `classes' unless already there. |
public PackageSymbol | enterPackage(Name fullname) Make a package, given its fully qualified name. |
public PackageSymbol | enterPackage(Name name, PackageSymbol owner) Make a package, given its unqualified name and enclosing package. |
protected void | enterTypevars(Type t) Enter type variables of this classtype and all enclosing ones in
`typevars'. |
protected void | enterTypevars(Symbol sym) |
protected void | extraFileActions(PackageSymbol pack, JavaFileObject fe) |
Type | findTypeVar(Name name) Find type variable with given name in `typevars' scope. |
char | getChar(int bp) Extract a character at position bp from buf. |
double | getDouble(int bp) Extract a double at position bp from buf. |
float | getFloat(int bp) Extract a float at position bp from buf. |
int | getInt(int bp) Extract an integer at position bp from buf. |
long | getLong(int bp) Extract a long integer at position bp from buf. |
protected EnumSet<JavaFileObject.Kind> | getPackageFileKinds() |
protected void | includeClassFile(PackageSymbol p, JavaFileObject file) Include class corresponding to given class file in package,
unless (1) we already have one the same kind (.class or .java), or
(2) we have one of the other kind, and the given class file
is older. |
void | indexPool() Index all constant pool entries, writing their start addresses into
poolIdx. |
public void | init(Symtab syms) Initialize classes and packages, treating this as the definitive classreader. |
public static ClassReader | instance(Context context) Get the ClassReader instance for this invocation. |
public ClassSymbol | loadClass(Name flatname) Load a toplevel class with given fully qualified name
The class is entered into `classes' only if load was successful. |
char | nextChar() Read a character. |
int | nextInt() Read an integer. |
public boolean | packageExists(Name fullname) Check to see if a package exists, given its fully qualified name. |
protected JavaFileObject | preferredFileObject(JavaFileObject a, JavaFileObject b) Implement policy to choose to derive information from a source
file or a class file when both are present. |
Attribute | readAttributeValue() |
void | readClass(ClassSymbol c) Read contents of a given class symbol `c'. |
void | readClassAttr(ClassSymbol c, Name attrName, int attrLen) Read class attribute. |
void | readClassAttrs(ClassSymbol c) Read class attributes. |
Object | readClassOrType(int i) If name is an array type or class signature, return the
corresponding type; otherwise return a ClassSymbol with given name. |
ClassSymbol | readClassSymbol(int i) Read class entry. |
Code | readCode(Symbol owner) Read code block. |
CompoundAnnotationProxy | readCompoundAnnotation() |
void | readEnclosingMethodAttr(Symbol sym) |
Type | readEnumType(int i) |
VarSymbol | readField() Read a field. |
void | readInnerClasses(ClassSymbol c) Read inner class info. |
void | readMemberAttr(Symbol sym, Name attrName, int attrLen) Read member attribute. |
void | readMemberAttrs(Symbol sym) Read member attributes. |
MethodSymbol | readMethod() Read a method. |
Name | readName(int i) Read name. |
Object | readPool(int i) Read constant pool entry at start address i, use pool as a cache. |
Type | readType(int i) Read signature and convert to type. |
Type | readTypeOrClassSymbol(int i) |
List<Type> | readTypeParams(int i) Read signature and convert to type parameters. |
Type | sigToType(Name sig) Convert signature to type, where signature is a name. |
Type | sigToType(byte[] sig, int offset, int len) Convert signature to type, where signature is a byte array segment. |
Type | sigToType() Convert signature to type, where signature is implicit. |
Type | sigToTypeParam() Convert (implicit) signature to type parameter. |
List<Type> | sigToTypeParams(Name name) Convert signature to type parameters, where signature is a name. |
List<Type> | sigToTypeParams(byte[] sig, int offset, int len) Convert signature to type parameters, where signature is a byte
array segment. |
List<Type> | sigToTypeParams() Convert signature to type parameters, where signature is implicit. |
List<Type> | sigToTypes(char terminator) Convert (implicit) signature to list of types
until `terminator' is encountered. |
void | skipMember() |
void | unrecognized(Name attrName) Report unrecognized attribute. |