| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| private CtClass | |
| public CtField | |
| public String | |
| public String | Returns: null if this information is not available.Overrides javassist. Returns the source file containing the field access. |
| public int | Returns: -1 if this information is not available.Overrides javassist. Returns the line number of the source line containing the field access. |
| public String | |
| public boolean | |
| public boolean | |
| pack-priv static boolean | |
| public boolean | |
| public CtClass[] | mayThrow()
Overrides javassist. Returns the list of exceptions that the expression may throw. |
| public void | replace(String
a Java statement except try-catch. statement)Implements abstract javassist. Replaces the method call with the bytecode derived from the given source text. |
| public CtBehavior | where()
Overrides javassist. Returns the method or constructor containing the field-access expression represented by this object. |
| opcode | back to summary |
|---|---|
| pack-priv int opcode | |
| FieldAccess | back to summary |
|---|---|
| protected FieldAccess(int pos, CodeIterator i, CtClass declaring, MethodInfo m, int op) | |
| getClassName | back to summary |
|---|---|
| public String getClassName() Returns the name of the class in which the field is declared. | |
| getCtClass | back to summary |
|---|---|
| private CtClass getCtClass() throws NotFoundException Returns the class in which the field is declared. | |
| getField | back to summary |
|---|---|
| public CtField getField() throws NotFoundException Returns the field accessed by this expression. | |
| getFieldName | back to summary |
|---|---|
| public String getFieldName() Returns the name of the field. | |
| getFileName | back to summary |
|---|---|
| public String getFileName() Overrides javassist. Returns the source file containing the field access. | |
| getLineNumber | back to summary |
|---|---|
| public int getLineNumber() Overrides javassist. Returns the line number of the source line containing the field access.
| |
| getSignature | back to summary |
|---|---|
| public String getSignature() Returns the signature of the field type. The signature is represented by a character string called field descriptor, which is defined in the JVM specification.
| |
| isReader | back to summary |
|---|---|
| public boolean isReader() Returns true if the field is read. | |
| isStatic | back to summary |
|---|---|
| public boolean isStatic() Returns true if the field is static. | |
| isStatic | back to summary |
|---|---|
| pack-priv static boolean isStatic(int c) | |
| isWriter | back to summary |
|---|---|
| public boolean isWriter() Returns true if the field is written in. | |
| mayThrow | back to summary |
|---|---|
| public CtClass[] mayThrow() Overrides javassist. Returns the list of exceptions that the expression may throw. This list includes both the exceptions that the try-catch statements including the expression can catch and the exceptions that the throws declaration allows the method to throw.
| |
| replace | back to summary |
|---|---|
| public void replace(String statement) throws CannotCompileException Implements abstract javassist. Replaces the method call with the bytecode derived from the given source text. $0 is available even if the called method is static. If the field access is writing, $_ is available but the value of $_ is ignored. | |
| where | back to summary |
|---|---|
| public CtBehavior where() Overrides javassist. Returns the method or constructor containing the field-access expression represented by this object.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv CtClass | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | doit(JvstCodeGen gen, Bytecode bytecode, ASTList args)
Implements javassist.
|
| public void | setReturnType(JvstTypeChecker c, ASTList args)
Implements javassist.
|
| fieldType | back to summary |
|---|---|
| pack-priv CtClass fieldType | |
| index | back to summary |
|---|---|
| pack-priv int index | |
| opcode | back to summary |
|---|---|
| pack-priv int opcode | |
| targetVar | back to summary |
|---|---|
| pack-priv int targetVar | |
| ProceedForRead | back to summary |
|---|---|
| pack-priv ProceedForRead(CtClass type, int op, int i, int var) | |
| doit | back to summary |
|---|---|
| public void doit(JvstCodeGen gen, Bytecode bytecode, ASTList args) throws CompileError Implements javassist.
| |
| setReturnType | back to summary |
|---|---|
| public void setReturnType(JvstTypeChecker c, ASTList args) throws CompileError Implements javassist.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv CtClass | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | doit(JvstCodeGen gen, Bytecode bytecode, ASTList args)
Implements javassist.
|
| public void | setReturnType(JvstTypeChecker c, ASTList args)
Implements javassist.
|
| fieldType | back to summary |
|---|---|
| pack-priv CtClass fieldType | |
| index | back to summary |
|---|---|
| pack-priv int index | |
| opcode | back to summary |
|---|---|
| pack-priv int opcode | |
| targetVar | back to summary |
|---|---|
| pack-priv int targetVar | |
| ProceedForWrite | back to summary |
|---|---|
| pack-priv ProceedForWrite(CtClass type, int op, int i, int var) | |
| doit | back to summary |
|---|---|
| public void doit(JvstCodeGen gen, Bytecode bytecode, ASTList args) throws CompileError Implements javassist.
| |
| setReturnType | back to summary |
|---|---|
| public void setReturnType(JvstTypeChecker c, ASTList args) throws CompileError Implements javassist.
| |