2 * Copyright (C) 2008 The Android Open Source Project
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 public abstract class DocInfo
19 public DocInfo(String rawCommentText, SourcePositionInfo sp)
21 mRawCommentText = rawCommentText;
25 public boolean isHidden()
27 return comment().isHidden();
30 public boolean isDocOnly() {
31 return comment().isDocOnly();
34 public String getRawCommentText()
36 return mRawCommentText;
39 public Comment comment()
41 if (mComment == null) {
42 mComment = new Comment(mRawCommentText, parent(), mPosition);
47 public SourcePositionInfo position()
52 public abstract ContainerInfo parent();
54 public void setSince(String since) {
58 public String getSince() {
62 private String mRawCommentText;
64 SourcePositionInfo mPosition;
65 private String mSince;