Class InterTypeMethodDeclaration
java.lang.Object
org.aspectj.org.eclipse.jdt.core.dom.ASTNode
org.aspectj.org.eclipse.jdt.core.dom.BodyDeclaration
org.aspectj.org.eclipse.jdt.core.dom.MethodDeclaration
org.aspectj.org.eclipse.jdt.core.dom.InterTypeMethodDeclaration
InterTypeMethodDeclaration DOM AST node.
has:
everything MethodDeclarations have
Note:
should also have the name of the type it's declared on!
- Author:
- ajh02
-
Field Summary
Fields inherited from class MethodDeclaration
BODY_PROPERTY, COMPACT_CONSTRUCTOR_PROPERTY, CONSTRUCTOR_PROPERTY, EXTRA_DIMENSIONS_PROPERTY, EXTRA_DIMENSIONS2_PROPERTY, JAVADOC_PROPERTY, MODIFIERS_PROPERTY, MODIFIERS2_PROPERTY, NAME_PROPERTY, parameters, PARAMETERS_PROPERTY, RECEIVER_QUALIFIER_PROPERTY, RECEIVER_TYPE_PROPERTY, RETURN_TYPE_PROPERTY, RETURN_TYPE2_PROPERTY, THROWN_EXCEPTION_TYPES_PROPERTY, THROWN_EXCEPTIONS_PROPERTY, TYPE_PARAMETERS_PROPERTYModifier and TypeFieldDescriptionstatic final ChildPropertyDescriptorThe "body" structural property of this node type (child type:Block).static final SimplePropertyDescriptorThe "compact constructor" structural property of record node type (type:Boolean).static final SimplePropertyDescriptorThe "constructor" structural property of this node type (type:Boolean).static final SimplePropertyDescriptorDeprecated.static final ChildListPropertyDescriptorThe "extraDimensions2" structural property of this node type (element type:Dimension) (added in JLS8 API).static final ChildPropertyDescriptorThe "javadoc" structural property of this node type (child type:Javadoc).static final SimplePropertyDescriptorDeprecated.In the JLS3 API, this property is replaced byMethodDeclaration.MODIFIERS2_PROPERTY.static final ChildListPropertyDescriptorThe "modifiers" structural property of this node type (element type:IExtendedModifier) (added in JLS3 API).static final ChildPropertyDescriptorThe "name" structural property of this node type (child type:SimpleName).protected final org.aspectj.org.eclipse.jdt.core.dom.ASTNode.NodeListThe parameter declarations (element type:SingleVariableDeclaration).static final ChildListPropertyDescriptorThe "parameters" structural property of this node type (element type:SingleVariableDeclaration).static final ChildPropertyDescriptorThe "receiverQualifier" structural property of this node type (child type:SimpleName) (added in JLS8 API).static final ChildPropertyDescriptorThe "receiverType" structural property of this node type (child type:Type) (added in JLS8 API).static final ChildPropertyDescriptorDeprecated.In the JLS3 API, this property is replaced byMethodDeclaration.RETURN_TYPE2_PROPERTY.static final ChildPropertyDescriptorThe "returnType2" structural property of this node type (child type:Type) (added in JLS3 API).static final ChildListPropertyDescriptorThe "thrownExceptionTypes" structural property of this node type (element type:Type) (added in JLS8 API).static final ChildListPropertyDescriptorDeprecated.In JLS8 and later, useMethodDeclaration.THROWN_EXCEPTION_TYPES_PROPERTYinstead.static final ChildListPropertyDescriptorThe "typeParameters" structural property of this node type (element type:TypeParameter) (added in JLS3 API).Fields inherited from class ASTNode
ANNOTATION_TYPE_DECLARATION, ANNOTATION_TYPE_MEMBER_DECLARATION, ANONYMOUS_CLASS_DECLARATION, ARRAY_ACCESS, ARRAY_CREATION, ARRAY_INITIALIZER, ARRAY_TYPE, ASSERT_STATEMENT, ASSIGNMENT, BLOCK, BLOCK_COMMENT, BOOLEAN_LITERAL, BREAK_STATEMENT, CASE_DEFAULT_EXPRESSION, CAST_EXPRESSION, CATCH_CLAUSE, CHARACTER_LITERAL, CLASS_INSTANCE_CREATION, COMPILATION_UNIT, CONDITIONAL_EXPRESSION, CONSTRUCTOR_INVOCATION, CONTINUE_STATEMENT, CREATION_REFERENCE, DIMENSION, DO_STATEMENT, EitherOr_MultiPattern, EMPTY_STATEMENT, ENHANCED_FOR_STATEMENT, ENUM_CONSTANT_DECLARATION, ENUM_DECLARATION, EXPORTS_DIRECTIVE, EXPRESSION_METHOD_REFERENCE, EXPRESSION_STATEMENT, FIELD_ACCESS, FIELD_DECLARATION, FOR_STATEMENT, GUARDED_PATTERN, IF_STATEMENT, IMPORT_DECLARATION, INFIX_EXPRESSION, INITIALIZER, INSTANCEOF_EXPRESSION, INTERSECTION_TYPE, JAVADOC, JAVADOC_REGION, JAVADOC_TEXT_ELEMENT, LABELED_STATEMENT, LAMBDA_EXPRESSION, LINE_COMMENT, MALFORMED, MARKER_ANNOTATION, MEMBER_REF, MEMBER_VALUE_PAIR, METHOD_DECLARATION, METHOD_INVOCATION, METHOD_REF, METHOD_REF_PARAMETER, MODIFIER, MODULE_DECLARATION, MODULE_MODIFIER, MODULE_QUALIFIED_NAME, NAME_QUALIFIED_TYPE, NORMAL_ANNOTATION, NULL_LITERAL, NULL_PATTERN, NUMBER_LITERAL, OPENS_DIRECTIVE, ORIGINAL, PACKAGE_DECLARATION, PARAMETERIZED_TYPE, PARENTHESIZED_EXPRESSION, PATTERN_INSTANCEOF_EXPRESSION, POSTFIX_EXPRESSION, PREFIX_EXPRESSION, PRIMITIVE_TYPE, PROTECT, PROVIDES_DIRECTIVE, QUALIFIED_NAME, QUALIFIED_TYPE, RECORD_DECLARATION, RECORD_PATTERN, RECOVERED, REQUIRES_DIRECTIVE, RETURN_STATEMENT, SIMPLE_NAME, SIMPLE_TYPE, SINGLE_MEMBER_ANNOTATION, SINGLE_VARIABLE_DECLARATION, STRING_LITERAL, SUPER_CONSTRUCTOR_INVOCATION, SUPER_FIELD_ACCESS, SUPER_METHOD_INVOCATION, SUPER_METHOD_REFERENCE, SWITCH_CASE, SWITCH_EXPRESSION, SWITCH_STATEMENT, SYNCHRONIZED_STATEMENT, TAG_ELEMENT, TAG_PROPERTY, TEXT_BLOCK, TEXT_ELEMENT, THIS_EXPRESSION, THROW_STATEMENT, TRY_STATEMENT, TYPE_DECLARATION, TYPE_DECLARATION_STATEMENT, TYPE_LITERAL, TYPE_METHOD_REFERENCE, TYPE_PARAMETER, TYPE_PATTERN, UNION_TYPE, UNNAMED_CLASS, USES_DIRECTIVE, VARIABLE_DECLARATION_EXPRESSION, VARIABLE_DECLARATION_FRAGMENT, VARIABLE_DECLARATION_STATEMENT, WHILE_STATEMENT, WILDCARD_TYPE, YIELD_STATEMENTModifier and TypeFieldDescriptionstatic final intNode type constant indicating a node of typeAnnotationTypeDeclaration.static final intNode type constant indicating a node of typeAnnotationTypeMemberDeclaration.static final intNode type constant indicating a node of typeAnonymousClassDeclaration.static final intNode type constant indicating a node of typeArrayAccess.static final intNode type constant indicating a node of typeArrayCreation.static final intNode type constant indicating a node of typeArrayInitializer.static final intNode type constant indicating a node of typeArrayType.static final intNode type constant indicating a node of typeAssertStatement.static final intNode type constant indicating a node of typeAssignment.static final intNode type constant indicating a node of typeBlock.static final intNode type constant indicating a node of typeBlockComment.static final intNode type constant indicating a node of typeBooleanLiteral.static final intNode type constant indicating a node of typeBreakStatement.static final intNode type constant indicating a node of typeCaseDefaultExpression.static final intNode type constant indicating a node of typeCastExpression.static final intNode type constant indicating a node of typeCatchClause.static final intNode type constant indicating a node of typeCharacterLiteral.static final intNode type constant indicating a node of typeClassInstanceCreation.static final intNode type constant indicating a node of typeCompilationUnit.static final intNode type constant indicating a node of typeConditionalExpression.static final intNode type constant indicating a node of typeConstructorInvocation.static final intNode type constant indicating a node of typeContinueStatement.static final intNode type constant indicating a node of typeCreationReference.static final intNode type constant indicating a node of typeDimension.static final intNode type constant indicating a node of typeDoStatement.static final intNode type constant indicating a node of typeEitherOrMultiPattern.static final intNode type constant indicating a node of typeEmptyStatement.static final intNode type constant indicating a node of typeEnhancedForStatement.static final intNode type constant indicating a node of typeEnumConstantDeclaration.static final intNode type constant indicating a node of typeEnumDeclaration.static final intNode type constant indicating a node of typeExportsDirective.static final intNode type constant indicating a node of typeExpressionMethodReference.static final intNode type constant indicating a node of typeExpressionStatement.static final intNode type constant indicating a node of typeFieldAccess.static final intNode type constant indicating a node of typeFieldDeclaration.static final intNode type constant indicating a node of typeForStatement.static final intNode type constant indicating a node of typeGuardedPattern.static final intNode type constant indicating a node of typeIfStatement.static final intNode type constant indicating a node of typeImportDeclaration.static final intNode type constant indicating a node of typeInfixExpression.static final intNode type constant indicating a node of typeInitializer.static final intNode type constant indicating a node of typeInstanceofExpression.static final intNode type constant indicating a node of typeIntersectionType.static final intNode type constant indicating a node of typeJavadoc.static final intNode type constant indicating a node of typeJavaDocRegion.static final intNode type constant indicating a node of typeTextElement.static final intNode type constant indicating a node of typeLabeledStatement.static final intNode type constant indicating a node of typeLambdaExpression.static final intNode type constant indicating a node of typeLineComment.static final intFlag constant (bit mask, value 1) indicating that there is something not quite right with this AST node.static final intNode type constant indicating a node of typeMarkerAnnotation.static final intNode type constant indicating a node of typeMemberRef.static final intNode type constant indicating a node of typeMemberValuePair.static final intNode type constant indicating a node of typeMethodDeclaration.static final intNode type constant indicating a node of typeMethodInvocation.static final intNode type constant indicating a node of typeMethodRef.static final intNode type constant indicating a node of typeMethodRefParameter.static final intNode type constant indicating a node of typeModifier.static final intNode type constant indicating a node of typeModuleDeclaration.static final intNode type constant indicating a node of typeModuleModifier.static final intNode type constant indicating a node of typeModuleQualifiedName.static final intNode type constant indicating a node of typeNameQualifiedType.static final intNode type constant indicating a node of typeNormalAnnotation.static final intNode type constant indicating a node of typeNullLiteral.static final intNode type constant indicating a node of typeNullPattern.static final intNode type constant indicating a node of typeNumberLiteral.static final intNode type constant indicating a node of typeOpensDirective.static final intFlag constant (bit mask, value 2) indicating that this is a node that was created by the parser (as opposed to one created by another party).static final intNode type constant indicating a node of typePackageDeclaration.static final intNode type constant indicating a node of typeParameterizedType.static final intNode type constant indicating a node of typeParenthesizedExpression.static final intNode type constant indicating a node of typePatternInstanceofExpression.static final intNode type constant indicating a node of typePostfixExpression.static final intNode type constant indicating a node of typePrefixExpression.static final intNode type constant indicating a node of typePrimitiveType.static final intFlag constant (bit mask, value 4) indicating that this node is unmodifiable.static final intNode type constant indicating a node of typeProvidesDirective.static final intNode type constant indicating a node of typeQualifiedName.static final intNode type constant indicating a node of typeQualifiedType.static final intNode type constant indicating a node of typeRecordDeclaration.static final intNode type constant indicating a node of typeRecordPattern.static final intFlag constant (bit mask, value 8) indicating that this node or a part of this node is recovered from source that contains a syntax error detected in the vicinity.static final intNode type constant indicating a node of typeRequiresDirective.static final intNode type constant indicating a node of typeReturnStatement.static final intNode type constant indicating a node of typeSimpleName.static final intNode type constant indicating a node of typeSimpleType.static final intNode type constant indicating a node of typeSingleMemberAnnotation.static final intNode type constant indicating a node of typeSingleVariableDeclaration.static final intNode type constant indicating a node of typeStringLiteral.static final intNode type constant indicating a node of typeSuperConstructorInvocation.static final intNode type constant indicating a node of typeSuperFieldAccess.static final intNode type constant indicating a node of typeSuperMethodInvocation.static final intNode type constant indicating a node of typeSuperMethhodReference.static final intNode type constant indicating a node of typeSwitchCase.static final intNode type constant indicating a node of typeSwitchExpression.static final intNode type constant indicating a node of typeSwitchStatement.static final intNode type constant indicating a node of typeSynchronizedStatement.static final intNode type constant indicating a node of typeTagElement.static final intNode type constant indicating a node of typeTagProperty.static final intNode type constant indicating a node of typeTextBlock.static final intNode type constant indicating a node of typeTextElement.static final intNode type constant indicating a node of typeThisExpression.static final intNode type constant indicating a node of typeThrowStatement.static final intNode type constant indicating a node of typeTryStatement.static final intNode type constant indicating a node of typeTypeDeclaration.static final intNode type constant indicating a node of typeTypeDeclarationStatement.static final intNode type constant indicating a node of typeTypeLiteral.static final intNode type constant indicating a node of typeTypeMethodReference.static final intNode type constant indicating a node of typeTypeParameter.static final intNode type constant indicating a node of typeTypePattern.static final intNode type constant indicating a node of typeUnionType.static final intstatic final intNode type constant indicating a node of typeUsesDirective.static final intNode type constant indicating a node of typeVariableDeclarationExpression.static final intNode type constant indicating a node of typeVariableDeclarationFragment.static final intNode type constant indicating a node of typeVariableDeclarationStatement.static final intNode type constant indicating a node of typeWhileStatement.static final intNode type constant indicating a node of typeWildcardType.static final intNode type constant indicating a node of typeYieldStatement. -
Method Summary
Methods inherited from class MethodDeclaration
extraDimensions, getBody, getExtraDimensions, getName, getReceiverQualifier, getReceiverType, getReturnType, getReturnType2, isCompactConstructor, isConstructor, isVarargs, parameters, propertyDescriptors, resolveBinding, setBody, setCompactConstructor, setConstructor, setExtraDimensions, setName, setReceiverQualifier, setReceiverType, setReturnType, setReturnType2, thrownExceptions, thrownExceptionTypes, typeParametersModifier and TypeMethodDescriptionReturns the live ordered list of extra dimensions with optional annotations (added in JLS8 API).getBody()Returns the body of this method declaration, ornullif this method has no body.intReturns the number of extra array dimensions over and above the explicitly-specified return type.getName()Returns the name of the method declared in this method declaration.Returns the qualifying name, if any, for the explicit receiver ornullif not used (added in JLS8 API).Returns the receiver type explicitly declared in the method or constructor declaration (added in JLS8 API).Deprecated.In the JLS3 API, this method is replaced byMethodDeclaration.getReturnType2(), which may returnnull.Returns the return type of the method declared in this method declaration, exclusive of any extra array dimensions (added in JLS3 API).booleanReturns whether this declaration declares a constructor or a method.booleanReturns whether this declaration declares a constructor or a method.booleanReturns whether this method declaration declares a variable arity method (added in JLS3 API).Returns the live ordered list of method parameter declarations for this method declaration.static ListpropertyDescriptors(int apiLevel) Returns a list of structural property descriptors for this node type.Resolves and returns the binding for the method or constructor declared in this method or constructor declaration.voidSets or clears the body of this method declaration.voidsetCompactConstructor(boolean isCompactConstructor) Sets whether this declaration declares a compact constructor in a record or a method.voidsetConstructor(boolean isConstructor) Sets whether this declaration declares a constructor or a method.voidsetExtraDimensions(int dimensions) Deprecated.In the JLS8 API, this method is replaced byMethodDeclaration.extraDimensions()which contains a list ofDimensionnodes.voidsetName(SimpleName methodName) Sets the name of the method declared in this method declaration to the given name.voidsetReceiverQualifier(SimpleName receiverQualifier) Sets the given simple name as the qualifier for the receiver (added in JLS8 API).voidsetReceiverType(Type receiverType) Sets or clears the given type as the type of explicit receiver parameter (added in JLS8 API).voidsetReturnType(Type type) Deprecated.In the JLS3 API, this method is replaced byMethodDeclaration.setReturnType2(Type), which acceptsnull.voidsetReturnType2(Type type) Sets the return type of the method declared in this method declaration to the given type, exclusive of any extra array dimensions (added in JLS3 API).Deprecated.In the JLS8 API, this method is replaced byMethodDeclaration.thrownExceptionTypes().Returns the live ordered list of thrown exception types in this method declaration.Returns the live ordered list of type parameters of this method declaration (added in JLS3 API).Methods inherited from class BodyDeclaration
getJavadoc, getJavadocProperty, getModifiers, getModifiersProperty, modifiers, setJavadoc, setModifiersModifier and TypeMethodDescriptionReturns the doc comment node.final ChildPropertyDescriptorReturns structural property descriptor for the "javadoc" property of this node (child type:Javadoc).intReturns the modifiers explicitly specified on this declaration.Returns structural property descriptor for the "modifiers" property of this node as used in JLS3 (element type:IExtendedModifier).Returns the live ordered list of modifiers and annotations of this declaration (added in JLS3 API).voidsetJavadoc(Javadoc docComment) Sets or clears the doc comment node.voidsetModifiers(int modifiers) Deprecated.In the JLS3 API, this method is replaced byBodyDeclaration.modifiers(), which contains a list ofModifiernodes.Methods inherited from class ASTNode
accept, copySubtree, copySubtrees, delete, equals, getAST, getFlags, getLength, getLocationInParent, getNodeType, getParent, getProperty, getRoot, getStartPosition, getStructuralProperty, hashCode, nodeClassForType, properties, setFlags, setProperty, setSourceRange, setStructuralProperty, structuralPropertiesForType, subtreeBytes, subtreeMatch, toStringModifier and TypeMethodDescriptionfinal voidaccept(ASTVisitor visitor) Accepts the given visitor on a visit of the current node.static ASTNodecopySubtree(AST target, ASTNode node) Returns a deep copy of the subtree of AST nodes rooted at the given node.static ListcopySubtrees(AST target, List nodes) Returns a deep copy of the subtrees of AST nodes rooted at the given list of nodes.final voiddelete()Removes this node from its parent.final booleanTheASTNodeimplementation of thisObjectmethod uses object identity (==).final ASTgetAST()Returns this node's AST.final intgetFlags()Returns the flags associated with this node.final intReturns the length in characters of the original source file indicating where the source fragment corresponding to this node ends.Returns the location of this node within its parent, ornullif this is a root node.final intReturns an integer value identifying the type of this concrete AST node.final ASTNodeReturns this node's parent node, ornullif this is the root node.final ObjectgetProperty(String propertyName) Returns the value of the named property of this node, ornullif none.final ASTNodegetRoot()Returns the root node at or above this node; returns this node if it is a root.final intReturns the character index into the original source file indicating where the source fragment corresponding to this node begins.final ObjectReturns the value of the given structural property for this node.final inthashCode()static ClassnodeClassForType(int nodeType) Returns the node class for the corresponding node type.final MapReturns an unmodifiable table of the properties of this node with non-nullvalues.final voidsetFlags(int flags) Sets the flags associated with this node to the given value.final voidsetProperty(String propertyName, Object data) Sets the named property of this node to the given value, or tonullto clear it.final voidsetSourceRange(int startPosition, int length) Sets the source range of the original source file where the source fragment corresponding to this node was found.final voidsetStructuralProperty(StructuralPropertyDescriptor property, Object value) Sets the value of the given structural property for this node.final ListReturns a list of structural property descriptors for nodes of the same type as this node.final intReturns an estimate of the memory footprint in bytes of the entire subtree rooted at this node.final booleansubtreeMatch(ASTMatcher matcher, Object other) Returns whether the subtree rooted at the given node matches the given other object as decided by the given matcher.final StringtoString()Returns a string representation of this node suitable for debugging purposes only.
-
Method Details
-
getOnType
-
setOnType
-
MethodDeclaration.EXTRA_DIMENSIONS2_PROPERTYinstead.