Uses of Class
org.eclipse.jdt.internal.compiler.ast.Expression

Packages that use Expression
org.eclipse.jdt.internal.compiler   
org.eclipse.jdt.internal.compiler.ast   
org.eclipse.jdt.internal.compiler.codegen   
org.eclipse.jdt.internal.compiler.flow   
org.eclipse.jdt.internal.compiler.lookup   
org.eclipse.jdt.internal.compiler.parser   
org.eclipse.jdt.internal.compiler.problem   
org.eclipse.jdt.internal.core.util   
 

Uses of Expression in org.eclipse.jdt.internal.compiler
 

Methods in org.eclipse.jdt.internal.compiler with parameters of type Expression
 void ISourceElementRequestor.exitMethod(int declarationEnd, Expression defaultValue)
           
 void SourceElementRequestorAdapter.exitMethod(int declarationEnd, Expression defaultValue)
           
 

Uses of Expression in org.eclipse.jdt.internal.compiler.ast
 

Subclasses of Expression in org.eclipse.jdt.internal.compiler.ast
 class AllocationExpression
           
 class AND_AND_Expression
           
 class Annotation
          Annotation
 class ArrayAllocationExpression
           
 class ArrayInitializer
           
 class ArrayQualifiedTypeReference
           
 class ArrayReference
           
 class ArrayTypeReference
           
 class Assignment
           
 class BinaryExpression
           
 class CastExpression
           
 class CharLiteral
           
 class ClassLiteralAccess
           
 class CombinedBinaryExpression
          CombinedBinaryExpression is an implementation of BinaryExpression that specifically attempts to mitigate the issues raised by expressions which have a very deep leftmost branch.
 class CompoundAssignment
           
 class ConditionalExpression
           
 class ContainerAnnotation
           
 class DoubleLiteral
           
 class EqualExpression
           
 class ExtendedStringLiteral
           
 class FalseLiteral
           
 class FieldReference
           
 class FloatLiteral
           
 class FunctionalExpression
           
 class InstanceOfExpression
           
 class IntersectionCastTypeReference
           
 class IntLiteral
           
 class IntLiteralMinValue
           
 class JavadocAllocationExpression
           
 class JavadocArgumentExpression
           
 class JavadocArrayQualifiedTypeReference
           
 class JavadocArraySingleTypeReference
           
 class JavadocFieldReference
           
 class JavadocImplicitTypeReference
           
 class JavadocMessageSend
           
 class JavadocQualifiedTypeReference
           
 class JavadocSingleNameReference
           
 class JavadocSingleTypeReference
           
 class LambdaExpression
           
 class Literal
           
 class LongLiteral
           
 class LongLiteralMinValue
           
 class MagicLiteral
           
 class MarkerAnnotation
           
 class MessageSend
           
 class NameReference
           
 class NormalAnnotation
          Normal annotation node
 class NullLiteral
           
 class NumberLiteral
           
 class OperatorExpression
           
 class OR_OR_Expression
           
 class ParameterizedQualifiedTypeReference
          Syntactic representation of a reference to a generic type.
 class ParameterizedSingleTypeReference
          Syntactic representation of a reference to a generic type.
 class PostfixExpression
           
 class PrefixExpression
           
 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
 class QualifiedNameReference
           
 class QualifiedSuperReference
           
 class QualifiedThisReference
           
 class QualifiedTypeReference
           
 class Reference
           
 class ReferenceExpression
           
 class SingleMemberAnnotation
          SingleMemberAnnotation node
 class SingleNameReference
           
 class SingleTypeReference
           
 class StringLiteral
           
 class StringLiteralConcatenation
          Flatten string literal
 class SuperReference
           
 class ThisReference
           
 class TrueLiteral
           
 class TypeReference
           
 class UnaryExpression
           
 class UnionTypeReference
           
 class Wildcard
          Node to represent Wildcard
 

Fields in org.eclipse.jdt.internal.compiler.ast declared as Expression
 Expression[] ExplicitConstructorCall.arguments
           
 Expression[] AllocationExpression.arguments
           
 Expression[] MessageSend.arguments
           
 Expression AssertStatement.assertExpression
           
 Expression ForeachStatement.collection
           
 Expression DoStatement.condition
           
 Expression ForStatement.condition
           
 Expression ConditionalExpression.condition
           
 Expression WhileStatement.condition
           
 Expression IfStatement.condition
           
 Expression CaseStatement.constantExpression
           
 Expression AnnotationMethodDeclaration.defaultValue
           
 Expression[] ArrayAllocationExpression.dimensions
           
 Expression QualifiedAllocationExpression.enclosingInstance
           
 Expression ThrowStatement.exception
           
 Expression AssertStatement.exceptionArgument
           
 Expression Assignment.expression
           
 Expression SynchronizedStatement.expression
           
 Expression ReturnStatement.expression
           
 Expression InstanceOfExpression.expression
           
 Expression UnaryExpression.expression
           
 Expression SwitchStatement.expression
           
 Expression CastExpression.expression
           
 Expression[] ArrayInitializer.expressions
           
 Expression AbstractVariableDeclaration.initialization
           
 Expression BinaryExpression.left
           
 Expression Assignment.lhs
           
 Expression ReferenceExpression.lhs
           
 Expression[] StringLiteralConcatenation.literals
           
 Expression SingleMemberAnnotation.memberValue
           
 Expression ArrayReference.position
           
 Expression ExplicitConstructorCall.qualification
           
 Expression FieldReference.receiver
           
 Expression ArrayReference.receiver
           
 Expression MessageSend.receiver
           
protected  Expression[] FunctionalExpression.resultExpressions
           
 Expression BinaryExpression.right
           
 Expression[] Javadoc.seeReferences
           
 Expression MemberValuePair.value
           
 Expression ConditionalExpression.valueIfFalse
           
 Expression ConditionalExpression.valueIfTrue
           
 

Methods in org.eclipse.jdt.internal.compiler.ast that return Expression
 Expression[] ExplicitConstructorCall.arguments()
           
 Expression[] AllocationExpression.arguments()
           
 Expression[] Invocation.arguments()
           
 Expression[] MessageSend.arguments()
           
 Expression[] ReferenceExpression.createPseudoExpressions(TypeBinding[] p)
           
 Expression QualifiedAllocationExpression.enclosingInstance()
           
 Expression AllocationExpression.enclosingInstance()
           
 Expression CastExpression.innermostCastedExpression()
           
 Expression[] LambdaExpression.resultExpressions()
           
 Expression Expression.toTypeReference()
           
 

Methods in org.eclipse.jdt.internal.compiler.ast with parameters of type Expression
protected  void Statement.analyseArguments(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo, MethodBinding methodBinding, Expression[] arguments)
          Analysing arguments of MessageSend, ExplicitConstructorCall, AllocationExpression.
protected  void Statement.checkAgainstNullTypeAnnotation(BlockScope scope, TypeBinding requiredType, Expression expression, FlowContext flowContext, FlowInfo flowInfo)
           
static int NullAnnotationMatching.checkAssignment(BlockScope currentScope, FlowContext flowContext, VariableBinding var, int nullStatus, Expression expression, TypeBinding providedType)
          Check null-ness of 'var' against a possible null annotation
 boolean Expression.checkCastTypesCompatibility(Scope scope, TypeBinding castType, TypeBinding expressionType, Expression expression)
          Returns false if cast is not legal.
static boolean ASTNode.checkInvocationArguments(BlockScope scope, Expression receiver, TypeBinding receiverType, MethodBinding method, Expression[] arguments, TypeBinding[] argumentTypes, boolean argsContainCast, InvocationSite invocationSite)
           
static boolean ASTNode.checkInvocationArguments(BlockScope scope, Expression receiver, TypeBinding receiverType, MethodBinding method, Expression[] arguments, TypeBinding[] argumentTypes, boolean argsContainCast, InvocationSite invocationSite)
           
static void CastExpression.checkNeedForArgumentCast(BlockScope scope, int operator, int operatorSignature, Expression expression, int expressionTypeId)
          Only complain for identity cast, since other type of casts may be useful: e.g.
static void CastExpression.checkNeedForArgumentCasts(BlockScope scope, Expression receiver, TypeBinding receiverType, MethodBinding binding, Expression[] arguments, TypeBinding[] argumentTypes, InvocationSite invocationSite)
          Cast expressions will considered as useful if removing them all would actually bind to a different method (no fine grain analysis on per casted argument basis, simply separate widening cast from narrowing ones)
static void CastExpression.checkNeedForArgumentCasts(BlockScope scope, Expression receiver, TypeBinding receiverType, MethodBinding binding, Expression[] arguments, TypeBinding[] argumentTypes, InvocationSite invocationSite)
          Cast expressions will considered as useful if removing them all would actually bind to a different method (no fine grain analysis on per casted argument basis, simply separate widening cast from narrowing ones)
static void CastExpression.checkNeedForArgumentCasts(BlockScope scope, int operator, int operatorSignature, Expression left, int leftTypeId, boolean leftIsCast, Expression right, int rightTypeId, boolean rightIsCast)
          Check binary operator casted arguments
static void CastExpression.checkNeedForEnclosingInstanceCast(BlockScope scope, Expression enclosingInstance, TypeBinding enclosingInstanceType, TypeBinding memberType)
          Casting an enclosing instance will considered as useful if removing it would actually bind to a different type
static void FakedTrackingVariable.cleanUpAfterAssignment(BlockScope currentScope, int lhsBits, Expression expression)
           
 void Statement.generateArguments(MethodBinding binding, Expression[] arguments, BlockScope currentScope, CodeStream codeStream)
          Generate invocation arguments, considering varargs methods
abstract  void Reference.generateCompoundAssignment(BlockScope currentScope, CodeStream codeStream, Expression expression, int operator, int assignmentImplicitConversion, boolean valueRequired)
           
 void FieldReference.generateCompoundAssignment(BlockScope currentScope, CodeStream codeStream, Expression expression, int operator, int assignmentImplicitConversion, boolean valueRequired)
           
 void SingleNameReference.generateCompoundAssignment(BlockScope currentScope, CodeStream codeStream, Expression expression, int operator, int assignmentImplicitConversion, boolean valueRequired)
           
 void QualifiedNameReference.generateCompoundAssignment(BlockScope currentScope, CodeStream codeStream, Expression expression, int operator, int assignmentImplicitConversion, boolean valueRequired)
           
 void ArrayReference.generateCompoundAssignment(BlockScope currentScope, CodeStream codeStream, Expression expression, int operator, int assignmentImplicitConversion, boolean valueRequired)
           
 void ThisReference.generateCompoundAssignment(BlockScope currentScope, CodeStream codeStream, Expression expression, int operator, int assignmentImplicitConversion, boolean valueRequired)
           
 void SingleNameReference.generateCompoundAssignment(BlockScope currentScope, CodeStream codeStream, MethodBinding writeAccessor, Expression expression, int operator, int assignmentImplicitConversion, boolean valueRequired)
           
static FakedTrackingVariable FakedTrackingVariable.getCloseTrackingVariable(Expression expression, FlowInfo flowInfo, FlowContext flowContext)
          If expression resolves to a value of type AutoCloseable answer the variable that tracks closing of that local.
static Binding Expression.getDirectBinding(Expression someExpression)
           
static int[] Annotation.getLocations(Expression reference, Annotation annotation)
          Return the location for the corresponding annotation inside the type reference, null if none.
static void FakedTrackingVariable.handleResourceAssignment(BlockScope scope, FlowInfo upstreamInfo, FlowInfo flowInfo, FlowContext flowContext, ASTNode location, Expression rhs, LocalVariableBinding local)
          Given the rhs of an assignment or local declaration has a (Auto)Closeable type (or null), setup for leak analysis now: Create or re-use a tracking variable, and wire and initialize everything.
 void ReferenceExpression.initialize(CompilationResult result, Expression expression, TypeReference[] optionalTypeArguments, char[] identifierOrNew, int sourceEndPosition)
           
 boolean Statement.isBoxingCompatible(TypeBinding expressionType, TypeBinding targetType, Expression expression, Scope scope)
           
protected static boolean Statement.isKnowDeadCodePattern(Expression expression)
          Answers true if the if is identified as a known coding pattern which should be tolerated by dead code analysis.
static FlowInfo FakedTrackingVariable.markPassedToOutside(BlockScope scope, Expression expression, FlowInfo flowInfo, FlowContext flowContext, boolean owned)
          Mark that this resource is passed to some outside code (as argument to a method/ctor call or as a return value from the current method), and thus should be considered as potentially closed.
static void FakedTrackingVariable.preConnectTrackerAcrossAssignment(ASTNode location, LocalVariableBinding local, Expression rhs, FlowInfo flowInfo)
          Before analyzing an assignment of this shape: singleName = new Allocation() connect any tracking variable of the LHS with the allocation on the RHS.
 void LambdaExpression.returnsExpression(Expression expression, TypeBinding resultType)
           
 

Constructors in org.eclipse.jdt.internal.compiler.ast with parameters of type Expression
AND_AND_Expression(Expression left, Expression right, int operator)
           
ArrayReference(Expression rec, Expression pos)
           
AssertStatement(Expression exceptionArgument, Expression assertExpression, int startPosition)
           
AssertStatement(Expression assertExpression, int startPosition)
           
Assignment(Expression lhs, Expression expression, int sourceEnd)
           
BinaryExpression(Expression left, Expression right, int operator)
           
CaseStatement(Expression constantExpression, int sourceEnd, int sourceStart)
           
CastExpression(Expression expression, TypeReference type)
           
CombinedBinaryExpression(Expression left, Expression right, int operator, int arity)
          Make a new CombinedBinaryExpression.
CompoundAssignment(Expression lhs, Expression expression, int operator, int sourceEnd)
           
ConditionalExpression(Expression condition, Expression valueIfTrue, Expression valueIfFalse)
           
DoStatement(Expression condition, Statement action, int sourceStart, int sourceEnd)
           
EqualExpression(Expression left, Expression right, int operator)
           
ForStatement(Statement[] initializations, Expression condition, Statement[] increments, Statement action, boolean neededScope, int s, int e)
           
IfStatement(Expression condition, Statement thenStatement, int sourceStart, int sourceEnd)
           
IfStatement(Expression condition, Statement thenStatement, Statement elseStatement, int sourceStart, int sourceEnd)
           
InstanceOfExpression(Expression expression, TypeReference type)
           
MemberValuePair(char[] token, int sourceStart, int sourceEnd, Expression value)
           
OR_OR_Expression(Expression left, Expression right, int operator)
           
PostfixExpression(Expression lhs, Expression expression, int operator, int pos)
           
PrefixExpression(Expression lhs, Expression expression, int operator, int pos)
          PrefixExpression constructor comment.
ReturnStatement(Expression expression, int sourceStart, int sourceEnd)
           
ReturnStatement(Expression expression, int sourceStart, int sourceEnd, boolean implicitReturn)
           
SynchronizedStatement(Expression expression, Block statement, int s, int e)
           
ThrowStatement(Expression exception, int sourceStart, int sourceEnd)
           
UnaryExpression(Expression expression, int operator)
           
WhileStatement(Expression condition, Statement action, int s, int e)
           
 

Uses of Expression in org.eclipse.jdt.internal.compiler.codegen
 

Fields in org.eclipse.jdt.internal.compiler.codegen declared as Expression
 Expression AnnotationContext.typeReference
           
 

Methods in org.eclipse.jdt.internal.compiler.codegen with parameters of type Expression
 void CodeStream.generateReturnBytecode(Expression expression)
           
 void CodeStream.generateStringConcatenationAppend(BlockScope blockScope, Expression oper1, Expression oper2)
          The equivalent code performs a string conversion:
 void CodeStream.generateSyntheticEnclosingInstanceValues(BlockScope currentScope, ReferenceBinding targetType, Expression enclosingInstance, ASTNode invocationSite)
          Code responsible to generate the suitable code to supply values for the synthetic enclosing instance arguments of a constructor invocation of a nested type.
 

Constructors in org.eclipse.jdt.internal.compiler.codegen with parameters of type Expression
AnnotationContext(Annotation annotation, Expression typeReference, int targetType, int visibility)
           
 

Uses of Expression in org.eclipse.jdt.internal.compiler.flow
 

Methods in org.eclipse.jdt.internal.compiler.flow with parameters of type Expression
protected  void FlowContext.checkUnboxing(Scope scope, Expression expression, FlowInfo flowInfo)
          During deferred checking re-visit a previously recording unboxing situation.
protected  boolean FinallyFlowContext.internalRecordNullityMismatch(Expression expression, TypeBinding providedType, int nullStatus, TypeBinding expectedType, int checkType)
           
protected  boolean FlowContext.internalRecordNullityMismatch(Expression expression, TypeBinding providedType, int nullStatus, TypeBinding expectedType, int checkType)
           
protected  boolean LoopingFlowContext.internalRecordNullityMismatch(Expression expression, TypeBinding providedType, int nullStatus, TypeBinding expectedType, int checkType)
           
 void FlowContext.recordNullityMismatch(BlockScope currentScope, Expression expression, TypeBinding providedType, TypeBinding expectedType, int nullStatus)
          Record that a nullity mismatch was detected against an annotated type reference.
 void FinallyFlowContext.recordUnboxing(Scope scope, Expression expression, int nullStatus, FlowInfo flowInfo)
           
 void FlowContext.recordUnboxing(Scope scope, Expression expression, int nullStatus, FlowInfo flowInfo)
          Either AST analysis or checking of a child flow context has encountered an unboxing situation.
 void LoopingFlowContext.recordUnboxing(Scope scope, Expression expression, int nullStatus, FlowInfo flowInfo)
           
 

Uses of Expression in org.eclipse.jdt.internal.compiler.lookup
 

Methods in org.eclipse.jdt.internal.compiler.lookup with parameters of type Expression
 org.eclipse.jdt.internal.compiler.lookup.InferenceContext18.SuspendedInferenceRecord InferenceContext18.enterPolyInvocation(InvocationSite invocation, Expression[] innerArguments)
           
static java.lang.Object ElementValuePair.getValue(Expression expression)
           
 

Constructors in org.eclipse.jdt.internal.compiler.lookup with parameters of type Expression
ElementValuePair(char[] name, Expression expression, MethodBinding binding)
           
InferenceContext18(Scope scope, Expression[] arguments, InvocationSite site)
          Construct an inference context for an invocation (method/constructor).
PolyTypeBinding(Expression expression)
           
 

Uses of Expression in org.eclipse.jdt.internal.compiler.parser
 

Fields in org.eclipse.jdt.internal.compiler.parser declared as Expression
protected  Expression[] Parser.expressionStack
           
 

Methods in org.eclipse.jdt.internal.compiler.parser that return Expression
protected  Expression Parser.getTypeReference(Expression exp)
           
 Expression Parser.parseExpression(char[] source, int offset, int length, CompilationUnitDeclaration unit, boolean recordLineSeparators)
           
 Expression Parser.parseLambdaExpression(char[] source, int offset, int length, CompilationUnitDeclaration unit, boolean recordLineSeparators)
           
 Expression Parser.parseMemberValue(char[] source, int offset, int length, CompilationUnitDeclaration unit)
           
 

Methods in org.eclipse.jdt.internal.compiler.parser with parameters of type Expression
protected  Expression Parser.getTypeReference(Expression exp)
           
protected  void Parser.pushOnExpressionStack(Expression expr)
           
protected  void Parser.updateSourcePosition(Expression exp)
           
 

Uses of Expression in org.eclipse.jdt.internal.compiler.problem
 

Methods in org.eclipse.jdt.internal.compiler.problem with parameters of type Expression
 void ProblemReporter.annotationValueMustBeAnnotation(TypeBinding annotationType, char[] name, Expression value, TypeBinding expectedType)
           
 void ProblemReporter.annotationValueMustBeArrayInitializer(TypeBinding annotationType, char[] name, Expression value)
           
 void ProblemReporter.annotationValueMustBeClassLiteral(TypeBinding annotationType, char[] name, Expression value)
           
 void ProblemReporter.annotationValueMustBeConstant(TypeBinding annotationType, char[] name, Expression value, boolean isEnum)
           
 void ProblemReporter.autoboxing(Expression expression, TypeBinding originalType, TypeBinding convertedType)
           
 void ProblemReporter.cannotAllocateVoidArray(Expression expression)
           
 void ProblemReporter.cannotInstantiate(Expression typeRef, TypeBinding type)
           
 void ProblemReporter.caseExpressionMustBeConstant(Expression expression)
           
 void ProblemReporter.comparingIdenticalExpressions(Expression comparison)
           
 void ProblemReporter.dereferencingNullableExpression(Expression expression)
           
 void ProblemReporter.enumConstantsCannotBeSurroundedByParenthesis(Expression expression)
           
 void ProblemReporter.errorNoMethodFor(Expression expression, TypeBinding recType, char[] selector, TypeBinding[] params)
           
 boolean ProblemReporter.expressionNonNullComparison(Expression expr, boolean checkForNull)
           
 void ProblemReporter.expressionShouldBeAVariable(Expression expression)
           
 void ProblemReporter.incorrectSwitchType(Expression expression, TypeBinding testType)
           
 void ProblemReporter.invalidEnclosingType(Expression expression, TypeBinding type, ReferenceBinding enclosingType)
           
 void ProblemReporter.invalidExpressionAsStatement(Expression expression)
           
 void ProblemReporter.invalidNullToSynchronize(Expression expression)
           
 void ProblemReporter.invalidTypeForCollection(Expression expression)
           
 void ProblemReporter.invalidTypeForCollectionTarget14(Expression expression)
           
 void ProblemReporter.invalidTypeToSynchronize(Expression expression, TypeBinding type)
           
 void ProblemReporter.invalidUnaryExpression(Expression expression)
           
 void ProblemReporter.invalidUsageOfForeachStatements(LocalDeclaration elementVariable, Expression collection)
           
 void ProblemReporter.missingSemiColon(Expression expression)
           
 void ProblemReporter.notCompatibleTypesErrorInForeach(Expression expression, TypeBinding leftType, TypeBinding rightType)
           
 void ProblemReporter.nullityMismatch(Expression expression, TypeBinding providedType, TypeBinding requiredType, int nullStatus, char[][] annotationName)
           
 void ProblemReporter.nullityMismatchingTypeAnnotation(Expression expression, TypeBinding providedType, TypeBinding requiredType, NullAnnotationMatching status)
           
 void ProblemReporter.nullityMismatchIsNull(Expression expression, TypeBinding requiredType)
           
 void ProblemReporter.nullityMismatchIsUnknown(Expression expression, TypeBinding providedType, TypeBinding requiredType, char[][] annotationName)
           
 void ProblemReporter.nullityMismatchPotentiallyNull(Expression expression, TypeBinding requiredType, char[][] annotationName)
           
 void ProblemReporter.nullityMismatchSpecdNullable(Expression expression, TypeBinding requiredType, char[][] annotationName)
           
 void ProblemReporter.signalNoImplicitStringConversionForCharArrayExpression(Expression expression)
           
 void ProblemReporter.unhandledWarningToken(Expression token)
           
 void ProblemReporter.unnecessaryEnclosingInstanceSpecification(Expression expression, ReferenceBinding targetType)
           
 void ProblemReporter.unsafeElementTypeConversion(Expression expression, TypeBinding expressionType, TypeBinding expectedType)
           
 void ProblemReporter.unsafeTypeConversion(Expression expression, TypeBinding expressionType, TypeBinding expectedType)
           
 void ProblemReporter.unusedWarningToken(Expression token)
           
 

Uses of Expression in org.eclipse.jdt.internal.core.util
 

Methods in org.eclipse.jdt.internal.core.util that return Expression
 Expression CodeSnippetParsingUtil.parseExpression(char[] source, int offset, int length, java.util.Map settings, boolean recordParsingInformation)
           
 Expression CodeSnippetParsingUtil.parseExpression(char[] source, java.util.Map settings, boolean recordParsingInformation)