Eclipse Platform
2.1

org.eclipse.jface.text.source
Interface IAnnotationAccess

All Known Implementing Classes:
DefaultMarkerAnnotationAccess

public interface IAnnotationAccess

An annotation access provides access to information that is not available via the API of Annotation. Clients usually implement this interface.

Since:
2.1
See Also:
Annotation

Method Summary
 Object getType(Annotation annotation)
          Returns the type of the given annotation.
 boolean isMultiLine(Annotation annotation)
          Returns whether the given annotation spans multiple lines.
 boolean isTemporary(Annotation annotation)
          Returns whether the given annotation is temporary rather than persistent.
 

Method Detail

getType

public Object getType(Annotation annotation)
Returns the type of the given annotation.
Parameters:
annotation - the annotation
Returns:
the type of the given annotation or null if it has none.

isMultiLine

public boolean isMultiLine(Annotation annotation)
Returns whether the given annotation spans multiple lines.
Parameters:
annotation - the annotation
Returns:
true if the annotation spans multiple lines, false otherwise

isTemporary

public boolean isTemporary(Annotation annotation)
Returns whether the given annotation is temporary rather than persistent.
Parameters:
annotation - the annotation
Returns:
true if the annotation is temporary, false otherwise

Eclipse Platform
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.