com.borland.jbuilder.jot
Interface JotImport

All Superinterfaces:
JotMarker

public interface JotImport
extends JotMarker

This interface represents an import declaration. See section 7.5 in the Java Language Specification for more information.


Method Summary
 java.lang.String getClassName()
          Returns the short class name of the imported package or class.
 java.lang.String getName()
          Returns the full name of the imported package or class.
 java.lang.String getPackage()
          Returns the package of the imported package or class.
 boolean refersTo(java.lang.String thatIdent)
          Returns true if the specified class name is included in the set of classes imported by this declaration.
 void setClassName(java.lang.String className)
          Modifies the short class name of the imported package or class.
 void setName(java.lang.String fullName)
          Sets the full name of the imported package or class.
 void setPackage(java.lang.String packageName)
          Changes the package of the imported package or class.
 
Methods inherited from interface com.borland.jbuilder.jot.JotMarker
addUserData, getEndPosition, getStartPosition, getUserData
 

Method Detail

getName

public java.lang.String getName()
Returns the full name of the imported package or class.

Some example return values might be:


setName

public void setName(java.lang.String fullName)
Sets the full name of the imported package or class.

Some example arguments might be:


getPackage

public java.lang.String getPackage()
Returns the package of the imported package or class.

setPackage

public void setPackage(java.lang.String packageName)
Changes the package of the imported package or class. The short class name will remain the same.

getClassName

public java.lang.String getClassName()
Returns the short class name of the imported package or class. If the declaration imports a package, then the return value will be "*".

setClassName

public void setClassName(java.lang.String className)
Modifies the short class name of the imported package or class.

refersTo

public boolean refersTo(java.lang.String thatIdent)
Returns true if the specified class name is included in the set of classes imported by this declaration.