|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavassist.compiler.AccessorMaker
public class AccessorMaker
AccessorMaker maintains accessors to private members of an enclosing class. It is necessary for compiling a method in an inner class.
| Constructor Summary | |
|---|---|
AccessorMaker(CtClass c)
|
|
| Method Summary | |
|---|---|
String |
getConstructor(CtClass c,
String desc,
MethodInfo orig)
|
MethodInfo |
getFieldGetter(FieldInfo finfo,
boolean is_static)
Returns the method_info representing the added getter. |
MethodInfo |
getFieldSetter(FieldInfo finfo,
boolean is_static)
Returns the method_info representing the added setter. |
String |
getMethodAccessor(String name,
String desc,
String accDesc,
MethodInfo orig)
Returns the name of the method for accessing a private method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AccessorMaker(CtClass c)
| Method Detail |
|---|
public String getConstructor(CtClass c,
String desc,
MethodInfo orig)
throws CompileError
CompileError
public String getMethodAccessor(String name,
String desc,
String accDesc,
MethodInfo orig)
throws CompileError
name - the name of the private method.desc - the descriptor of the private method.accDesc - the descriptor of the accessor method. The first
parameter type is clazz.
If the private method is static,
accDesc must be identical to desc.orig - the method info of the private method.
- Returns:
-
- Throws:
CompileError
public MethodInfo getFieldGetter(FieldInfo finfo,
boolean is_static)
throws CompileError
CompileError
public MethodInfo getFieldSetter(FieldInfo finfo,
boolean is_static)
throws CompileError
CompileError
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||