diff options
author | Jim Des Rivieres | 2004-11-08 18:49:21 +0000 |
---|---|---|
committer | Jim Des Rivieres | 2004-11-08 18:49:21 +0000 |
commit | 2a41725ca5a58d03d478b150bfd5c62054f2b020 (patch) | |
tree | a86e542cc13299230b65d87e6cf5412110667dc1 /org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BodyDeclaration.java | |
parent | 753a6a1eefe385cd875ac1931b6199ee406e2292 (diff) | |
download | eclipse.jdt.core-2a41725ca5a58d03d478b150bfd5c62054f2b020.tar.gz eclipse.jdt.core-2a41725ca5a58d03d478b150bfd5c62054f2b020.tar.xz eclipse.jdt.core-2a41725ca5a58d03d478b150bfd5c62054f2b020.zip |
Add methods to expose reified inheritable properties on abstract node classes (bug 77359)
Diffstat (limited to 'org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BodyDeclaration.java')
-rw-r--r-- | org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BodyDeclaration.java | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BodyDeclaration.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BodyDeclaration.java index 8b4d8d6459..28b614bc32 100644 --- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BodyDeclaration.java +++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BodyDeclaration.java @@ -80,7 +80,7 @@ public abstract class BodyDeclaration extends ASTNode { /** * Returns structural property descriptor for the "modifiers" property - * of this node. + * of this node as used in JLS2. * * @return the property descriptor */ @@ -88,13 +88,25 @@ public abstract class BodyDeclaration extends ASTNode { /** * Returns structural property descriptor for the "modifiers" property - * of this node. + * of this node as used in JLS3. * * @return the property descriptor */ abstract ChildListPropertyDescriptor internalModifiers2Property(); /** + * Returns structural property descriptor for the "modifiers" property + * of this node as used in JLS3. + * + * @return the property descriptor + * @since 3.1 + */ + public final ChildListPropertyDescriptor getModifiersProperty() { + // important: return property for AST.JLS3 + return internalModifiers2Property(); + } + + /** * Returns structural property descriptor for the "javadoc" property * of this node. * @@ -103,6 +115,17 @@ public abstract class BodyDeclaration extends ASTNode { abstract ChildPropertyDescriptor internalJavadocProperty(); /** + * Returns structural property descriptor for the "javadoc" property + * of this node. + * + * @return the property descriptor + * @since 3.1 + */ + public final ChildPropertyDescriptor getJavadocProperty() { + return internalJavadocProperty(); + } + + /** * Creates and returns a structural property descriptor for the * "javadoc" property declared on the given concrete node type. * |