Interface CodePathElement
- All Superinterfaces:
CodeElement, CodeItem, CodeItemWithComment, CodeItemWithQualifiedName, CodeItemWithQualifiedNameAndParentPackage, CodeMutable, CodeMutableItem, CodeMutableItemWithComment, CodeNode, CodeNodeItem, CodeWithContext
- All Known Subinterfaces:
CodeFile, CodePackage
Abstract interface for any top-level
CodeElement such as CodePackage or CodeFile. It reflects
code structure.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
Field Summary
Fields inherited from interface CodeItem
DEFAULT_INDENT, DEFAULT_NEWLINE -
Method Summary
Methods inherited from interface CodeElement
copy, getAnnotations, getDoc, removeFromParentMethods inherited from interface CodeItem
getLanguage, getSourceCode, write, write, write, write, write, writeMethods inherited from interface CodeItemWithComment
getCommentMethods inherited from interface CodeItemWithQualifiedName
getSimpleNameMethods inherited from interface CodeItemWithQualifiedNameAndParentPackage
getParentPackage, getQualifiedNameMethods inherited from interface CodeMutable
isImmutable, isMutableMethods inherited from interface CodeMutableItem
getReflectiveObject, setImmutableMethods inherited from interface CodeMutableItemWithComment
setCommentMethods inherited from interface CodeNodeItem
copyMethods inherited from interface CodeWithContext
getContext, getSource
-
Method Details
-
getParent
CodeContainer getParent()- Specified by:
getParentin interfaceCodeNode- Returns:
- the parent of this
CodeNode. May only benullfor instances ofCodeContext.
-
isFile
boolean isFile()- Returns:
trueif this is aCodeFile,falseotherwise (if aCodePackage).
-