org.eclipse.jdt.internal.compiler.ast
类 ASTNode
java.lang.Object
org.eclipse.jdt.internal.compiler.ast.ASTNode
- 所有已实现的接口:
- TypeConstants, TypeIds
- 直接已知子类:
- AbstractMethodDeclaration, CompilationUnitDeclaration, ImportReference, Javadoc, MemberValuePair, Statement
public abstract class ASTNode
- extends Object
- implements TypeConstants, TypeIds
| 从接口 org.eclipse.jdt.internal.compiler.lookup.TypeConstants 继承的字段 |
ANNOTATION, ANNOTATION_PREFIX, ANNOTATION_SUFFIX, ANONYM_PREFIX, ANONYM_SUFFIX, BOOLEAN, BYTE, 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, CLINIT, CLONE, CONSTRAINT_EQUAL, CONSTRAINT_EXTENDS, CONSTRAINT_SUPER, DOUBLE, EQUALS, FLOAT, GETCLASS, HASHCODE, INIT, INT, INVOKE, IO, JAVA, JAVA_IO, JAVA_IO_EXTERNALIZABLE, JAVA_IO_IOEXCEPTION, JAVA_IO_OBJECTINPUTSTREAM, JAVA_IO_OBJECTOUTPUTSTREAM, JAVA_IO_OBJECTSTREAMEXCEPTION, JAVA_IO_PRINTSTREAM, JAVA_IO_SERIALIZABLE, JAVA_LANG, JAVA_LANG_ANNOTATION_ANNOTATION, JAVA_LANG_ANNOTATION_DOCUMENTED, JAVA_LANG_ANNOTATION_ELEMENTTYPE, JAVA_LANG_ANNOTATION_INHERITED, 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_DEPRECATED, JAVA_LANG_DOUBLE, JAVA_LANG_ENUM, JAVA_LANG_ERROR, JAVA_LANG_EXCEPTION, JAVA_LANG_FLOAT, JAVA_LANG_ILLEGALARGUMENTEXCEPTION, JAVA_LANG_INTEGER, JAVA_LANG_INVOKE_METHODHANDLE_$_POLYMORPHICSIGNATURE, JAVA_LANG_INVOKE_METHODHANDLE_POLYMORPHICSIGNATURE, JAVA_LANG_ITERABLE, JAVA_LANG_LONG, JAVA_LANG_NOCLASSDEFERROR, JAVA_LANG_OBJECT, JAVA_LANG_OVERRIDE, JAVA_LANG_REFLECT_CONSTRUCTOR, JAVA_LANG_REFLECT_FIELD, JAVA_LANG_REFLECT_METHOD, 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_UTIL_COLLECTION, JAVA_UTIL_ITERATOR, JAVAX_RMI_CORBA_STUB, LANG, LENGTH, LONG, MAIN, MISMATCH, NULL, OBJECT, OK, PACKAGE_INFO_NAME, READOBJECT, READRESOLVE, REFLECT, SERIALPERSISTENTFIELDS, SERIALVERSIONUID, SHORT, 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, TYPE, UNCHECKED, UPPER_ANNOTATION_TYPE, UPPER_CLASS, UPPER_CONSTRUCTOR, UPPER_FIELD, UPPER_LOCAL_VARIABLE, UPPER_METHOD, UPPER_PACKAGE, UPPER_PARAMETER, UPPER_RUNTIME, UPPER_SOURCE, UTIL, VALUE, VALUEOF, VALUES, VOID, WILDCARD_CAPTURE, WILDCARD_CAPTURE_NAME_PREFIX, WILDCARD_CAPTURE_NAME_SUFFIX, WILDCARD_EXTENDS, WILDCARD_MINUS, WILDCARD_NAME, WILDCARD_PLUS, WILDCARD_STAR, WILDCARD_SUPER, WRITEOBJECT, WRITEREPLACE |
| 从接口 org.eclipse.jdt.internal.compiler.lookup.TypeIds 继承的字段 |
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, 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_double, T_float, T_int, T_JavaIoException, T_JavaIoExternalizable, T_JavaIoObjectStreamException, T_JavaIoPrintStream, T_JavaIoSerializable, T_JavaLangAnnotationAnnotation, T_JavaLangAnnotationDocumented, T_JavaLangAnnotationElementType, T_JavaLangAnnotationInherited, 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_JavaLangIllegalArgumentException, T_JavaLangInteger, T_JavaLangInvokeMethodHandlePolymorphicSignature, T_JavaLangIterable, T_JavaLangLong, T_JavaLangNoClassDefError, T_JavaLangObject, T_JavaLangOverride, 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_long, T_null, T_short, T_undefined, T_void, UNBOXING |
|
方法摘要 |
static boolean |
checkInvocationArguments(BlockScope scope,
Expression receiver,
TypeBinding receiverType,
MethodBinding method,
Expression[] arguments,
TypeBinding[] argumentTypes,
boolean argsContainCast,
InvocationSite invocationSite)
|
ASTNode |
concreteStatement()
|
boolean |
isFieldUseDeprecated(FieldBinding field,
Scope scope,
int filteredBits)
|
boolean |
isImplicitThis()
|
boolean |
isMethodUseDeprecated(MethodBinding method,
Scope scope,
boolean isExplicitUse)
|
boolean |
isSuper()
|
boolean |
isThis()
|
boolean |
isTypeUseDeprecated(TypeBinding type,
Scope scope)
|
abstract StringBuffer |
print(int indent,
StringBuffer output)
|
static StringBuffer |
printAnnotations(Annotation[] annotations,
StringBuffer output)
|
static StringBuffer |
printIndent(int indent,
StringBuffer output)
|
static StringBuffer |
printModifiers(int modifiers,
StringBuffer output)
|
static void |
resolveAnnotations(BlockScope scope,
Annotation[] sourceAnnotations,
Binding recipient)
Resolve annotations, and check duplicates, answers combined tagBits
for recognized standard annotations |
static void |
resolveDeprecatedAnnotations(BlockScope scope,
Annotation[] annotations,
Binding recipient)
Figures if @Deprecated annotation is specified, do not resolve entire annotations. |
int |
sourceEnd()
|
int |
sourceStart()
|
String |
toString()
|
void |
traverse(ASTVisitor visitor,
BlockScope scope)
|
sourceStart
public int sourceStart
sourceEnd
public int sourceEnd
Bit1
public static final int Bit1
- 另请参见:
- 常量字段值
Bit2
public static final int Bit2
- 另请参见:
- 常量字段值
Bit3
public static final int Bit3
- 另请参见:
- 常量字段值
Bit4
public static final int Bit4
- 另请参见:
- 常量字段值
Bit5
public static final int Bit5
- 另请参见:
- 常量字段值
Bit6
public static final int Bit6
- 另请参见:
- 常量字段值
Bit7
public static final int Bit7
- 另请参见:
- 常量字段值
Bit8
public static final int Bit8
- 另请参见:
- 常量字段值
Bit9
public static final int Bit9
- 另请参见:
- 常量字段值
Bit10
public static final int Bit10
- 另请参见:
- 常量字段值
Bit11
public static final int Bit11
- 另请参见:
- 常量字段值
Bit12
public static final int Bit12
- 另请参见:
- 常量字段值
Bit13
public static final int Bit13
- 另请参见:
- 常量字段值
Bit14
public static final int Bit14
- 另请参见:
- 常量字段值
Bit15
public static final int Bit15
- 另请参见:
- 常量字段值
Bit16
public static final int Bit16
- 另请参见:
- 常量字段值
Bit17
public static final int Bit17
- 另请参见:
- 常量字段值
Bit18
public static final int Bit18
- 另请参见:
- 常量字段值
Bit19
public static final int Bit19
- 另请参见:
- 常量字段值
Bit20
public static final int Bit20
- 另请参见:
- 常量字段值
Bit21
public static final int Bit21
- 另请参见:
- 常量字段值
Bit22
public static final int Bit22
- 另请参见:
- 常量字段值
Bit23
public static final int Bit23
- 另请参见:
- 常量字段值
Bit24
public static final int Bit24
- 另请参见:
- 常量字段值
Bit25
public static final int Bit25
- 另请参见:
- 常量字段值
Bit26
public static final int Bit26
- 另请参见:
- 常量字段值
Bit27
public static final int Bit27
- 另请参见:
- 常量字段值
Bit28
public static final int Bit28
- 另请参见:
- 常量字段值
Bit29
public static final int Bit29
- 另请参见:
- 常量字段值
Bit30
public static final int Bit30
- 另请参见:
- 常量字段值
Bit31
public static final int Bit31
- 另请参见:
- 常量字段值
Bit32
public static final int Bit32
- 另请参见:
- 常量字段值
Bit32L
public static final long Bit32L
- 另请参见:
- 常量字段值
Bit33L
public static final long Bit33L
- 另请参见:
- 常量字段值
Bit34L
public static final long Bit34L
- 另请参见:
- 常量字段值
Bit35L
public static final long Bit35L
- 另请参见:
- 常量字段值
Bit36L
public static final long Bit36L
- 另请参见:
- 常量字段值
Bit37L
public static final long Bit37L
- 另请参见:
- 常量字段值
Bit38L
public static final long Bit38L
- 另请参见:
- 常量字段值
Bit39L
public static final long Bit39L
- 另请参见:
- 常量字段值
Bit40L
public static final long Bit40L
- 另请参见:
- 常量字段值
Bit41L
public static final long Bit41L
- 另请参见:
- 常量字段值
Bit42L
public static final long Bit42L
- 另请参见:
- 常量字段值
Bit43L
public static final long Bit43L
- 另请参见:
- 常量字段值
Bit44L
public static final long Bit44L
- 另请参见:
- 常量字段值
Bit45L
public static final long Bit45L
- 另请参见:
- 常量字段值
Bit46L
public static final long Bit46L
- 另请参见:
- 常量字段值
Bit47L
public static final long Bit47L
- 另请参见:
- 常量字段值
Bit48L
public static final long Bit48L
- 另请参见:
- 常量字段值
Bit49L
public static final long Bit49L
- 另请参见:
- 常量字段值
Bit50L
public static final long Bit50L
- 另请参见:
- 常量字段值
Bit51L
public static final long Bit51L
- 另请参见:
- 常量字段值
Bit52L
public static final long Bit52L
- 另请参见:
- 常量字段值
Bit53L
public static final long Bit53L
- 另请参见:
- 常量字段值
Bit54L
public static final long Bit54L
- 另请参见:
- 常量字段值
Bit55L
public static final long Bit55L
- 另请参见:
- 常量字段值
Bit56L
public static final long Bit56L
- 另请参见:
- 常量字段值
Bit57L
public static final long Bit57L
- 另请参见:
- 常量字段值
Bit58L
public static final long Bit58L
- 另请参见:
- 常量字段值
Bit59L
public static final long Bit59L
- 另请参见:
- 常量字段值
Bit60L
public static final long Bit60L
- 另请参见:
- 常量字段值
Bit61L
public static final long Bit61L
- 另请参见:
- 常量字段值
Bit62L
public static final long Bit62L
- 另请参见:
- 常量字段值
Bit63L
public static final long Bit63L
- 另请参见:
- 常量字段值
Bit64L
public static final long Bit64L
- 另请参见:
- 常量字段值
bits
public int bits
ReturnTypeIDMASK
public static final int ReturnTypeIDMASK
- 另请参见:
- 常量字段值
OperatorSHIFT
public static final int OperatorSHIFT
- 另请参见:
- 常量字段值
OperatorMASK
public static final int OperatorMASK
- 另请参见:
- 常量字段值
IsReturnedValue
public static final int IsReturnedValue
- 另请参见:
- 常量字段值
UnnecessaryCast
public static final int UnnecessaryCast
- 另请参见:
- 常量字段值
DisableUnnecessaryCastCheck
public static final int DisableUnnecessaryCastCheck
- 另请参见:
- 常量字段值
GenerateCheckcast
public static final int GenerateCheckcast
- 另请参见:
- 常量字段值
UnsafeCast
public static final int UnsafeCast
- 另请参见:
- 常量字段值
RestrictiveFlagMASK
public static final int RestrictiveFlagMASK
- 另请参见:
- 常量字段值
IsArgument
public static final int IsArgument
- 另请参见:
- 常量字段值
FirstAssignmentToLocal
public static final int FirstAssignmentToLocal
- 另请参见:
- 常量字段值
NeedReceiverGenericCast
public static final int NeedReceiverGenericCast
- 另请参见:
- 常量字段值
IsImplicitThis
public static final int IsImplicitThis
- 另请参见:
- 常量字段值
DepthSHIFT
public static final int DepthSHIFT
- 另请参见:
- 常量字段值
DepthMASK
public static final int DepthMASK
- 另请参见:
- 常量字段值
IsReachable
public static final int IsReachable
- 另请参见:
- 常量字段值
LabelUsed
public static final int LabelUsed
- 另请参见:
- 常量字段值
DocumentedFallthrough
public static final int DocumentedFallthrough
- 另请参见:
- 常量字段值
IsLocalDeclarationReachable
public static final int IsLocalDeclarationReachable
- 另请参见:
- 常量字段值
IsSubRoutineEscaping
public static final int IsSubRoutineEscaping
- 另请参见:
- 常量字段值
IsTryBlockExiting
public static final int IsTryBlockExiting
- 另请参见:
- 常量字段值
ContainsAssertion
public static final int ContainsAssertion
- 另请参见:
- 常量字段值
IsLocalType
public static final int IsLocalType
- 另请参见:
- 常量字段值
IsAnonymousType
public static final int IsAnonymousType
- 另请参见:
- 常量字段值
IsMemberType
public static final int IsMemberType
- 另请参见:
- 常量字段值
HasAbstractMethods
public static final int HasAbstractMethods
- 另请参见:
- 常量字段值
IsSecondaryType
public static final int IsSecondaryType
- 另请参见:
- 常量字段值
HasBeenGenerated
public static final int HasBeenGenerated
- 另请参见:
- 常量字段值
HasLocalType
public static final int HasLocalType
- 另请参见:
- 常量字段值
HasBeenResolved
public static final int HasBeenResolved
- 另请参见:
- 常量字段值
ParenthesizedSHIFT
public static final int ParenthesizedSHIFT
- 另请参见:
- 常量字段值
ParenthesizedMASK
public static final int ParenthesizedMASK
- 另请参见:
- 常量字段值
IgnoreNoEffectAssignCheck
public static final int IgnoreNoEffectAssignCheck
- 另请参见:
- 常量字段值
IsStrictlyAssigned
public static final int IsStrictlyAssigned
- 另请参见:
- 常量字段值
IsCompoundAssigned
public static final int IsCompoundAssigned
- 另请参见:
- 常量字段值
DiscardEnclosingInstance
public static final int DiscardEnclosingInstance
- 另请参见:
- 常量字段值
Unchecked
public static final int Unchecked
- 另请参见:
- 常量字段值
ResolveJavadoc
public static final int ResolveJavadoc
- 另请参见:
- 常量字段值
IsUsefulEmptyStatement
public static final int IsUsefulEmptyStatement
- 另请参见:
- 常量字段值
UndocumentedEmptyBlock
public static final int UndocumentedEmptyBlock
- 另请参见:
- 常量字段值
OverridingMethodWithSupercall
public static final int OverridingMethodWithSupercall
- 另请参见:
- 常量字段值
CanBeStatic
public static final int CanBeStatic
- 另请参见:
- 常量字段值
ErrorInSignature
public static final int ErrorInSignature
- 另请参见:
- 常量字段值
NeedFreeReturn
public static final int NeedFreeReturn
- 另请参见:
- 常量字段值
IsDefaultConstructor
public static final int IsDefaultConstructor
- 另请参见:
- 常量字段值
HasAllMethodBodies
public static final int HasAllMethodBodies
- 另请参见:
- 常量字段值
IsImplicitUnit
public static final int IsImplicitUnit
- 另请参见:
- 常量字段值
InsideJavadoc
public static final int InsideJavadoc
- 另请参见:
- 常量字段值
SuperAccess
public static final int SuperAccess
- 另请参见:
- 常量字段值
Empty
public static final int Empty
- 另请参见:
- 常量字段值
IsElseIfStatement
public static final int IsElseIfStatement
- 另请参见:
- 常量字段值
ThenExit
public static final int ThenExit
- 另请参见:
- 常量字段值
IsElseStatementUnreachable
public static final int IsElseStatementUnreachable
- 另请参见:
- 常量字段值
IsThenStatementUnreachable
public static final int IsThenStatementUnreachable
- 另请参见:
- 常量字段值
IsSuperType
public static final int IsSuperType
- 另请参见:
- 常量字段值
IsVarArgs
public static final int IsVarArgs
- 另请参见:
- 常量字段值
IgnoreRawTypeCheck
public static final int IgnoreRawTypeCheck
- 另请参见:
- 常量字段值
IsAnnotationDefaultValue
public static final int IsAnnotationDefaultValue
- 另请参见:
- 常量字段值
IsNonNull
public static final int IsNonNull
- 另请参见:
- 常量字段值
NeededScope
public static final int NeededScope
- 另请参见:
- 常量字段值
OnDemand
public static final int OnDemand
- 另请参见:
- 常量字段值
Used
public static final int Used
- 另请参见:
- 常量字段值
DidResolve
public static final int DidResolve
- 另请参见:
- 常量字段值
IsAnySubRoutineEscaping
public static final int IsAnySubRoutineEscaping
- 另请参见:
- 常量字段值
IsSynchronized
public static final int IsSynchronized
- 另请参见:
- 常量字段值
BlockExit
public static final int BlockExit
- 另请参见:
- 常量字段值
IsRecovered
public static final int IsRecovered
- 另请参见:
- 常量字段值
HasSyntaxErrors
public static final int HasSyntaxErrors
- 另请参见:
- 常量字段值
INVOCATION_ARGUMENT_OK
public static final int INVOCATION_ARGUMENT_OK
- 另请参见:
- 常量字段值
INVOCATION_ARGUMENT_UNCHECKED
public static final int INVOCATION_ARGUMENT_UNCHECKED
- 另请参见:
- 常量字段值
INVOCATION_ARGUMENT_WILDCARD
public static final int INVOCATION_ARGUMENT_WILDCARD
- 另请参见:
- 常量字段值
IsUnionType
public static final int IsUnionType
- 另请参见:
- 常量字段值
IsDiamond
public static final int IsDiamond
- 另请参见:
- 常量字段值
InsideExpressionStatement
public static final int InsideExpressionStatement
- 另请参见:
- 常量字段值
ASTNode
public ASTNode()
checkInvocationArguments
public static boolean checkInvocationArguments(BlockScope scope,
Expression receiver,
TypeBinding receiverType,
MethodBinding method,
Expression[] arguments,
TypeBinding[] argumentTypes,
boolean argsContainCast,
InvocationSite invocationSite)
concreteStatement
public ASTNode concreteStatement()
isFieldUseDeprecated
public final boolean isFieldUseDeprecated(FieldBinding field,
Scope scope,
int filteredBits)
isImplicitThis
public boolean isImplicitThis()
isMethodUseDeprecated
public final boolean isMethodUseDeprecated(MethodBinding method,
Scope scope,
boolean isExplicitUse)
isSuper
public boolean isSuper()
isThis
public boolean isThis()
isTypeUseDeprecated
public final boolean isTypeUseDeprecated(TypeBinding type,
Scope scope)
print
public abstract StringBuffer print(int indent,
StringBuffer output)
printAnnotations
public static StringBuffer printAnnotations(Annotation[] annotations,
StringBuffer output)
printIndent
public static StringBuffer printIndent(int indent,
StringBuffer output)
printModifiers
public static StringBuffer printModifiers(int modifiers,
StringBuffer output)
resolveAnnotations
public static void resolveAnnotations(BlockScope scope,
Annotation[] sourceAnnotations,
Binding recipient)
- Resolve annotations, and check duplicates, answers combined tagBits
for recognized standard annotations
resolveDeprecatedAnnotations
public static void resolveDeprecatedAnnotations(BlockScope scope,
Annotation[] annotations,
Binding recipient)
- Figures if @Deprecated annotation is specified, do not resolve entire annotations.
sourceStart
public int sourceStart()
sourceEnd
public int sourceEnd()
toString
public String toString()
- 覆盖:
- 类
Object 中的 toString
traverse
public void traverse(ASTVisitor visitor,
BlockScope scope)
Copyright © 2013. All Rights Reserved.