public class JavaParserInterfaceDeclaration extends AbstractTypeDeclaration implements InterfaceDeclaration
Constructor and Description |
---|
JavaParserInterfaceDeclaration(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration wrappedNode,
TypeSolver typeSolver) |
getAllMethods
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAllInterfacesExtended
asClass, asEnum, asType, asTypeParameter, containerType, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getDeclaredFields, getId, hasAnnotation, 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 TypeDeclaration
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 TypeDeclaration
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(TypeDeclaration other)
isAssignableBy
in interface TypeDeclaration
public boolean isAssignableBy(Type type)
isAssignableBy
in interface TypeDeclaration
public boolean canBeAssignedTo(TypeDeclaration other)
canBeAssignedTo
in interface TypeDeclaration
public boolean isTypeParameter()
isTypeParameter
in interface TypeDeclaration
public FieldDeclaration getField(String name)
getField
in interface TypeDeclaration
public List<FieldDeclaration> getAllFields()
getAllFields
in interface TypeDeclaration
public boolean hasField(String name)
hasField
in interface TypeDeclaration
@Deprecated public SymbolReference<TypeDeclaration> solveType(String name, TypeSolver typeSolver)
public List<ReferenceType> getAncestors()
getAncestors
in interface TypeDeclaration
public List<TypeParameterDeclaration> getTypeParameters()
getTypeParameters
in interface TypeParametrizable
protected TypeSolver typeSolver()
typeSolver
in class AbstractTypeDeclaration
public com.github.javaparser.ast.body.ClassOrInterfaceDeclaration getWrappedNode()
public AccessLevel accessLevel()
accessLevel
in interface HasAccessLevel
Copyright © 2016. All rights reserved.