Dali Provisional API
Release 3.2

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

All Superinterfaces:
Model
All Known Subinterfaces:
Access2_0Annotation, Annotation, AssociationOverride2_0Annotation, AssociationOverrideAnnotation, AttributeOverrideAnnotation, BaseColumnAnnotation, BaseEnumeratedAnnotation, BaseJoinColumnAnnotation, BaseTableAnnotation, BaseTemporalAnnotation, BasicAnnotation, Cacheable2_0Annotation, CollectionTable2_0Annotation, ColumnAnnotation, CompleteColumnAnnotation, CompleteJoinColumnAnnotation, DbGeneratorAnnotation, DiscriminatorColumnAnnotation, DiscriminatorValueAnnotation, EclipseLinkArrayAnnotation2_3, EclipseLinkBaseConvertAnnotation, EclipseLinkBaseTypeConverterAnnotation, EclipseLinkBasicCollectionAnnotation, EclipseLinkBasicMapAnnotation, EclipseLinkCacheAnnotation, EclipseLinkChangeTrackingAnnotation, EclipseLinkClassExtractorAnnotation2_1, EclipseLinkConversionValueAnnotation, EclipseLinkConvertAnnotation, EclipseLinkConverterAnnotation, EclipseLinkCustomizerAnnotation, EclipseLinkExistenceCheckingAnnotation, EclipseLinkJoinFetchAnnotation, EclipseLinkMapKeyConvertAnnotation2_0, EclipseLinkMultitenantAnnotation2_3, EclipseLinkMutableAnnotation, EclipseLinkNamedConverterAnnotation, EclipseLinkObjectTypeConverterAnnotation, EclipseLinkPrimaryKeyAnnotation, EclipseLinkPrivateOwnedAnnotation, EclipseLinkReadOnlyAnnotation, EclipseLinkReadTransformerAnnotation, EclipseLinkStructConverterAnnotation, EclipseLinkStructureAnnotation2_3, EclipseLinkTenantDiscriminatorColumnAnnotation2_3, EclipseLinkTimeOfDayAnnotation, EclipseLinkTransformationAnnotation, EclipseLinkTransformerAnnotation, EclipseLinkTypeConverterAnnotation, EclipseLinkUuidGeneratorAnnotation2_4, EclipseLinkVariableOneToOneAnnotation, EclipseLinkWriteTransformerAnnotation, ElementCollection2_0Annotation, EmbeddableAnnotation, EmbeddedAnnotation, EmbeddedIdAnnotation, EntityAnnotation, EnumeratedAnnotation, GeneratedAnnotation, GeneratedValueAnnotation, GeneratorAnnotation, IdAnnotation, IdClassAnnotation, InheritanceAnnotation, JavaResourceAbstractType, JavaResourceAnnotatedElement, JavaResourceAttribute, JavaResourceClassFile, JavaResourceCompilationUnit, JavaResourceEnum, JavaResourceEnumConstant, JavaResourceField, JavaResourceMember, JavaResourceMethod, JavaResourceNode.Root, JavaResourcePackage, JavaResourcePackageFragment, JavaResourcePackageFragmentRoot, JavaResourcePackageInfoCompilationUnit, JavaResourceType, JavaResourceTypeCache, JaxbBasicSchemaComponentAnnotation, JoinColumnAnnotation, JoinTableAnnotation, LobAnnotation, ManyToMany2_0Annotation, ManyToManyAnnotation, ManyToOne2_0Annotation, ManyToOneAnnotation, MapKeyAnnotation, MapKeyClass2_0Annotation, MapKeyColumn2_0Annotation, MapKeyEnumerated2_0Annotation, MapKeyJoinColumn2_0Annotation, MapKeyTemporal2_0Annotation, MappedSuperclassAnnotation, MapsId2_0Annotation, NamedColumnAnnotation, NamedNativeQueryAnnotation, NamedQuery2_0Annotation, NamedQueryAnnotation, NestableAnnotation, OneToMany2_0Annotation, OneToManyAnnotation, OneToOne2_0Annotation, OneToOneAnnotation, OrderByAnnotation, OrderColumn2_0Annotation, OverrideAnnotation, OwnableRelationshipMappingAnnotation, OwningRelationshipMapping2_0Annotation, PrimaryKeyJoinColumnAnnotation, QNameAnnotation, QueryAnnotation, QueryHintAnnotation, ReferenceTableAnnotation, RelationshipMapping2_0Annotation, RelationshipMappingAnnotation, SecondaryTableAnnotation, SequenceGenerator2_0Annotation, SequenceGeneratorAnnotation, SingleRelationshipMappingAnnotation, StaticMetamodelAnnotation, TableAnnotation, TableGeneratorAnnotation, TemporalAnnotation, TransientAnnotation, UniqueConstraintAnnotation, VersionAnnotation, XmlAccessorOrderAnnotation, XmlAccessorTypeAnnotation, XmlAnyAttributeAnnotation, XmlAnyElementAnnotation, XmlAttachmentRefAnnotation, XmlAttributeAnnotation, XmlCDATAAnnotation, XmlDiscriminatorNodeAnnotation, XmlDiscriminatorValueAnnotation, XmlElementAnnotation, XmlElementDeclAnnotation, XmlElementRefAnnotation, XmlElementRefsAnnotation, XmlElementsAnnotation, XmlElementWrapperAnnotation, XmlEnumAnnotation, XmlEnumValueAnnotation, XmlIDAnnotation, XmlIDREFAnnotation, XmlInlineBinaryDataAnnotation, XmlInverseReferenceAnnotation, XmlJavaTypeAdapterAnnotation, XmlJoinNodeAnnotation, XmlKeyAnnotation, XmlListAnnotation, XmlMimeTypeAnnotation, XmlMixedAnnotation, XmlNsAnnotation, XmlPathAnnotation, XmlRegistryAnnotation, XmlRootElementAnnotation, XmlSchemaAnnotation, XmlSchemaTypeAnnotation, XmlSeeAlsoAnnotation, XmlTransformationAnnotation, XmlTransientAnnotation, XmlTypeAnnotation, XmlValueAnnotation

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:
3.0

Nested Class Summary
static class JavaResourceNode.FileTransformer
           
static interface JavaResourceNode.Root
          Root of Java resource model containment hierarchy.
 
Field Summary
static org.eclipse.jpt.common.utility.transformer.Transformer<JavaResourceNode,IFile> FILE_TRANSFORMER
           
 
Method Summary
 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()
          Return the [source] node's text range in the compilation unit's file.
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener
 

Field Detail

FILE_TRANSFORMER

static final org.eclipse.jpt.common.utility.transformer.Transformer<JavaResourceNode,IFile> FILE_TRANSFORMER
Method Detail

getParent

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


getFile

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()
Return the [source] node's text range in the compilation unit's file.


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.