public class JavaParserInterfaceDeclaration
extends com.github.javaparser.symbolsolver.logic.AbstractTypeDeclaration
implements com.github.javaparser.resolution.declarations.ResolvedInterfaceDeclaration
| Constructor and Description |
|---|
JavaParserInterfaceDeclaration(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration wrappedNode,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver) |
| Modifier and Type | Method and Description |
|---|---|
com.github.javaparser.ast.AccessSpecifier |
accessSpecifier() |
com.github.javaparser.resolution.declarations.ResolvedInterfaceDeclaration |
asInterface() |
boolean |
canBeAssignedTo(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other) |
java.util.Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> |
containerType() |
boolean |
equals(java.lang.Object o) |
java.util.List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> |
getAllFields() |
java.util.List<com.github.javaparser.resolution.types.ResolvedReferenceType> |
getAncestors() |
java.lang.String |
getClassName() |
Context |
getContext() |
java.util.Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
getDeclaredMethods() |
java.util.List<com.github.javaparser.resolution.types.ResolvedReferenceType> |
getInterfacesExtended() |
java.lang.String |
getName() |
java.lang.String |
getPackageName() |
java.lang.String |
getQualifiedName() |
java.util.List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> |
getTypeParameters() |
com.github.javaparser.resolution.types.ResolvedType |
getUsage(com.github.javaparser.ast.Node node) |
com.github.javaparser.ast.body.ClassOrInterfaceDeclaration |
getWrappedNode()
Returns the JavaParser node associated with this JavaParserInterfaceDeclaration.
|
boolean |
hasDirectlyAnnotation(java.lang.String canonicalName) |
int |
hashCode() |
java.util.Set<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> |
internalTypes() |
boolean |
isAssignableBy(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other) |
boolean |
isAssignableBy(com.github.javaparser.resolution.types.ResolvedType type) |
boolean |
isInterface() |
boolean |
isTypeParameter() |
com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration> |
solveType(java.lang.String name,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
Deprecated.
|
java.lang.String |
toString() |
getAllMethods, isFunctionalInterfaceclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAllInterfacesExtendedasReferenceType, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getDeclaredFields, getField, getVisibleField, getVisibleFields, hasAnnotation, hasField, hasVisibleField, isFunctionalInterfaceasClass, asEnum, asType, asTypeParameter, getId, getInternalType, hasInternalType, isAnonymousClass, isClass, isEnum, isTypepublic JavaParserInterfaceDeclaration(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration wrappedNode,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
public java.util.Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> getDeclaredMethods()
getDeclaredMethods in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic Context getContext()
public com.github.javaparser.resolution.types.ResolvedType getUsage(com.github.javaparser.ast.Node node)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getName()
getName in interface com.github.javaparser.resolution.declarations.ResolvedDeclarationpublic com.github.javaparser.resolution.declarations.ResolvedInterfaceDeclaration asInterface()
asInterface in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic boolean hasDirectlyAnnotation(java.lang.String canonicalName)
hasDirectlyAnnotation in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic boolean isInterface()
isInterface in interface com.github.javaparser.resolution.declarations.ResolvedInterfaceDeclarationisInterface in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic java.util.List<com.github.javaparser.resolution.types.ResolvedReferenceType> getInterfacesExtended()
getInterfacesExtended in interface com.github.javaparser.resolution.declarations.ResolvedInterfaceDeclarationpublic java.lang.String getPackageName()
getPackageName in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic java.lang.String getClassName()
getClassName in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic java.lang.String getQualifiedName()
getQualifiedName in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic boolean isAssignableBy(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
isAssignableBy in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic boolean isAssignableBy(com.github.javaparser.resolution.types.ResolvedType type)
isAssignableBy in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic boolean canBeAssignedTo(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
canBeAssignedTo in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic boolean isTypeParameter()
isTypeParameter in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic java.util.List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> getAllFields()
getAllFields in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic java.lang.String toString()
toString in class java.lang.Object@Deprecated
public com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration> solveType(java.lang.String name,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
public java.util.List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAncestors()
getAncestors in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic java.util.List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()
getTypeParameters in interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizablepublic com.github.javaparser.ast.body.ClassOrInterfaceDeclaration getWrappedNode()
public com.github.javaparser.ast.AccessSpecifier accessSpecifier()
accessSpecifier in interface com.github.javaparser.resolution.declarations.HasAccessSpecifierpublic java.util.Set<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> internalTypes()
internalTypes in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic java.util.Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> containerType()
containerType in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration