org.springframework.roo.classpath.details
Class DefaultImportMetadata

java.lang.Object
  extended by org.springframework.roo.model.AbstractCustomDataAccessorProvider
      extended by org.springframework.roo.classpath.details.AbstractIdentifiableJavaStructureProvider
          extended by 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

Method Summary
 CommentStructure getCommentStructure()
           
 org.springframework.roo.model.JavaPackage getImportPackage()
           
 org.springframework.roo.model.JavaType getImportType()
           
 boolean isAsterisk()
           
 boolean isStatic()
           
 void setCommentStructure(CommentStructure commentStructure)
           
 String toString()
           
 
Methods inherited from class org.springframework.roo.classpath.details.AbstractIdentifiableJavaStructureProvider
getDeclaredByMetadataId, getModifier
 
Methods inherited from class org.springframework.roo.model.AbstractCustomDataAccessorProvider
getCustomData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.roo.classpath.details.IdentifiableJavaStructure
getDeclaredByMetadataId, getModifier
 
Methods inherited from interface org.springframework.roo.model.CustomDataAccessor
getCustomData
 

Method Detail

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.