Class ASTNode
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode
- All Implemented Interfaces:
TypeConstants,TypeIds
- Direct Known Subclasses:
AbstractMethodDeclaration,AssistNodeParentAnnotationArrayInitializer,CompilationUnitDeclaration,ImportReference,Javadoc,MemberValuePair,ModuleDeclaration,ModuleReference,ModuleStatement,PointcutDesignator,PseudoToken,PseudoTokens,Statement
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeConstants
TypeConstants.BoundCheckStatus, TypeConstants.CloseMethodRecord, TypeConstants.DangerousMethod -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final intstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final intstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final intstatic final longstatic final longstatic final longstatic final longstatic final longstatic final intstatic final intstatic final intintstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Argument[]static final RecordComponent[]static final TypePattern[]static final LocalVariableBinding[]static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intintintstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeConstants
ANNOTATION, ANNOTATION_PREFIX, ANNOTATION_SUFFIX, ANONYM_PREFIX, ANONYM_SUFFIX, ANONYMOUS_METHOD, APACHE, APACHE_DBUTILS, APACHE_IOUTILS, API, ASSERT_CLASS, ASSERT_FALSE, ASSERT_NOTNULL, ASSERT_NULL, ASSERT_TRUE, ASSERTIONS_CLASS, AUTOMATIC_MODULE_NAME, AUTOWIRED, BASE, BEANS, BOOLEAN, BYTE, CAPTURE18, CHANNELS, CHAR, CharArray_JAVA_IO_OBJECTINPUTSTREAM, CharArray_JAVA_IO_OBJECTOUTPUTSTREAM, CharArray_JAVA_IO_OBJECTSTREAMFIELD, CharArray_JAVA_LANG_ANNOTATION_ANNOTATION, CharArray_JAVA_LANG_ENUM, CharArray_JAVA_LANG_OBJECT, CharArray_JAVA_LANG_RECORD, CharArray_JAVA_LANG_RECORD_SLASH, CHECK_ARGUMENT, CHECK_NOT_NULL, CHECK_STATE, CLINIT, CLONE, CLOSE, CLOSE_QUIETLY, closeMethods, COM, COM_GOOGLE_COMMON_BASE_PRECONDITIONS, COM_GOOGLE_INJECT_INJECT, COMMONS, COMPILER, CONSTRAINT_EQUAL, CONSTRAINT_EXTENDS, CONSTRAINT_SUPER, CONTAINS, CONTAINS_ALL, CONTAINS_KEY, CONTAINS_VALUE, CORE, DEFAULT_LOCATION__ARRAY_CONTENTS, DEFAULT_LOCATION__FIELD, DEFAULT_LOCATION__PARAMETER, DEFAULT_LOCATION__RETURN_TYPE, DEFAULT_LOCATION__TYPE_ARGUMENT, DEFAULT_LOCATION__TYPE_BOUND, DEFAULT_LOCATION__TYPE_PARAMETER, DESERIALIZE_LAMBDA, DOM, DOUBLE, ECLIPSE, EQUALS, FACTORY, FILTER, FLOAT, FLUENT_RESOURCE_CLASSES, FOR_REMOVAL, FRAMEWORK, GET, GET_STATIC_FINAL, GET_STATIC_FINAL__SIGNATURE, GETCLASS, GOOGLE, GUAVA_CLOSEABLES, HASHCODE, IMPLEMENTS, INDEX_OF, INIT, INJECT_PACKAGE, INJECT_TYPE, INT, INTERNAL, INVOKE, IO, IS_INSTANCE, IS_NOTNULL, IS_NULL, IS_TRUE, ITYPEBINDING, JAKARTA, JAKARTA_ANNOTATION_INJECT_INJECT, JAVA, JAVA_BASE, JAVA_DOT_BASE, JAVA_IO, JAVA_IO_CLOSEABLE, JAVA_IO_EXTERNALIZABLE, JAVA_IO_IO, JAVA_IO_IOEXCEPTION, JAVA_IO_OBJECTINPUTSTREAM, JAVA_IO_OBJECTOUTPUTSTREAM, JAVA_IO_OBJECTSTREAMEXCEPTION, JAVA_IO_PRINTSTREAM, JAVA_IO_RESOURCE_FREE_CLOSEABLES, JAVA_IO_SERIALIZABLE, JAVA_IO_WRAPPER_CLOSEABLES, JAVA_LANG, JAVA_LANG_ANNOTATION, JAVA_LANG_ANNOTATION_ANNOTATION, JAVA_LANG_ANNOTATION_DOCUMENTED, JAVA_LANG_ANNOTATION_ELEMENTTYPE, JAVA_LANG_ANNOTATION_INHERITED, JAVA_LANG_ANNOTATION_REPEATABLE, JAVA_LANG_ANNOTATION_RETENTION, JAVA_LANG_ANNOTATION_RETENTIONPOLICY, JAVA_LANG_ANNOTATION_TARGET, JAVA_LANG_ASSERTIONERROR, JAVA_LANG_AUTOCLOSEABLE, JAVA_LANG_BOOLEAN, JAVA_LANG_BYTE, JAVA_LANG_CHARACTER, JAVA_LANG_CLASS, JAVA_LANG_CLASSNOTFOUNDEXCEPTION, JAVA_LANG_CLONEABLE, JAVA_LANG_CONSTANT_CLASSDESC, JAVA_LANG_DEPRECATED, JAVA_LANG_DOUBLE, JAVA_LANG_ENUM, JAVA_LANG_ENUM_ENUMDESC, JAVA_LANG_ERROR, JAVA_LANG_EXCEPTION, JAVA_LANG_FLOAT, JAVA_LANG_FUNCTIONAL_INTERFACE, JAVA_LANG_ILLEGALARGUMENTEXCEPTION, JAVA_LANG_INCOMPATIBLECLASSCHANGEERROR, JAVA_LANG_INTEGER, JAVA_LANG_INVOKE_CONSTANTBOOTSTRAP, JAVA_LANG_INVOKE_LAMBDAMETAFACTORY, JAVA_LANG_INVOKE_METHODHANDLE, JAVA_LANG_INVOKE_METHODHANDLE_$_POLYMORPHICSIGNATURE, JAVA_LANG_INVOKE_METHODHANDLE_POLYMORPHICSIGNATURE, JAVA_LANG_INVOKE_METHODHANDLES, JAVA_LANG_INVOKE_SERIALIZEDLAMBDA, JAVA_LANG_INVOKE_STRING_CONCAT_FACTORY, JAVA_LANG_INVOKE_VARHANDLE, JAVA_LANG_ITERABLE, JAVA_LANG_LONG, JAVA_LANG_NOCLASSDEFFOUNDERROR, JAVA_LANG_NOSUCHFIELDERROR, JAVA_LANG_OBJECT, JAVA_LANG_OVERRIDE, JAVA_LANG_RECORD, JAVA_LANG_REFLECT_CONSTRUCTOR, JAVA_LANG_REFLECT_FIELD, JAVA_LANG_REFLECT_METHOD, JAVA_LANG_RUNTIME_OBJECTMETHODS, JAVA_LANG_RUNTIME_SWITCHBOOTSTRAPS, JAVA_LANG_RUNTIMEEXCEPTION, JAVA_LANG_SAFEVARARGS, JAVA_LANG_SHORT, JAVA_LANG_STRING, JAVA_LANG_STRINGBUFFER, JAVA_LANG_STRINGBUILDER, JAVA_LANG_SUPPRESSWARNINGS, JAVA_LANG_SYSTEM, JAVA_LANG_THROWABLE, JAVA_LANG_VOID, JAVA_NIO_FILE_FILES, JAVA_UTIL_ARRAYS, JAVA_UTIL_COLLECTION, JAVA_UTIL_ITERATOR, JAVA_UTIL_LIST, JAVA_UTIL_MAP, JAVA_UTIL_OBJECTS, JAVA_UTIL_STREAM, JAVA_UTIL_STREAM__STREAM, JAVA_UTIL_ZIP_WRAPPER_CLOSEABLES, JAVAC, JAVAX, JAVAX_ANNOTATION_INJECT_INJECT, JAVAX_RMI_CORBA_STUB, JDK, JDK_INTERNAL_JAVAC_PREVIEW_FEATURE, JDK_INTERNAL_PREVIEW_FEATURE, JDK_INTERNAL_VALUEBASED, JDT, JUNIT, JUNIT_FRAMEWORK_ASSERT, JUPITER, KEYWORD_EXTENDS, LAMBDA_TYPE, LANG, LANG3, LAST_INDEX_OF, LENGTH, LONG, LOOKUP, MAIN, META_INF_MANIFEST_MF, METHOD_SOURCE, MODULE_INFO_CLASS_NAME, MODULE_INFO_CLASS_NAME_STRING, MODULE_INFO_FILE_NAME, MODULE_INFO_FILE_NAME_STRING, MODULE_INFO_NAME, MODULE_INFO_NAME_STRING, NEXT, NIO, NON_NULL, NON_SEALED, NOT_NULL, NULL, OBJECT, ONE_UTIL_STREAMEX, OPTIONAL, ORG, ORG_APACHE_COMMONS_LANG_VALIDATE, ORG_APACHE_COMMONS_LANG3_VALIDATE, ORG_ECLIPSE_CORE_RUNTIME_ASSERT, ORG_ECLIPSE_JDT_CORE_DOM_ITYPEBINDING, ORG_ECLIPSE_JDT_INTERNAL_COMPILER_LOOKUP_TYPEBINDING, ORG_JUNIT_ASSERT, ORG_JUNIT_JUPITER_API_ASSERTIONS, ORG_JUNIT_METHOD_SOURCE, ORG_SPRING_AUTOWIRED, OTHER_WRAPPER_CLOSEABLES, PACKAGE_INFO_NAME, PARAMS, PERMITS, PRIMITIVE_CLASS, PRIMITIVE_CLASS__SIGNATURE, PROVIDER, READOBJECT, READRESOLVE, RECORD_CLASS, RECORD_RESTRICTED_IDENTIFIER, REFLECT, REMOVE, REMOVE_ALL, REQUIRE_NON_NULL, REQUIRED, RESOURCE_FREE_CLOSEABLE_J_U_STREAMS, RESOURCE_FREE_CLOSEABLE_STREAMEX, RETAIN_ALL, RUNTIME, SEALED, SERIALPERSISTENTFIELDS, SERIALVERSIONUID, SHORT, SINCE, SPRING, STRING_CONCAT_MARKER_1, SYNTHETIC_ACCESS_METHOD_PREFIX, SYNTHETIC_ASSERT_DISABLED, SYNTHETIC_CLASS, SYNTHETIC_ENCLOSING_INSTANCE_PREFIX, SYNTHETIC_ENUM_CONSTANT_INITIALIZATION_METHOD_PREFIX, SYNTHETIC_ENUM_VALUES, SYNTHETIC_OUTER_LOCAL_PREFIX, SYNTHETIC_STATIC_FACTORY, SYNTHETIC_SWITCH_ENUM_TABLE, TOSTRING, TYPE, TYPE_PARAMETER_TARGET, TYPE_USE_TARGET, TYPEBINDING, UPPER_ANNOTATION_TYPE, UPPER_CLASS, UPPER_CONSTRUCTOR, UPPER_FIELD, UPPER_LOCAL_VARIABLE, UPPER_METHOD, UPPER_MODULE, UPPER_PACKAGE, UPPER_PARAMETER, UPPER_RECORD_COMPONENT, UPPER_RUNTIME, UPPER_SOURCE, UTIL, VALIDATE_CLASS, VALUE, VALUEOF, VALUES, VAR, VOID, WILDCARD_CAPTURE, WILDCARD_CAPTURE_NAME_PREFIX, WILDCARD_CAPTURE_NAME_SUFFIX, WILDCARD_CAPTURE_SIGNABLE_NAME_SUFFIX, WILDCARD_EXTENDS, WILDCARD_MINUS, WILDCARD_NAME, WILDCARD_PLUS, WILDCARD_STAR, WILDCARD_SUPER, WRITEOBJECT, WRITEREPLACE, YIELD, ZIPFields inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeIds
BitAnyNullAnnotation, BitAnyOwningAnnotation, BitAutoCloseable, BitCloseable, BitCollection, BitList, BitMap, BitNonNullAnnotation, BitNonNullByDefaultAnnotation, BitNotOwningAnnotation, BitNullableAnnotation, BitOwningAnnotation, BitResourceFreeCloseable, BitUninitialized, BitUninternedType, BitWrapperCloseable, Boolean2Boolean, Boolean2Int, Boolean2String, BOXING, Byte2Byte, Byte2Char, Byte2Double, Byte2Float, Byte2Int, Byte2Long, Byte2Short, Byte2String, Char2Byte, Char2Char, Char2Double, Char2Float, Char2Int, Char2Long, Char2Short, Char2String, COMPILE_TYPE_MASK, Double2Byte, Double2Char, Double2Double, Double2Float, Double2Int, Double2Long, Double2Short, Double2String, Float2Byte, Float2Char, Float2Double, Float2Float, Float2Int, Float2Long, Float2Short, Float2String, IMPLICIT_CONVERSION_MASK, InheritableBits, Int2Byte, Int2Char, Int2Double, Int2Float, Int2Int, Int2Long, Int2Short, Int2String, Long2Byte, Long2Char, Long2Double, Long2Float, Long2Int, Long2Long, Long2Short, Long2String, NoId, Null2Null, Null2String, Object2boolean, Object2byte, Object2char, Object2double, Object2float, Object2int, Object2long, Object2Object, Object2short, Object2String, Short2Byte, Short2Char, Short2Double, Short2Float, Short2Int, Short2Long, Short2Short, Short2String, String2String, T_boolean, T_byte, T_char, T_ComGoogleCommonBasePreconditions, T_ComGoogleInjectInject, T_double, T_float, T_int, T_JavaIoException, T_JavaIoExternalizable, T_JavaIoObjectStreamException, T_JavaIoPrintStream, T_JavaIoSerializable, T_JavaLangAnnotationAnnotation, T_JavaLangAnnotationDocumented, T_JavaLangAnnotationElementType, T_JavaLangAnnotationInherited, T_JavaLangAnnotationRepeatable, T_JavaLangAnnotationRetention, T_JavaLangAnnotationRetentionPolicy, T_JavaLangAnnotationTarget, T_JavaLangAssertionError, T_JavaLangAutoCloseable, T_JavaLangBoolean, T_JavaLangByte, T_JavaLangCharacter, T_JavaLangClass, T_JavaLangClassNotFoundException, T_JavaLangCloneable, T_JavaLangDeprecated, T_JavaLangDouble, T_JavaLangEnum, T_JavaLangError, T_JavaLangException, T_JavaLangFloat, T_JavaLangFunctionalInterface, T_JavaLangIllegalArgumentException, T_JavaLangInteger, T_JavaLangInvokeMethodHandlePolymorphicSignature, T_JavaLangIterable, T_JavaLangLong, T_JavaLangNoClassDefFoundError, T_JavaLangObject, T_JavaLangOverride, T_JavaLangRecord, T_JavaLangReflectConstructor, T_JavaLangReflectField, T_JavaLangReflectMethod, T_JavaLangRuntimeException, T_JavaLangSafeVarargs, T_JavaLangShort, T_JavaLangString, T_JavaLangStringBuffer, T_JavaLangStringBuilder, T_JavaLangSuppressWarnings, T_JavaLangSystem, T_JavaLangThrowable, T_JavaLangVoid, T_JavaUtilCollection, T_JavaUtilIterator, T_JavaUtilList, T_JavaUtilMap, T_JavaUtilObjects, T_JavaxInjectInject, T_JunitFrameworkAssert, T_LastWellKnownTypeId, T_long, T_null, T_OrgApacheCommonsLang3Validate, T_OrgApacheCommonsLangValidate, T_OrgEclipseCoreRuntimeAssert, T_OrgJunitAssert, T_OrgJunitJupiterApiAssertions, T_OrgJunitJupiterParamsProviderMethodSource, T_OrgSpringframeworkBeansFactoryAnnotationAutowired, T_short, T_undefined, T_void, UNBOXING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptPotentiallyCompatibleMethods(MethodBinding[] methods) booleanstatic booleancheckInvocationArguments(BlockScope scope, Expression receiver, TypeBinding receiverType, MethodBinding method, Expression[] arguments, TypeBinding[] argumentTypes, boolean argsContainCast, InvocationSite invocationSite) static Annotation[]copyRecordComponentAnnotations(Scope scope, Binding recipient, Annotation[] annotations) static voidcopySE8AnnotationsToType(BlockScope scope, Binding recipient, Annotation[] annotations, boolean annotatingEnumerator) static Annotation[]getRelevantAnnotations(Annotation[] annotations, long rcMask, List<AnnotationBinding> relevantAnnotations) static voidhandleNonNullByDefault(BlockScope scope, Annotation[] sourceAnnotations, LocalDeclaration localDeclaration) "early" handling of NonNullByDefault because for local variables annotations are resolved after their type because of bug 96991.final booleanisFieldUseDeprecated(FieldBinding field, Scope scope, int filteredBits) booleanfinal booleanisMethodUseDeprecated(MethodBinding method, Scope scope, boolean isExplicitUse, InvocationSite invocation) booleanbooleanisSuper()booleanisThis()booleanisType()Returns whether this node represents a binding of typeBinding.TYPEfinal booleanisTypeUseDeprecated(TypeBinding type, Scope scope) booleanabstract StringBuilderprint(int indent, StringBuilder output) static StringBuilderprintAnnotations(Annotation[] annotations, StringBuilder output) static StringBuilderprintIndent(int indent, StringBuilder output) static StringBuilderprintModifiers(int modifiers, StringBuilder output) booleanstatic TypeBindingresolveAnnotations(BlockScope scope, Annotation[][] sourceAnnotations, TypeBinding type) Resolve JSR308 annotations on a type reference, array creation expression or a wildcard.static voidresolveAnnotations(BlockScope scope, Annotation[] sourceAnnotations, Binding recipient) static AnnotationBinding[]resolveAnnotations(BlockScope scope, Annotation[] sourceAnnotations, Binding recipient, boolean copySE8AnnotationsToType) Resolve annotations, and check duplicates, answers combined tagBits for recognized standard annotations.static voidresolveDeprecatedAnnotations(BlockScope scope, Annotation[] annotations, Binding recipient) Figures if @Deprecated annotation is specified, do not resolve entire annotations.static MethodBindingresolvePolyExpressionArguments(Invocation invocation, MethodBinding method, TypeBinding[] argumentTypes, BlockScope scope) After method lookup has produced 'methodBinding' but when poly expressions have been seen as arguments, inspect the arguments to trigger another round of resolving with improved target types from the methods parameters.static voidresolveStatements(Statement[] statements, BlockScope scope) intinttoString()voidtraverse(ASTVisitor visitor, BlockScope scope)
-
Field Details
-
sourceStart
public int sourceStart -
sourceEnd
public int sourceEnd -
Bit1
public static final int Bit1- See Also:
-
Bit2
public static final int Bit2- See Also:
-
Bit3
public static final int Bit3- See Also:
-
Bit4
public static final int Bit4- See Also:
-
Bit5
public static final int Bit5- See Also:
-
Bit6
public static final int Bit6- See Also:
-
Bit7
public static final int Bit7- See Also:
-
Bit8
public static final int Bit8- See Also:
-
Bit9
public static final int Bit9- See Also:
-
Bit10
public static final int Bit10- See Also:
-
Bit11
public static final int Bit11- See Also:
-
Bit12
public static final int Bit12- See Also:
-
Bit13
public static final int Bit13- See Also:
-
Bit14
public static final int Bit14- See Also:
-
Bit15
public static final int Bit15- See Also:
-
Bit16
public static final int Bit16- See Also:
-
Bit17
public static final int Bit17- See Also:
-
Bit18
public static final int Bit18- See Also:
-
Bit19
public static final int Bit19- See Also:
-
Bit20
public static final int Bit20- See Also:
-
Bit21
public static final int Bit21- See Also:
-
Bit22
public static final int Bit22- See Also:
-
Bit23
public static final int Bit23- See Also:
-
Bit24
public static final int Bit24- See Also:
-
Bit25
public static final int Bit25- See Also:
-
Bit26
public static final int Bit26- See Also:
-
Bit27
public static final int Bit27- See Also:
-
Bit28
public static final int Bit28- See Also:
-
Bit29
public static final int Bit29- See Also:
-
Bit30
public static final int Bit30- See Also:
-
Bit31
public static final int Bit31- See Also:
-
Bit32
public static final int Bit32- See Also:
-
Bit32L
public static final long Bit32L- See Also:
-
Bit33L
public static final long Bit33L- See Also:
-
Bit34L
public static final long Bit34L- See Also:
-
Bit35L
public static final long Bit35L- See Also:
-
Bit36L
public static final long Bit36L- See Also:
-
Bit37L
public static final long Bit37L- See Also:
-
Bit38L
public static final long Bit38L- See Also:
-
Bit39L
public static final long Bit39L- See Also:
-
Bit40L
public static final long Bit40L- See Also:
-
Bit41L
public static final long Bit41L- See Also:
-
Bit42L
public static final long Bit42L- See Also:
-
Bit43L
public static final long Bit43L- See Also:
-
Bit44L
public static final long Bit44L- See Also:
-
Bit45L
public static final long Bit45L- See Also:
-
Bit46L
public static final long Bit46L- See Also:
-
Bit47L
public static final long Bit47L- See Also:
-
Bit48L
public static final long Bit48L- See Also:
-
Bit49L
public static final long Bit49L- See Also:
-
Bit50L
public static final long Bit50L- See Also:
-
Bit51L
public static final long Bit51L- See Also:
-
Bit52L
public static final long Bit52L- See Also:
-
Bit53L
public static final long Bit53L- See Also:
-
Bit54L
public static final long Bit54L- See Also:
-
Bit55L
public static final long Bit55L- See Also:
-
Bit56L
public static final long Bit56L- See Also:
-
Bit57L
public static final long Bit57L- See Also:
-
Bit58L
public static final long Bit58L- See Also:
-
Bit59L
public static final long Bit59L- See Also:
-
Bit60L
public static final long Bit60L- See Also:
-
Bit61L
public static final long Bit61L- See Also:
-
Bit62L
public static final long Bit62L- See Also:
-
Bit63L
public static final long Bit63L- See Also:
-
Bit64L
public static final long Bit64L- See Also:
-
bits
public int bits -
ReturnTypeIDMASK
public static final int ReturnTypeIDMASK- See Also:
-
OperatorSHIFT
public static final int OperatorSHIFT- See Also:
-
OperatorMASK
public static final int OperatorMASK- See Also:
-
IsReturnedValue
public static final int IsReturnedValue- See Also:
-
UnnecessaryCast
public static final int UnnecessaryCast- See Also:
-
DisableUnnecessaryCastCheck
public static final int DisableUnnecessaryCastCheck- See Also:
-
GenerateCheckcast
public static final int GenerateCheckcast- See Also:
-
UnsafeCast
public static final int UnsafeCast- See Also:
-
RestrictiveFlagMASK
public static final int RestrictiveFlagMASK- See Also:
-
IsTypeElided
public static final int IsTypeElided- See Also:
-
IsArgument
public static final int IsArgument- See Also:
-
IsLocalDeclarationReachable
public static final int IsLocalDeclarationReachable- See Also:
-
IsForeachElementVariable
public static final int IsForeachElementVariable- See Also:
-
ShadowsOuterLocal
public static final int ShadowsOuterLocal- See Also:
-
IsAdditionalDeclarator
public static final int IsAdditionalDeclarator- See Also:
-
FirstAssignmentToLocal
public static final int FirstAssignmentToLocal- See Also:
-
NeedReceiverGenericCast
public static final int NeedReceiverGenericCast- See Also:
-
IsImplicitThis
public static final int IsImplicitThis- See Also:
-
DepthSHIFT
public static final int DepthSHIFT- See Also:
-
DepthMASK
public static final int DepthMASK- See Also:
-
IsCapturedOuterLocal
public static final int IsCapturedOuterLocal- See Also:
-
IsUsedInPatternGuard
public static final int IsUsedInPatternGuard- See Also:
-
IsSecretYieldValueUsage
public static final int IsSecretYieldValueUsage- See Also:
-
IsReachable
public static final int IsReachable- See Also:
-
LabelUsed
public static final int LabelUsed- See Also:
-
DocumentedFallthrough
public static final int DocumentedFallthrough- See Also:
-
DocumentedCasesOmitted
public static final int DocumentedCasesOmitted- See Also:
-
IsFinallyBlockEscaping
public static final int IsFinallyBlockEscaping- See Also:
-
IsTryBlockExiting
public static final int IsTryBlockExiting- See Also:
-
ContainsAssertion
public static final int ContainsAssertion- See Also:
-
IsLocalType
public static final int IsLocalType- See Also:
-
IsAnonymousType
public static final int IsAnonymousType- See Also:
-
IsMemberType
public static final int IsMemberType- See Also:
-
HasAbstractMethods
public static final int HasAbstractMethods- See Also:
-
IsSecondaryType
public static final int IsSecondaryType- See Also:
-
HasBeenGenerated
public static final int HasBeenGenerated- See Also:
-
HasLocalType
public static final int HasLocalType- See Also:
-
HasBeenResolved
public static final int HasBeenResolved- See Also:
-
ParenthesizedSHIFT
public static final int ParenthesizedSHIFT- See Also:
-
ParenthesizedMASK
public static final int ParenthesizedMASK- See Also:
-
IgnoreNoEffectAssignCheck
public static final int IgnoreNoEffectAssignCheck- See Also:
-
IsStrictlyAssigned
public static final int IsStrictlyAssigned- See Also:
-
IsCompoundAssigned
public static final int IsCompoundAssigned- See Also:
-
DiscardEnclosingInstance
public static final int DiscardEnclosingInstance- See Also:
-
Unchecked
public static final int Unchecked- See Also:
-
ResolveJavadoc
public static final int ResolveJavadoc- See Also:
-
IsUsefulEmptyStatement
public static final int IsUsefulEmptyStatement- See Also:
-
BlockShouldEndDead
public static final int BlockShouldEndDead- See Also:
-
UndocumentedEmptyBlock
public static final int UndocumentedEmptyBlock- See Also:
-
OverridingMethodWithSupercall
public static final int OverridingMethodWithSupercall- See Also:
-
CanBeStatic
public static final int CanBeStatic- See Also:
-
ErrorInSignature
public static final int ErrorInSignature- See Also:
-
NeedFreeReturn
public static final int NeedFreeReturn- See Also:
-
IsDefaultConstructor
public static final int IsDefaultConstructor- See Also:
-
IsCanonicalConstructor
public static final int IsCanonicalConstructor- See Also:
-
IsImplicit
public static final int IsImplicit- See Also:
-
HasAllMethodBodies
public static final int HasAllMethodBodies- See Also:
-
IsImplicitUnit
public static final int IsImplicitUnit- See Also:
-
InsideJavadoc
public static final int InsideJavadoc- See Also:
-
SuperAccess
public static final int SuperAccess- See Also:
-
Empty
public static final int Empty- See Also:
-
IsElseIfStatement
public static final int IsElseIfStatement- See Also:
-
ThenExit
public static final int ThenExit- See Also:
-
IsElseStatementUnreachable
public static final int IsElseStatementUnreachable- See Also:
-
IsThenStatementUnreachable
public static final int IsThenStatementUnreachable- See Also:
-
IsVarArgs
public static final int IsVarArgs- See Also:
-
IgnoreRawTypeCheck
public static final int IgnoreRawTypeCheck- See Also:
-
IsAnnotationDefaultValue
public static final int IsAnnotationDefaultValue- See Also:
-
IsNonNull
public static final int IsNonNull- See Also:
-
NeededScope
public static final int NeededScope- See Also:
-
OnDemand
public static final int OnDemand- See Also:
-
Used
public static final int Used- See Also:
-
inModule
public static final int inModule- See Also:
-
DidResolve
public static final int DidResolve- See Also:
-
IsAnyFinallyBlockEscaping
public static final int IsAnyFinallyBlockEscaping- See Also:
-
IsSynchronized
public static final int IsSynchronized- See Also:
-
BlockExit
public static final int BlockExit- See Also:
-
IsRecovered
public static final int IsRecovered- See Also:
-
HasSyntaxErrors
public static final int HasSyntaxErrors- See Also:
-
INVOCATION_ARGUMENT_OK
public static final int INVOCATION_ARGUMENT_OK- See Also:
-
INVOCATION_ARGUMENT_UNCHECKED
public static final int INVOCATION_ARGUMENT_UNCHECKED- See Also:
-
INVOCATION_ARGUMENT_WILDCARD
public static final int INVOCATION_ARGUMENT_WILDCARD- See Also:
-
HasTypeAnnotations
public static final int HasTypeAnnotations- See Also:
-
IsUnionType
public static final int IsUnionType- See Also:
-
IsDiamond
public static final int IsDiamond- See Also:
-
InsideExpressionStatement
public static final int InsideExpressionStatement- See Also:
-
IsSynthetic
public static final int IsSynthetic- See Also:
-
HasFunctionalInterfaceTypes
public static final int HasFunctionalInterfaceTypes- See Also:
-
NO_ARGUMENTS
-
NO_RECORD_COMPONENTS
-
NO_TYPE_PATTERNS
-
NO_VARIABLES
-
-
Constructor Details
-
ASTNode
public ASTNode()
-
-
Method Details
-
checkInvocationArguments
public static boolean checkInvocationArguments(BlockScope scope, Expression receiver, TypeBinding receiverType, MethodBinding method, Expression[] arguments, TypeBinding[] argumentTypes, boolean argsContainCast, InvocationSite invocationSite) -
concreteStatement
-
isFieldUseDeprecated
-
isImplicitThis
public boolean isImplicitThis() -
receiverIsImplicitThis
public boolean receiverIsImplicitThis() -
isMethodUseDeprecated
public final boolean isMethodUseDeprecated(MethodBinding method, Scope scope, boolean isExplicitUse, InvocationSite invocation) -
isSuper
public boolean isSuper() -
isQualifiedSuper
public boolean isQualifiedSuper() -
isThis
public boolean isThis() -
isUnqualifiedSuper
public boolean isUnqualifiedSuper() -
isTypeUseDeprecated
-
isType
public boolean isType()Returns whether this node represents a binding of typeBinding.TYPE- Returns:
trueif the node represents aBinding.TYPEbinding type.
-
print
-
printAnnotations
-
printIndent
-
printModifiers
-
resolveStatements
-
resolvePolyExpressionArguments
public static MethodBinding resolvePolyExpressionArguments(Invocation invocation, MethodBinding method, TypeBinding[] argumentTypes, BlockScope scope) After method lookup has produced 'methodBinding' but when poly expressions have been seen as arguments, inspect the arguments to trigger another round of resolving with improved target types from the methods parameters. If this resolving produces better types for any arguments, update the 'argumentTypes' array in-place as an intended side effect that will feed better type information in checkInvocationArguments() and others.- Parameters:
invocation- the outer invocation which is being resolvedmethod- the method produced by lookup (possibly involving type inference).argumentTypes- the argument types as collected from first resolving the invocation arguments and as used for the method lookup.scope- scope for resolution.- Returns:
- either the original method or a problem method
-
resolveAnnotations
public static void resolveAnnotations(BlockScope scope, Annotation[] sourceAnnotations, Binding recipient) -
resolveAnnotations
public static AnnotationBinding[] resolveAnnotations(BlockScope scope, Annotation[] sourceAnnotations, Binding recipient, boolean copySE8AnnotationsToType) Resolve annotations, and check duplicates, answers combined tagBits for recognized standard annotations. Return null if nothing new is resolved. -
resolveAnnotations
public static TypeBinding resolveAnnotations(BlockScope scope, Annotation[][] sourceAnnotations, TypeBinding type) Resolve JSR308 annotations on a type reference, array creation expression or a wildcard. Type parameters go directly to the method/ctor, By construction the bindings associated with QTR, PQTR etc get resolved first and then annotations for different levels get resolved and applied at one go. Likewise for multidimensional arrays.- Returns:
- the annotated type binding.
-
handleNonNullByDefault
public static void handleNonNullByDefault(BlockScope scope, Annotation[] sourceAnnotations, LocalDeclaration localDeclaration) "early" handling of NonNullByDefault because for local variables annotations are resolved after their type because of bug 96991. -
copySE8AnnotationsToType
public static void copySE8AnnotationsToType(BlockScope scope, Binding recipient, Annotation[] annotations, boolean annotatingEnumerator) -
getRelevantAnnotations
public static Annotation[] getRelevantAnnotations(Annotation[] annotations, long rcMask, List<AnnotationBinding> relevantAnnotations) -
copyRecordComponentAnnotations
public static Annotation[] copyRecordComponentAnnotations(Scope scope, Binding recipient, Annotation[] annotations) -
resolveDeprecatedAnnotations
public static void resolveDeprecatedAnnotations(BlockScope scope, Annotation[] annotations, Binding recipient) Figures if @Deprecated annotation is specified, do not resolve entire annotations. -
checkingPotentialCompatibility
public boolean checkingPotentialCompatibility() -
acceptPotentiallyCompatibleMethods
-
sourceStart
public int sourceStart() -
sourceEnd
public int sourceEnd() -
toString
-
traverse
-