org.springframework.roo.classpath.details
Interface ImportMetadata

All Superinterfaces:
CommentedJavaStructure, org.springframework.roo.model.CustomDataAccessor, IdentifiableJavaStructure
All Known Implementing Classes:
DefaultImportMetadata

public interface ImportMetadata
extends IdentifiableJavaStructure, CommentedJavaStructure

Metadata concerning a particular import.

As always with metadata types, instances of this class are immutable once constructed.

Since:
1.1.1
Author:
James Tyrrell

Method Summary
 org.springframework.roo.model.JavaPackage getImportPackage()
           
 org.springframework.roo.model.JavaType getImportType()
           
 boolean isAsterisk()
           
 boolean isStatic()
           
 
Methods inherited from interface org.springframework.roo.classpath.details.IdentifiableJavaStructure
getDeclaredByMetadataId, getModifier
 
Methods inherited from interface org.springframework.roo.model.CustomDataAccessor
getCustomData
 
Methods inherited from interface org.springframework.roo.classpath.details.comments.CommentedJavaStructure
getCommentStructure, setCommentStructure
 

Method Detail

getImportPackage

org.springframework.roo.model.JavaPackage getImportPackage()
Returns:
the import package (null if type import)

getImportType

org.springframework.roo.model.JavaType getImportType()
Returns:
the import type (null if package import)

isAsterisk

boolean isAsterisk()
Returns:
true if the import was a wildcard (eg "import com.foo.*;")

isStatic

boolean isStatic()
Returns:
true if the import used the "static" keyword


Copyright © 2009–2015. All rights reserved.