public class JavaParserInterfaceDeclaration extends AbstractTypeDeclaration implements InterfaceDeclaration
Constructor and Description |
---|
JavaParserInterfaceDeclaration(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration wrappedNode,
TypeSolver typeSolver) |
getAllMethods, isFunctionalInterface
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAllInterfacesExtended
asReferenceType, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getDeclaredFields, getField, getVisibleField, getVisibleFields, hasAnnotation, hasField, hasVisibleField, isFunctionalInterface
asClass, asEnum, asType, asTypeParameter, containerType, getId, internalTypes, isClass, isEnum, isType
asField, asMethod, asParameter, hasName, isField, isMethod, isParameter
public JavaParserInterfaceDeclaration(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration wrappedNode, TypeSolver typeSolver)
public Set<MethodDeclaration> getDeclaredMethods()
getDeclaredMethods
in interface ReferenceTypeDeclaration
public Context getContext()
public Type getUsage(com.github.javaparser.ast.Node node)
public String getName()
getName
in interface Declaration
public InterfaceDeclaration asInterface()
asInterface
in interface TypeDeclaration
public boolean hasDirectlyAnnotation(String canonicalName)
hasDirectlyAnnotation
in interface ReferenceTypeDeclaration
public boolean isInterface()
isInterface
in interface InterfaceDeclaration
isInterface
in interface TypeDeclaration
public List<ReferenceType> getInterfacesExtended()
getInterfacesExtended
in interface InterfaceDeclaration
public String getQualifiedName()
getQualifiedName
in interface TypeDeclaration
public boolean isAssignableBy(ReferenceTypeDeclaration other)
isAssignableBy
in interface ReferenceTypeDeclaration
public boolean isAssignableBy(Type type)
isAssignableBy
in interface ReferenceTypeDeclaration
public boolean canBeAssignedTo(ReferenceTypeDeclaration other)
canBeAssignedTo
in interface ReferenceTypeDeclaration
public boolean isTypeParameter()
isTypeParameter
in interface TypeDeclaration
public List<FieldDeclaration> getAllFields()
getAllFields
in interface ReferenceTypeDeclaration
@Deprecated public SymbolReference<TypeDeclaration> solveType(String name, TypeSolver typeSolver)
public List<ReferenceType> getAncestors()
getAncestors
in interface ReferenceTypeDeclaration
public List<TypeParameterDeclaration> getTypeParameters()
getTypeParameters
in interface TypeParametrizable
public com.github.javaparser.ast.body.ClassOrInterfaceDeclaration getWrappedNode()
public AccessLevel accessLevel()
accessLevel
in interface HasAccessLevel
Copyright © 2016. All rights reserved.