public final class ClassOrInterfaceDeclaration extends TypeDeclaration<ClassOrInterfaceDeclaration> implements NodeWithImplements<ClassOrInterfaceDeclaration>, NodeWithExtends<ClassOrInterfaceDeclaration>, NodeWithTypeParameters<ClassOrInterfaceDeclaration>, NodeWithAbstractModifier<ClassOrInterfaceDeclaration>, NodeWithFinalModifier<ClassOrInterfaceDeclaration>, NodeWithConstructors<ClassOrInterfaceDeclaration>, Resolvable<ResolvedReferenceTypeDeclaration>
class X { ... }Node.BreadthFirstIterator, Node.DirectChildrenIterator, Node.ObserverRegistrationMode, Node.ParentsVisitor, Node.Parsedness, Node.PostOrderIterator, Node.PreOrderIterator, Node.TreeTraversalABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration, SYMBOL_RESOLVER_KEY| Constructor and Description |
|---|
ClassOrInterfaceDeclaration() |
ClassOrInterfaceDeclaration(EnumSet<Modifier> modifiers,
boolean isInterface,
String name) |
ClassOrInterfaceDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
boolean isInterface,
SimpleName name,
NodeList<TypeParameter> typeParameters,
NodeList<ClassOrInterfaceType> extendedTypes,
NodeList<ClassOrInterfaceType> implementedTypes,
NodeList<BodyDeclaration<?>> members) |
ClassOrInterfaceDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
boolean isInterface,
SimpleName name,
NodeList<TypeParameter> typeParameters,
NodeList<ClassOrInterfaceType> extendedTypes,
NodeList<ClassOrInterfaceType> implementedTypes,
NodeList<BodyDeclaration<?>> members)
This constructor is used by the parser and is considered private.
|
addMember, asTypeDeclaration, getCallablesWithSignature, getMembers, getModifiers, getName, ifTypeDeclaration, isNestedType, isTopLevelType, isTypeDeclaration, setMembers, setModifiers, setName, toTypeDeclarationasAnnotationDeclaration, asAnnotationMemberDeclaration, asCallableDeclaration, asConstructorDeclaration, asEnumConstantDeclaration, asEnumDeclaration, asFieldDeclaration, asInitializerDeclaration, asMethodDeclaration, getAnnotations, ifAnnotationDeclaration, ifAnnotationMemberDeclaration, ifCallableDeclaration, ifConstructorDeclaration, ifEnumConstantDeclaration, ifEnumDeclaration, ifFieldDeclaration, ifInitializerDeclaration, ifMethodDeclaration, isAnnotationDeclaration, isAnnotationMemberDeclaration, isCallableDeclaration, isConstructorDeclaration, isEnumConstantDeclaration, isEnumDeclaration, isFieldDeclaration, isInitializerDeclaration, isMethodDeclaration, setAnnotations, toAnnotationDeclaration, toAnnotationMemberDeclaration, toCallableDeclaration, toConstructorDeclaration, toEnumConstantDeclaration, toEnumDeclaration, toFieldDeclaration, toInitializerDeclaration, toMethodDeclarationaddOrphanComment, containsData, customInitialization, equals, findAll, findAll, findCompilationUnit, findFirst, findFirst, findFirst, findRootNode, getAllContainedComments, getChildNodes, getChildNodesByType, getComment, getData, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getParsed, getRange, getSymbolResolver, getTokenRange, hasComment, hashCode, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, removeComment, removeData, removeForced, removeOrphanComment, replace, setAsParentNodeOf, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setParsed, setRange, setTokenRange, stream, stream, toString, toString, tryAddImportToParentCompilationUnit, unregister, walk, walk, walkfinalize, getClass, notify, notifyAll, wait, wait, waitaddImplementedType, addImplementedType, addImplementedType, addImplements, addImplements, getImplementedTypes, setImplementedType, tryAddImportToParentCompilationUnitaddExtendedType, addExtendedType, addExtendedType, addExtends, addExtends, getExtendedTypes, setExtendedType, tryAddImportToParentCompilationUnitaddTypeParameter, addTypeParameter, getTypeParameter, isGeneric, setTypeParameterisAbstract, setAbstractisFinal, setFinaladdModifier, getModifiers, removeModifier, setModifier, setModifiersaddConstructor, getConstructorByParameterTypes, getConstructorByParameterTypes, getConstructors, getDefaultConstructorgetName, getNameAsExpression, getNameAsString, setName, setNameaddField, addField, addField, addFieldWithInitializer, addFieldWithInitializer, addFieldWithInitializer, addInitializer, addMember, addMethod, addPrivateField, addPrivateField, addPrivateField, addProtectedField, addProtectedField, addProtectedField, addPublicField, addPublicField, addPublicField, addStaticInitializer, getFieldByName, getFields, getMember, getMembers, getMethods, getMethodsByName, getMethodsByParameterTypes, getMethodsByParameterTypes, getMethodsBySignature, setMember, setMembers, tryAddImportToParentCompilationUnitgetComment, getJavadoc, getJavadocComment, hasJavaDocComment, removeJavaDocComment, setComment, setJavadocComment, setJavadocComment, setJavadocComment, setJavadocCommentisPublic, setPublicisPrivate, setPrivateisProtected, setProtectedisStatic, setStaticisStrictfp, setStrictfpaddAndGetAnnotation, addAndGetAnnotation, addAnnotation, addAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresent, setAnnotation, tryAddImportToParentCompilationUnitfindAncestor, findAncestor, findParent, getAncestorOfTypecontainsWithin, getBegin, getEnd, isPositionedAfter, isPositionedBeforepublic ClassOrInterfaceDeclaration()
public ClassOrInterfaceDeclaration(EnumSet<Modifier> modifiers, boolean isInterface, String name)
public ClassOrInterfaceDeclaration(EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, boolean isInterface, SimpleName name, NodeList<TypeParameter> typeParameters, NodeList<ClassOrInterfaceType> extendedTypes, NodeList<ClassOrInterfaceType> implementedTypes, NodeList<BodyDeclaration<?>> members)
public ClassOrInterfaceDeclaration(TokenRange tokenRange, EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, boolean isInterface, SimpleName name, NodeList<TypeParameter> typeParameters, NodeList<ClassOrInterfaceType> extendedTypes, NodeList<ClassOrInterfaceType> implementedTypes, NodeList<BodyDeclaration<?>> members)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Visitableaccept in interface VisitableR - the type of the return value of the visitorA - the type the user argument passed to the visitorv - the visitor implementationarg - the argument passed to the visitor (of type A)public <A> void accept(VoidVisitor<A> v, A arg)
Visitablepublic NodeList<ClassOrInterfaceType> getExtendedTypes()
getExtendedTypes in interface NodeWithExtends<ClassOrInterfaceDeclaration>public NodeList<ClassOrInterfaceType> getImplementedTypes()
getImplementedTypes in interface NodeWithImplements<ClassOrInterfaceDeclaration>public NodeList<TypeParameter> getTypeParameters()
getTypeParameters in interface NodeWithTypeParameters<ClassOrInterfaceDeclaration>public boolean isInterface()
public ClassOrInterfaceDeclaration setExtendedTypes(NodeList<ClassOrInterfaceType> extendedTypes)
setExtendedTypes in interface NodeWithExtends<ClassOrInterfaceDeclaration>public ClassOrInterfaceDeclaration setImplementedTypes(NodeList<ClassOrInterfaceType> implementedTypes)
setImplementedTypes in interface NodeWithImplements<ClassOrInterfaceDeclaration>public ClassOrInterfaceDeclaration setInterface(boolean isInterface)
public ClassOrInterfaceDeclaration setTypeParameters(NodeList<TypeParameter> typeParameters)
setTypeParameters in interface NodeWithTypeParameters<ClassOrInterfaceDeclaration>public boolean remove(Node node)
remove in class TypeDeclaration<ClassOrInterfaceDeclaration>public boolean isLocalClassDeclaration()
public boolean isInnerClass()
public ClassOrInterfaceDeclaration clone()
clone in class TypeDeclaration<ClassOrInterfaceDeclaration>public ClassOrInterfaceDeclarationMetaModel getMetaModel()
getMetaModel in class TypeDeclaration<ClassOrInterfaceDeclaration>public boolean replace(Node node, Node replacementNode)
replace in class TypeDeclaration<ClassOrInterfaceDeclaration>public boolean isClassOrInterfaceDeclaration()
isClassOrInterfaceDeclaration in class BodyDeclaration<ClassOrInterfaceDeclaration>public ClassOrInterfaceDeclaration asClassOrInterfaceDeclaration()
asClassOrInterfaceDeclaration in class BodyDeclaration<ClassOrInterfaceDeclaration>public void ifClassOrInterfaceDeclaration(Consumer<ClassOrInterfaceDeclaration> action)
ifClassOrInterfaceDeclaration in class BodyDeclaration<ClassOrInterfaceDeclaration>public ResolvedReferenceTypeDeclaration resolve()
resolve in interface Resolvable<ResolvedReferenceTypeDeclaration>resolve in class TypeDeclaration<ClassOrInterfaceDeclaration>public Optional<ClassOrInterfaceDeclaration> toClassOrInterfaceDeclaration()
toClassOrInterfaceDeclaration in class BodyDeclaration<ClassOrInterfaceDeclaration>Copyright © 2007–2018. All rights reserved.