org.springframework.roo.classpath.details
Class DefaultImportMetadata
java.lang.Object
org.springframework.roo.model.AbstractCustomDataAccessorProvider
org.springframework.roo.classpath.details.AbstractIdentifiableJavaStructureProvider
org.springframework.roo.classpath.details.DefaultImportMetadata
- All Implemented Interfaces:
- CommentedJavaStructure, IdentifiableJavaStructure, ImportMetadata, org.springframework.roo.model.CustomDataAccessor
public class DefaultImportMetadata
- extends AbstractIdentifiableJavaStructureProvider
- implements ImportMetadata, CommentedJavaStructure
Default implementation of ImportMetadata.
- Since:
- 1.1.1
- Author:
- James Tyrrell
| Methods inherited from class org.springframework.roo.model.AbstractCustomDataAccessorProvider |
getCustomData |
| Methods inherited from interface org.springframework.roo.model.CustomDataAccessor |
getCustomData |
getImportPackage
public org.springframework.roo.model.JavaPackage getImportPackage()
- Specified by:
getImportPackage in interface ImportMetadata
- Returns:
- the import package (null if type import)
getImportType
public org.springframework.roo.model.JavaType getImportType()
- Specified by:
getImportType in interface ImportMetadata
- Returns:
- the import type (null if package import)
isAsterisk
public boolean isAsterisk()
- Specified by:
isAsterisk in interface ImportMetadata
- Returns:
- true if the import was a wildcard (eg "import com.foo.*;")
isStatic
public boolean isStatic()
- Specified by:
isStatic in interface ImportMetadata
- Returns:
- true if the import used the "static" keyword
toString
public String toString()
- Overrides:
toString in class Object
getCommentStructure
public CommentStructure getCommentStructure()
- Specified by:
getCommentStructure in interface CommentedJavaStructure
setCommentStructure
public void setCommentStructure(CommentStructure commentStructure)
- Specified by:
setCommentStructure in interface CommentedJavaStructure
Copyright © 2009–2015. All rights reserved.