|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
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.NameReference
org.eclipse.jdt.internal.compiler.ast.QualifiedNameReference
public class QualifiedNameReference
| 从类 org.eclipse.jdt.internal.compiler.ast.NameReference 继承的字段 |
|---|
actualReceiverType, binding |
| 从类 org.eclipse.jdt.internal.compiler.ast.Expression 继承的字段 |
|---|
constant, implicitConversion, resolvedType, statementEnd |
| 从类 org.eclipse.jdt.internal.compiler.ast.Statement 继承的字段 |
|---|
COMPLAINED_FAKE_REACHABLE, COMPLAINED_UNREACHABLE, NOT_COMPLAINED |
| 构造方法摘要 | |
|---|---|
QualifiedNameReference(char[][] tokens,
long[] positions,
int sourceStart,
int sourceEnd)
|
|
| 方法摘要 | |
|---|---|
FlowInfo |
analyseAssignment(BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo,
Assignment assignment,
boolean isCompound)
|
FlowInfo |
analyseCode(BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo)
|
FlowInfo |
analyseCode(BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo,
boolean valueRequired)
More sophisticated for of the flow analysis used for analyzing expressions, and be able to optimize out portions of expressions where no actual value is required. |
void |
checkNPE(BlockScope scope,
FlowContext flowContext,
FlowInfo flowInfo,
boolean checkString)
|
void |
computeConversion(Scope scope,
TypeBinding runtimeTimeType,
TypeBinding compileTimeType)
Base types need that the widening is explicitly done by the compiler using some bytecode like i2f. |
void |
generateAssignment(BlockScope currentScope,
CodeStream codeStream,
Assignment assignment,
boolean valueRequired)
|
void |
generateCode(BlockScope currentScope,
CodeStream codeStream,
boolean valueRequired)
Every expression is responsible for generating its implicit conversion when necessary. |
void |
generateCompoundAssignment(BlockScope currentScope,
CodeStream codeStream,
Expression expression,
int operator,
int assignmentImplicitConversion,
boolean valueRequired)
|
void |
generatePostIncrement(BlockScope currentScope,
CodeStream codeStream,
CompoundAssignment postIncrement,
boolean valueRequired)
|
FieldBinding |
generateReadSequence(BlockScope currentScope,
CodeStream codeStream)
|
void |
generateReceiver(CodeStream codeStream)
|
TypeBinding[] |
genericTypeArguments()
|
protected FieldBinding |
getCodegenBinding(int index)
|
protected TypeBinding |
getFinalReceiverType()
Returns the receiver type for the final field in sequence (i.e. the return type of the previous binding) |
protected TypeBinding |
getGenericCast(int index)
|
TypeBinding |
getOtherFieldBindings(BlockScope scope)
|
void |
manageEnclosingInstanceAccessIfNecessary(BlockScope currentScope,
FlowInfo flowInfo)
|
void |
manageSyntheticAccessIfNecessary(BlockScope currentScope,
FieldBinding fieldBinding,
int index,
FlowInfo flowInfo)
index is <0 to denote write access emulation |
int |
nullStatus(FlowInfo flowInfo)
|
Constant |
optimizedBooleanConstant()
Constant usable for bytecode pattern optimizations, but cannot be inlined since it is not strictly equivalent to the definition of constant expressions. |
TypeBinding |
postConversionType(Scope scope)
Returns the type of the expression after required implicit conversions. |
StringBuffer |
printExpression(int indent,
StringBuffer output)
|
TypeBinding |
reportError(BlockScope scope)
Normal field binding did not work, try to bind to a field of the delegate receiver. |
TypeBinding |
resolveType(BlockScope scope)
Resolve the type of this expression in the context of a blockScope |
void |
setFieldIndex(int index)
|
protected void |
setGenericCast(int index,
TypeBinding someGenericCast)
|
protected void |
setSyntheticAccessor(FieldBinding fieldBinding,
int index,
SyntheticMethodBinding syntheticAccessor)
|
void |
traverse(ASTVisitor visitor,
BlockScope scope)
Traverse an expression in the context of a blockScope |
void |
traverse(ASTVisitor visitor,
ClassScope scope)
Traverse an expression in the context of a classScope |
String |
unboundReferenceErrorName()
|
| 从类 org.eclipse.jdt.internal.compiler.ast.NameReference 继承的方法 |
|---|
fieldBinding, isSuperAccess, isTypeAccess, isTypeReference, setActualReceiverType, setDepth |
| 从类 org.eclipse.jdt.internal.compiler.ast.Reference 继承的方法 |
|---|
fieldStore |
| 从类 org.eclipse.jdt.internal.compiler.ast.Statement 继承的方法 |
|---|
branchChainTo, checkAgainstNullAnnotation, complainIfUnreachable, expectedType, generateArguments, isBoxingCompatible, isEmptyBlock, isKnowDeadCodePattern, isValidJavaStatement, resolveCase |
| 从类 org.eclipse.jdt.internal.compiler.ast.ASTNode 继承的方法 |
|---|
checkInvocationArguments, concreteStatement, isFieldUseDeprecated, isImplicitThis, isMethodUseDeprecated, isSuper, isThis, isTypeUseDeprecated, printAnnotations, printIndent, printModifiers, resolveAnnotations, resolveDeprecatedAnnotations, sourceEnd, sourceStart, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 从接口 org.eclipse.jdt.internal.compiler.lookup.InvocationSite 继承的方法 |
|---|
expectedType, sourceEnd, sourceStart |
| 字段详细信息 |
|---|
public char[][] tokens
public long[] sourcePositions
public FieldBinding[] otherBindings
public int indexOfFirstFieldBinding
public SyntheticMethodBinding syntheticWriteAccessor
public SyntheticMethodBinding[] syntheticReadAccessors
public TypeBinding genericCast
public TypeBinding[] otherGenericCasts
| 构造方法详细信息 |
|---|
public QualifiedNameReference(char[][] tokens,
long[] positions,
int sourceStart,
int sourceEnd)
| 方法详细信息 |
|---|
public FlowInfo analyseAssignment(BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo,
Assignment assignment,
boolean isCompound)
Reference 中的 analyseAssignment
public FlowInfo analyseCode(BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo)
Reference 中的 analyseCode
public FlowInfo analyseCode(BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo,
boolean valueRequired)
Expression 复制的描述
Expression 中的 analyseCode
public void checkNPE(BlockScope scope,
FlowContext flowContext,
FlowInfo flowInfo,
boolean checkString)
public void computeConversion(Scope scope,
TypeBinding runtimeTimeType,
TypeBinding compileTimeType)
Expression 复制的描述
Expression 中的 computeConversionExpression.computeConversion(org.eclipse.jdt.internal.compiler.lookup.Scope, org.eclipse.jdt.internal.compiler.lookup.TypeBinding, org.eclipse.jdt.internal.compiler.lookup.TypeBinding)
public void generateAssignment(BlockScope currentScope,
CodeStream codeStream,
Assignment assignment,
boolean valueRequired)
Reference 中的 generateAssignment
public void generateCode(BlockScope currentScope,
CodeStream codeStream,
boolean valueRequired)
Expression 复制的描述
Expression 中的 generateCodecurrentScope - org.eclipse.jdt.internal.compiler.lookup.BlockScopecodeStream - org.eclipse.jdt.internal.compiler.codegen.CodeStreamvalueRequired - boolean
public void generateCompoundAssignment(BlockScope currentScope,
CodeStream codeStream,
Expression expression,
int operator,
int assignmentImplicitConversion,
boolean valueRequired)
Reference 中的 generateCompoundAssignment
public void generatePostIncrement(BlockScope currentScope,
CodeStream codeStream,
CompoundAssignment postIncrement,
boolean valueRequired)
Reference 中的 generatePostIncrement
public FieldBinding generateReadSequence(BlockScope currentScope,
CodeStream codeStream)
public void generateReceiver(CodeStream codeStream)
public TypeBinding[] genericTypeArguments()
InvocationSite.genericTypeArguments()protected FieldBinding getCodegenBinding(int index)
protected TypeBinding getFinalReceiverType()
protected TypeBinding getGenericCast(int index)
public TypeBinding getOtherFieldBindings(BlockScope scope)
public void manageEnclosingInstanceAccessIfNecessary(BlockScope currentScope,
FlowInfo flowInfo)
public void manageSyntheticAccessIfNecessary(BlockScope currentScope,
FieldBinding fieldBinding,
int index,
FlowInfo flowInfo)
public int nullStatus(FlowInfo flowInfo)
Expression 中的 nullStatuspublic Constant optimizedBooleanConstant()
Expression 复制的描述
Expression 中的 optimizedBooleanConstantpublic TypeBinding postConversionType(Scope scope)
Expression 复制的描述
Expression 中的 postConversionTypeExpression.postConversionType(Scope)
public StringBuffer printExpression(int indent,
StringBuffer output)
Expression 中的 printExpressionpublic TypeBinding reportError(BlockScope scope)
public TypeBinding resolveType(BlockScope scope)
Expression 复制的描述
Expression 中的 resolveTypepublic void setFieldIndex(int index)
InvocationSite 中的 setFieldIndexNameReference 中的 setFieldIndex
protected void setGenericCast(int index,
TypeBinding someGenericCast)
protected void setSyntheticAccessor(FieldBinding fieldBinding,
int index,
SyntheticMethodBinding syntheticAccessor)
public void traverse(ASTVisitor visitor,
BlockScope scope)
Expression 复制的描述
Expression 中的 traverse
public void traverse(ASTVisitor visitor,
ClassScope scope)
Expression 复制的描述
Expression 中的 traversepublic String unboundReferenceErrorName()
NameReference 中的 unboundReferenceErrorName
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||