oracle.jdeveloper.jot
Interface JotPackageStatement
- All Superinterfaces:
- JotCodeElement, JotElement, JotFileElement
- public interface JotPackageStatement
- extends JotFileElement
JotPackageStatement
represents the package statement in a
JotFile
representing source.
Method Summary |
java.lang.String |
getPackage()
|
void |
setPackage(java.lang.String newPackage)
Changes the package statement. |
Methods inherited from interface oracle.jdeveloper.jot.JotCodeElement |
addPrecedingComment, childrenContainErrors, delete, getContainingJotFile, getLeftWhitespace, getLength, getRightWhitespace, isInError, isSource, setLeftWhitespace, setRightWhitespace |
Methods inherited from interface oracle.jdeveloper.jot.JotElement |
getChildren, getContainedElements, getElementName, getElementType, getEndOffset, getID, getJotWorkArea, getParent, getStartOffset, isExistent, isReadOnly, isStructureKnown, setParent |
getPackage
public java.lang.String getPackage()
throws JotInvalidElementException
- Returns:
- the package.
- Throws:
JotInvalidElementException
setPackage
public void setPackage(java.lang.String newPackage)
throws JotInvalidElementException
- Changes the package statement. It is not recommended clients use this facility
to perform this operation without allowing for the Jot's desire to see
files contained on paths resembling their package statements.
- Parameters:
newPackage
- the new package, ie "oracle.jdeveloper.jot"
- Throws:
JotInvalidElementException
Copyright © 1997, 2004, Oracle. All rights reserved.