org.acm.seguin.summary
Class ImportSummary

java.lang.Object
  extended by org.acm.seguin.summary.Summary
      extended by org.acm.seguin.summary.ImportSummary
All Implemented Interfaces:
java.io.Serializable, net.sourceforge.jrefactory.ast.ModifierHolder

public class ImportSummary
extends Summary

Stores the summary of an import

Author:
Chris Seguin
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.acm.seguin.summary.Summary
modifiers
 
Fields inherited from interface net.sourceforge.jrefactory.ast.ModifierHolder
ABSTRACT, EXPLICIT, FINAL, INTERFACE, names, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICTFP, SYNCHRONIZED, TRANSIENT, VOLATILE
 
Constructor Summary
ImportSummary(Summary parentSummary, net.sourceforge.jrefactory.ast.ASTImportDeclaration importDecl)
          Create an import summary
 
Method Summary
 java.lang.Object accept(SummaryVisitor visitor, java.lang.Object data)
          Provide method to visit a node
 java.lang.String getName()
          Gets the name attribute of the ImportSummary object
 PackageSummary getPackage()
          Get the package
 java.lang.String getType()
          Get the type
 java.lang.String toString()
          Description of the Method
 
Methods inherited from class org.acm.seguin.summary.Summary
addModifier, copyModifiers, getDeclarationLine, getEndLine, getModifiers, getModifiersString, getParent, getStartLine, isAbstract, isExplicit, isFinal, isInterface, isNative, isPackage, isPrivate, isProtected, isPublic, isStatic, isStrictFP, isSynchronized, isTransient, isVolatile, setAbstract, setAbstract, setCode, setEndLine, setFinal, setModifiers, setPrivate, setPrivate, setProtected, setProtected, setPublic, setPublic, setStartLine, setStatic, setStatic, setStrict, setSynchronized, setSynchronized, toStandardOrderString, toStringAlphabetical
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImportSummary

public ImportSummary(Summary parentSummary,
                     net.sourceforge.jrefactory.ast.ASTImportDeclaration importDecl)
Create an import summary

Parameters:
parentSummary - the parent summary
importDecl - the import declaration
Method Detail

getPackage

public PackageSummary getPackage()
Get the package

Returns:
the package summary

getType

public java.lang.String getType()
Get the type

Returns:
the name of the type or null if this represents the entire package

accept

public java.lang.Object accept(SummaryVisitor visitor,
                               java.lang.Object data)
Provide method to visit a node

Overrides:
accept in class Summary
Parameters:
visitor - the visitor
data - the data for the visit
Returns:
some new data

toString

public java.lang.String toString()
Description of the Method

Overrides:
toString in class java.lang.Object
Returns:
Description of the Return Value

getName

public java.lang.String getName()
Gets the name attribute of the ImportSummary object

Specified by:
getName in class Summary
Returns:
The name value