Package spoon.support.reflect.cu
Class CompilationUnitImpl
java.lang.Object
spoon.support.reflect.declaration.CtElementImpl
spoon.support.reflect.declaration.CtCompilationUnitImpl
spoon.support.reflect.cu.CompilationUnitImpl
- All Implemented Interfaces:
Serializable
,Cloneable
,FactoryAccessor
,CompilationUnit
,SourcePositionHolder
,CtCompilationUnit
,CtElement
,CtQueryable
,CtVisitable
- Direct Known Subclasses:
NoSourcePosition.NullCompilationUnit
Implements a compilation unit. In Java, a compilation unit can contain only one
public type declaration and other secondary types declarations (not public).
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface spoon.reflect.declaration.CtCompilationUnit
CtCompilationUnit.UNIT_TYPE
-
Field Summary
Fields inherited from class spoon.support.reflect.declaration.CtElementImpl
ERROR_MESSAGE_TO_STRING, factory, LOGGER, parent
-
Constructor Summary
-
Method Summary
Methods inherited from class spoon.support.reflect.declaration.CtCompilationUnitImpl
accept, addDeclaredType, addDeclaredTypeReference, clone, getBinaryFiles, getDeclaredModule, getDeclaredModuleReference, getDeclaredPackage, getDeclaredTypeReferences, getDeclaredTypes, getFile, getImports, getLineSeparatorPositions, getMainType, getOrCreatePartialSourcePosition, getOriginalSourceCode, getOriginalSourceFragment, getPackageDeclaration, getParent, getPosition, getUnitType, setDeclaredModule, setDeclaredModuleReference, setDeclaredPackage, setDeclaredTypeReferences, setDeclaredTypes, setFile, setImports, setLineSeparatorPositions, setPackageDeclaration, setParent, setPosition, toString
Methods inherited from class spoon.support.reflect.declaration.CtElementImpl
addAnnotation, addComment, asIterable, comment, delete, descendantIterator, emptyList, emptySet, equals, filterChildren, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getFactory, getMetadata, getMetadataKeys, getParent, getParent, getPath, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hashCode, hasParent, isImplicit, isParentInitialized, map, map, prettyprint, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setFactory, setImplicit, setPositions, setValueByRole, toStringDebug, unmodifiableList, updateAllParentsBelow
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface spoon.reflect.declaration.CtCompilationUnit
addDeclaredType, addDeclaredTypeReference, clone, getBinaryFiles, getDeclaredModule, getDeclaredModuleReference, getDeclaredPackage, getDeclaredTypeReferences, getDeclaredTypes, getFile, getImports, getLineSeparatorPositions, getMainType, getOriginalSourceCode, getPackageDeclaration, getParent, getUnitType, setDeclaredModule, setDeclaredModuleReference, setDeclaredPackage, setDeclaredTypeReferences, setDeclaredTypes, setFile, setImports, setLineSeparatorPositions, setPackageDeclaration, setParent, setPosition
Methods inherited from interface spoon.reflect.declaration.CtElement
addAnnotation, addComment, asIterable, delete, descendantIterator, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getMetadata, getMetadataKeys, getOriginalSourceFragment, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hasParent, isImplicit, isParentInitialized, prettyprint, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setImplicit, setPositions, setValueByRole, toString, toStringDebug, updateAllParentsBelow
Methods inherited from interface spoon.reflect.visitor.chain.CtQueryable
filterChildren, map, map
Methods inherited from interface spoon.reflect.visitor.CtVisitable
accept
Methods inherited from interface spoon.processing.FactoryAccessor
getFactory, setFactory
-
Constructor Details
-
CompilationUnitImpl
public CompilationUnitImpl()
-