|
||||||||||
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.AllocationExpression
org.eclipse.jdt.internal.compiler.ast.QualifiedAllocationExpression
public class QualifiedAllocationExpression
Variation on allocation, where can optionally be specified any of: - leading enclosing instance - trailing anonymous type - generic type arguments for generic constructor invocation
Field Summary | |
---|---|
TypeDeclaration |
anonymousType
|
Expression |
enclosingInstance
|
Fields inherited from class org.eclipse.jdt.internal.compiler.ast.AllocationExpression |
---|
arguments, binding, enumConstant, genericTypeArguments, type, typeArguments |
Fields inherited from class org.eclipse.jdt.internal.compiler.ast.Expression |
---|
constant, implicitConversion, resolvedType, statementEnd |
Constructor Summary | |
---|---|
QualifiedAllocationExpression()
|
|
QualifiedAllocationExpression(TypeDeclaration anonymousType)
|
Method Summary | |
---|---|
FlowInfo |
analyseCode(BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo)
|
Expression |
enclosingInstance()
|
void |
generateCode(BlockScope currentScope,
CodeStream codeStream,
boolean valueRequired)
Every expression is responsible for generating its implicit conversion when necessary. |
boolean |
isSuperAccess()
|
void |
manageEnclosingInstanceAccessIfNecessary(BlockScope currentScope,
FlowInfo flowInfo)
|
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 |
traverse(ASTVisitor visitor,
BlockScope scope)
Traverse an expression in the context of a blockScope |
Methods inherited from class org.eclipse.jdt.internal.compiler.ast.AllocationExpression |
---|
checkCapturedLocalInitializationIfNecessary, genericTypeArguments, isTypeAccess, manageSyntheticAccessIfNecessary, setActualReceiverType, setDepth, setFieldIndex |
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, isImplicitThis, isMethodUseDeprecated, isSuper, isThis, 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 |
Field Detail |
---|
public Expression enclosingInstance
public TypeDeclaration anonymousType
Constructor Detail |
---|
public QualifiedAllocationExpression()
public QualifiedAllocationExpression(TypeDeclaration anonymousType)
Method Detail |
---|
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo)
analyseCode
in class AllocationExpression
public Expression enclosingInstance()
enclosingInstance
in class AllocationExpression
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired)
Expression
generateCode
in class AllocationExpression
currentScope
- org.eclipse.jdt.internal.compiler.lookup.BlockScopecodeStream
- org.eclipse.jdt.internal.compiler.codegen.CodeStreamvalueRequired
- booleanpublic boolean isSuperAccess()
isSuperAccess
in interface InvocationSite
isSuperAccess
in class AllocationExpression
public void manageEnclosingInstanceAccessIfNecessary(BlockScope currentScope, FlowInfo flowInfo)
manageEnclosingInstanceAccessIfNecessary
in class AllocationExpression
public java.lang.StringBuffer printExpression(int indent, java.lang.StringBuffer output)
printExpression
in class AllocationExpression
public TypeBinding resolveType(BlockScope scope)
Expression
resolveType
in class AllocationExpression
public void traverse(ASTVisitor visitor, BlockScope scope)
Expression
traverse
in class AllocationExpression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |