|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.compiler.ast.ASTNode
org.eclipse.jdt.internal.compiler.ast.Statement
org.eclipse.jdt.internal.compiler.ast.Expression
org.eclipse.jdt.internal.compiler.ast.Reference
org.eclipse.jdt.internal.compiler.ast.ThisReference
org.eclipse.jdt.internal.eval.CodeSnippetThisReference
public class CodeSnippetThisReference
A this reference inside a code snippet denotes a remote receiver object (that is, the receiver of the context in the stack frame)
Field Summary |
---|
Fields inherited from class org.eclipse.jdt.internal.compiler.ast.Expression |
---|
constant, implicitConversion, resolvedType, statementEnd |
Fields inherited from interface org.eclipse.jdt.internal.eval.EvaluationConstants |
---|
CODE_SNIPPET_CLASS_NAME_PREFIX, CODE_SNIPPET_NAME, DELEGATE_THIS, GLOBAL_VARS_CLASS_NAME_PREFIX, LOCAL_VAR_PREFIX, PACKAGE_NAME, RESULT_TYPE_FIELD, RESULT_VALUE_FIELD, ROOT_CLASS_NAME, ROOT_COMPOUND_NAME, ROOT_FULL_CLASS_NAME, RUN_METHOD, SETRESULT_ARGUMENTS, SETRESULT_SELECTOR |
Constructor Summary | |
---|---|
CodeSnippetThisReference(int s,
int sourceEnd,
EvaluationContext evaluationContext,
boolean isImplicit)
CodeSnippetThisReference constructor comment. |
Method Summary | |
---|---|
boolean |
checkAccess(MethodScope methodScope)
|
void |
generateCode(BlockScope currentScope,
CodeStream codeStream,
boolean valueRequired)
Every expression is responsible for generating its implicit conversion when necessary. |
TypeBinding[] |
genericTypeArguments()
|
boolean |
isSuperAccess()
|
boolean |
isTypeAccess()
|
java.lang.StringBuffer |
printExpression(int indent,
java.lang.StringBuffer output)
|
TypeBinding |
resolveType(BlockScope scope)
Resolve the type of this expression in the context of a blockScope |
void |
setActualReceiverType(ReferenceBinding receiverType)
|
void |
setDepth(int depth)
|
void |
setFieldIndex(int index)
|
Methods inherited from class org.eclipse.jdt.internal.compiler.ast.ThisReference |
---|
analyseAssignment, generateAssignment, generateCompoundAssignment, generatePostIncrement, implicitThis, isImplicitThis, isThis, nullStatus, traverse, traverse |
Methods inherited from class org.eclipse.jdt.internal.compiler.ast.Reference |
---|
analyseCode, fieldBinding, fieldStore |
Methods inherited from class org.eclipse.jdt.internal.compiler.ast.Statement |
---|
branchChainTo, complainIfUnreachable, generateArguments, isEmptyBlock, isValidJavaStatement, resolveCase |
Methods inherited from class org.eclipse.jdt.internal.compiler.ast.ASTNode |
---|
checkInvocationArguments, concreteStatement, isFieldUseDeprecated, isMethodUseDeprecated, isSuper, isTypeUseDeprecated, printAnnotations, printIndent, printModifiers, resolveAnnotations, resolveDeprecatedAnnotations, sourceEnd, sourceStart, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.jdt.internal.compiler.lookup.InvocationSite |
---|
sourceEnd, sourceStart |
Constructor Detail |
---|
public CodeSnippetThisReference(int s, int sourceEnd, EvaluationContext evaluationContext, boolean isImplicit)
s
- intsourceEnd
- intMethod Detail |
---|
public boolean checkAccess(MethodScope methodScope)
checkAccess
in class ThisReference
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired)
Expression
generateCode
in class ThisReference
currentScope
- org.eclipse.jdt.internal.compiler.lookup.BlockScopecodeStream
- org.eclipse.jdt.internal.compiler.codegen.CodeStreamvalueRequired
- booleanpublic TypeBinding[] genericTypeArguments()
genericTypeArguments
in interface InvocationSite
InvocationSite.genericTypeArguments()
public boolean isSuperAccess()
isSuperAccess
in interface InvocationSite
public boolean isTypeAccess()
isTypeAccess
in interface InvocationSite
public java.lang.StringBuffer printExpression(int indent, java.lang.StringBuffer output)
printExpression
in class ThisReference
public TypeBinding resolveType(BlockScope scope)
Expression
resolveType
in class ThisReference
public void setActualReceiverType(ReferenceBinding receiverType)
setActualReceiverType
in interface InvocationSite
public void setDepth(int depth)
setDepth
in interface InvocationSite
public void setFieldIndex(int index)
setFieldIndex
in interface InvocationSite
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |