org.eclipse.jpt.jpa.core.resource.java
Interface JavaResourceNode

All Superinterfaces:
Model
All Known Subinterfaces:
Access2_0Annotation, Annotation, AssociationOverride2_0Annotation, AssociationOverrideAnnotation, AssociationOverridesAnnotation, AttributeOverrideAnnotation, AttributeOverridesAnnotation, BaseColumnAnnotation, BaseEclipseLinkTypeConverterAnnotation, BaseJoinColumnAnnotation, BaseTableAnnotation, BasicAnnotation, Cacheable2_0Annotation, CollectionTable2_0Annotation, ColumnAnnotation, CompleteColumnAnnotation, ContainerAnnotation<T>, DiscriminatorColumnAnnotation, DiscriminatorValueAnnotation, EclipseLinkBasicCollectionAnnotation, EclipseLinkBasicMapAnnotation, EclipseLinkCacheAnnotation, EclipseLinkChangeTrackingAnnotation, EclipseLinkClassExtractorAnnotation2_1, EclipseLinkConversionValueAnnotation, EclipseLinkConvertAnnotation, EclipseLinkConverterAnnotation, EclipseLinkCustomizerAnnotation, EclipseLinkExistenceCheckingAnnotation, EclipseLinkJoinFetchAnnotation, EclipseLinkMutableAnnotation, EclipseLinkNamedConverterAnnotation, EclipseLinkObjectTypeConverterAnnotation, EclipseLinkPrimaryKeyAnnotation, EclipseLinkPrivateOwnedAnnotation, EclipseLinkReadOnlyAnnotation, EclipseLinkReadTransformerAnnotation, EclipseLinkStructConverterAnnotation, EclipseLinkTimeOfDayAnnotation, EclipseLinkTransformationAnnotation, EclipseLinkTransformerAnnotation, EclipseLinkTypeConverterAnnotation, EclipseLinkVariableOneToOneAnnotation, EclipseLinkWriteTransformerAnnotation, ElementCollection2_0Annotation, EmbeddableAnnotation, EmbeddedAnnotation, EmbeddedIdAnnotation, EntityAnnotation, EnumeratedAnnotation, GeneratedAnnotation, GeneratedValueAnnotation, GeneratorAnnotation, IdAnnotation, IdClassAnnotation, InheritanceAnnotation, JavaResourceAnnotatedElement, JavaResourceClassFile, JavaResourceCompilationUnit, JavaResourceNode.Root, JavaResourcePackage, JavaResourcePackageFragment, JavaResourcePackageFragmentRoot, JavaResourcePackageInfoCompilationUnit, JavaResourcePersistentAttribute, JavaResourcePersistentMember, JavaResourcePersistentType, JavaResourcePersistentType2_0, JavaResourcePersistentTypeCache, JoinColumnAnnotation, JoinColumnsAnnotation, JoinTableAnnotation, LobAnnotation, ManyToMany2_0Annotation, ManyToManyAnnotation, ManyToOne2_0Annotation, ManyToOneAnnotation, MapKeyAnnotation, MapKeyClass2_0Annotation, MapKeyColumn2_0Annotation, MapKeyEnumerated2_0Annotation, MapKeyJoinColumn2_0Annotation, MapKeyJoinColumns2_0Annotation, MapKeyTemporal2_0Annotation, MappedSuperclassAnnotation, MapsId2_0Annotation, NamedColumnAnnotation, NamedNativeQueriesAnnotation, NamedNativeQueryAnnotation, NamedQueriesAnnotation, NamedQuery2_0Annotation, NamedQueryAnnotation, NestableAnnotation, NestableAssociationOverrideAnnotation, NestableAttributeOverrideAnnotation, NestableEclipseLinkConversionValueAnnotation, NestableJoinColumnAnnotation, NestableMapKeyJoinColumnAnnotation, NestableNamedNativeQueryAnnotation, NestableNamedQueryAnnotation, NestablePrimaryKeyJoinColumnAnnotation, NestableQueryHintAnnotation, NestableSecondaryTableAnnotation, NestableUniqueConstraintAnnotation, OneToMany2_0Annotation, OneToManyAnnotation, OneToOne2_0Annotation, OneToOneAnnotation, OrderByAnnotation, OrderColumn2_0Annotation, OverrideAnnotation, OwnableRelationshipMappingAnnotation, PrimaryKeyJoinColumnAnnotation, PrimaryKeyJoinColumnsAnnotation, QueryAnnotation, QueryHintAnnotation, ReferenceTableAnnotation, RelationshipMapping2_0Annotation, RelationshipMappingAnnotation, SecondaryTableAnnotation, SecondaryTablesAnnotation, SequenceGenerator2_0Annotation, SequenceGeneratorAnnotation, SingleRelationshipMappingAnnotation, StaticMetamodelAnnotation, TableAnnotation, TableGeneratorAnnotation, TemporalAnnotation, TransientAnnotation, UniqueConstraintAnnotation, VersionAnnotation

public interface JavaResourceNode
extends Model

Common interface for Java resource nodes (source code or binary).

Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Since:
2.0
Version:
2.3

Nested Class Summary
static interface JavaResourceNode.Root
          Root of Java resource model containment hierarchy.
 
Method Summary
 org.eclipse.core.resources.IFile getFile()
          Return the Eclipse file that contains the Java resource node (typically either a Java source code file or a JAR).
 JavaResourceCompilationUnit getJavaResourceCompilationUnit()
          Return the [source] node's root (the compilation unit).
 JavaResourceNode getParent()
          Return the node's parent node.
 JavaResourceNode.Root getRoot()
          Return the root of the Java resource containment hierarchy (typically either a compilation unit or a package fragment root).
 TextRange getTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
          Return the [source] node's text range in the compilation unit's file.
 void initialize(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
          Initialize the [source] node from the specified AST.
 void synchronizeWith(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
          Synchronize the [source] node with the specified AST.
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener
 

Method Detail

getParent

JavaResourceNode getParent()
Return the node's parent node.


getFile

org.eclipse.core.resources.IFile getFile()
Return the Eclipse file that contains the Java resource node (typically either a Java source code file or a JAR).


getRoot

JavaResourceNode.Root getRoot()
Return the root of the Java resource containment hierarchy (typically either a compilation unit or a package fragment root).


getJavaResourceCompilationUnit

JavaResourceCompilationUnit getJavaResourceCompilationUnit()
Return the [source] node's root (the compilation unit).


getTextRange

TextRange getTextRange(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return the [source] node's text range in the compilation unit's file.


initialize

void initialize(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Initialize the [source] node from the specified AST.


synchronizeWith

void synchronizeWith(org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Synchronize the [source] node with the specified AST.