You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MemberDocImpl.java 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /* -*- Mode: JDE; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  2. *
  3. * This file is part of the debugger and core tools for the AspectJ(tm)
  4. * programming language; see http://aspectj.org
  5. *
  6. * The contents of this file are subject to the Mozilla Public License
  7. * Version 1.1 (the "License"); you may not use this file except in
  8. * compliance with the License. You may obtain a copy of the License at
  9. * either http://www.mozilla.org/MPL/ or http://aspectj.org/MPL/.
  10. *
  11. * Software distributed under the License is distributed on an "AS IS" basis,
  12. * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  13. * for the specific language governing rights and limitations under the
  14. * License.
  15. *
  16. * The Original Code is AspectJ.
  17. *
  18. * The Initial Developer of the Original Code is Xerox Corporation. Portions
  19. * created by Xerox Corporation are Copyright (C) 1999-2002 Xerox Corporation.
  20. * All Rights Reserved.
  21. */
  22. package org.aspectj.tools.ajdoc;
  23. import org.aspectj.ajdoc.IntroducedDoc;
  24. import org.aspectj.ajdoc.MemberDoc;
  25. public abstract class MemberDocImpl
  26. extends ProgramElementDocImpl
  27. implements MemberDoc {
  28. /**
  29. * The introduction that introduces this member
  30. * to its enclosing type.
  31. */
  32. private IntroducedDoc introduced;
  33. public MemberDocImpl(com.sun.javadoc.ClassDoc containingClass) {
  34. super(containingClass);
  35. }
  36. /**
  37. * Returns whether the passed in Object is equals
  38. * based on type <b>names</b> and the name
  39. * of the declaration.
  40. *
  41. * @return <code>true</code> if the passed in Object
  42. * is equal to this based on type names
  43. * and field names.
  44. */
  45. public abstract boolean weakEquals(Object other);
  46. /**
  47. * Sets this member's introduction.
  48. *
  49. * @param introduced the new introduction.
  50. */
  51. protected void setIntroduced(IntroducedDoc introduced) {
  52. this.introduced = introduced;
  53. }
  54. /**
  55. * Returns the introduction that introduced this member onto
  56. * its enclosing type -- this value may be <code>null</code>
  57. * if the member wasn't introduced.
  58. *
  59. * @return an IntroducedDoc representing the introduction
  60. * that introduced this member onto its enclosing
  61. * type. The return value may be <code>null</code>.
  62. */
  63. public IntroducedDoc introduced() {
  64. return introduced;
  65. }
  66. /**
  67. * Returns <code>true</code>if this code is <i>synthetic</i>.
  68. *
  69. * @return <code>true</code>if this code is <i>synthetic</i>.
  70. */
  71. public boolean isSynthetic() {
  72. return (!dec().isLanguageVisible());
  73. }
  74. }