diff options
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/tag/ITagReader.java')
-rw-r--r-- | core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/tag/ITagReader.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/tag/ITagReader.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/tag/ITagReader.java new file mode 100644 index 00000000000..fb9d6ca3f58 --- /dev/null +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/tag/ITagReader.java @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2013 QNX Software Systems and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + */ + +package org.eclipse.cdt.core.dom.ast.tag; + + +/** + * An interface that provides read-only access to the tags associated with a particular binding. + * + * @see ITag + * @see ITagService + * @since 5.5 + */ +public interface ITagReader +{ + /** + * Look for a tag for the receiver, returns null if there is no such tag. + * + * @param id A string that uniquely identifies the tag to be returned. This value was provided by the contributor + * when the tag was created (see {@link ITagWriter#createTag(String, int)}). + */ + public ITag getTag( String id ); + + /** + * Return all tags known to the receiver. Does not return null. + */ + public Iterable<ITag> getTags(); +} |