public class CtInterfaceImpl<T> extends CtTypeImpl<T> implements CtInterface<T>
ERROR_MESSAGE_TO_STRING, LOGGER, parent
INNERTTYPE_SEPARATOR, NAME_UNKNOWN
Constructor and Description |
---|
CtInterfaceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
accept(CtVisitor visitor)
Accepts a visitor
|
CtInterface<T> |
clone()
Clone the element which calls this method in a new object.
|
Collection<CtExecutableReference<?>> |
getDeclaredExecutables()
Gets the executables declared by this type if applicable.
|
boolean |
isInterface()
Returns true if this type is an interface.
|
boolean |
isSubtypeOf(CtTypeReference<?> type)
Returns true if the referenced type is a sub-type of the given type.
|
<C extends CtType<T>> |
setSuperclass(CtTypeReference<?> superClass)
Sets the superclass type.
|
addField, addField, addFieldAtTop, addFormalCtTypeParameter, addMethod, addModifier, addNestedType, addSuperInterface, addTypeMember, addTypeMemberAt, compileAndReplaceSnippets, copyType, getActualClass, getAllExecutables, getAllFields, getAllMethods, getDeclaredField, getDeclaredFields, getDeclaredOrInheritedField, getDeclaringType, getExtendedModifiers, getField, getFields, getFormalCtTypeParameters, getMethod, getMethod, getMethods, getMethodsAnnotatedWith, getMethodsByName, getModifiers, getNestedType, getNestedTypes, getPackage, getQualifiedName, getReference, getSuperclass, getSuperInterfaces, getTopLevelType, getTypeErasure, getTypeMembers, getUsedTypes, getVisibility, hasMethod, hasModifier, hasSameParameters, isAbstract, isAnnotationType, isAnonymous, isClass, isEnum, isFinal, isGenerics, isLocalType, isPrimitive, isPrivate, isProtected, isPublic, isShadow, isStatic, isTopLevel, removeField, removeFormalCtTypeParameter, removeMethod, removeModifier, removeNestedType, removeSuperInterface, removeTypeMember, setExtendedModifiers, setFields, setFormalCtTypeParameters, setMethods, setModifiers, setNestedTypes, setShadow, setSuperInterfaces, setTypeMembers, setVisibility
getSimpleName, setSimpleName
addAnnotation, addComment, asIterable, delete, descendantIterator, emptyList, emptySet, equals, filterChildren, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDocComment, getElements, getFactory, getMetadata, getMetadataKeys, getOriginalSourceFragment, getParent, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hashCode, hasParent, isImplicit, isParentInitialized, map, map, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setFactory, setImplicit, setParent, setPosition, setPositions, setValueByRole, toString, unmodifiableList, updateAllParentsBelow
finalize, getClass, notify, notifyAll, wait, wait, wait
addField, addField, addFieldAtTop, addMethod, addNestedType, addSuperInterface, addTypeMember, addTypeMemberAt, compileAndReplaceSnippets, copyType, getActualClass, getAllMethods, getField, getFields, getMethod, getMethod, getMethods, getMethodsAnnotatedWith, getMethodsByName, getNestedType, getNestedTypes, getPackage, getReference, getSimpleName, getTypeMembers, getUsedTypes, hasMethod, isTopLevel, removeField, removeMethod, removeNestedType, removeSuperInterface, removeTypeMember, setFields, setMethods, setNestedTypes, setSuperInterfaces, setTypeMembers
getAllExecutables, getAllFields, getDeclaredField, getDeclaredFields, getDeclaredOrInheritedField, getModifiers, getQualifiedName, getSuperclass, getSuperInterfaces, getTypeErasure, isAnnotationType, isAnonymous, isClass, isEnum, isGenerics, isLocalType, isPrimitive
addFormalCtTypeParameter, getFormalCtTypeParameters, removeFormalCtTypeParameter, setFormalCtTypeParameters
getDeclaringType, getTopLevelType
addModifier, getExtendedModifiers, getModifiers, getVisibility, hasModifier, isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic, removeModifier, setExtendedModifiers, setModifiers, setVisibility
setSimpleName
addAnnotation, addComment, asIterable, delete, descendantIterator, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDocComment, getElements, getMetadata, getMetadataKeys, getParent, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hasParent, isImplicit, isParentInitialized, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setImplicit, setParent, setPosition, setPositions, setValueByRole, updateAllParentsBelow
getFactory, setFactory
filterChildren, map, map
getOriginalSourceFragment
isShadow, setShadow
public void accept(CtVisitor visitor)
CtVisitable
accept
in interface CtVisitable
public boolean isSubtypeOf(CtTypeReference<?> type)
CtTypeInformation
isSubtypeOf
in interface CtTypeInformation
public boolean isInterface()
CtTypeInformation
isInterface
in interface CtTypeInformation
isInterface
in class CtTypeImpl<T>
public Collection<CtExecutableReference<?>> getDeclaredExecutables()
CtTypeInformation
getDeclaredExecutables
in interface CtTypeInformation
getDeclaredExecutables
in class CtTypeImpl<T>
public CtInterface<T> clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.clone
in interface CtElement
clone
in interface CtInterface<T>
clone
in interface CtNamedElement
clone
in interface CtType<T>
clone
in class CtTypeImpl<T>
public <C extends CtType<T>> C setSuperclass(CtTypeReference<?> superClass)
CtType
setSuperclass
in interface CtInterface<T>
setSuperclass
in interface CtType<T>
setSuperclass
in class CtTypeImpl<T>
Copyright © 2007–2019 Inria. All rights reserved.