public class JavaParserAnonymousClassDeclaration extends AbstractClassDeclaration implements MethodUsageResolutionCapability
| Constructor and Description |
|---|
JavaParserAnonymousClassDeclaration(com.github.javaparser.ast.expr.ObjectCreationExpr wrappedNode,
TypeSolver typeSolver) |
| Modifier and Type | Method and Description |
|---|---|
com.github.javaparser.ast.AccessSpecifier |
accessSpecifier() |
Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> |
containerType() |
<T extends com.github.javaparser.ast.Node> |
findMembersOfKind(Class<T> memberClass) |
List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> |
getAllFields() |
List<com.github.javaparser.resolution.types.ResolvedReferenceType> |
getAncestors(boolean acceptIncompleteList) |
String |
getClassName() |
List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> |
getConstructors() |
Context |
getContext() |
Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
getDeclaredMethods() |
List<com.github.javaparser.resolution.types.ResolvedReferenceType> |
getInterfaces() |
String |
getName() |
String |
getPackageName() |
String |
getQualifiedName() |
com.github.javaparser.resolution.types.ResolvedReferenceType |
getSuperClass() |
com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration |
getSuperTypeDeclaration() |
List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> |
getTypeParameters() |
boolean |
hasDirectlyAnnotation(String qualifiedName) |
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) |
protected com.github.javaparser.resolution.types.ResolvedReferenceType |
object() |
SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
solveMethod(String name,
List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
boolean staticOnly) |
Optional<com.github.javaparser.resolution.MethodUsage> |
solveMethodAsUsage(String name,
List<com.github.javaparser.resolution.types.ResolvedType> argumentTypes,
Context invocationContext,
List<com.github.javaparser.resolution.types.ResolvedType> typeParameters) |
Optional<com.github.javaparser.ast.Node> |
toAst() |
asClass, getAllInterfaces, getAllSuperClasses, hasNamegetAllMethods, isFunctionalInterfaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisClassasReferenceType, canBeAssignedTo, findTypeParameter, getAllAncestors, getAllMethods, getAllNonStaticFields, getAllStaticFields, getAncestors, getDeclaredFields, getField, getVisibleField, getVisibleFields, hasAnnotation, hasField, hasVisibleField, isFunctionalInterfaceasEnum, asInterface, asType, asTypeParameter, getId, getInternalType, hasInternalType, isAnonymousClass, isEnum, isInterface, isType, isTypeParameterpublic JavaParserAnonymousClassDeclaration(com.github.javaparser.ast.expr.ObjectCreationExpr wrappedNode,
TypeSolver typeSolver)
public com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration getSuperTypeDeclaration()
public <T extends com.github.javaparser.ast.Node> List<T> findMembersOfKind(Class<T> memberClass)
public Context getContext()
public SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethod(String name, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, boolean staticOnly)
solveMethod in interface MethodResolutionCapabilitypublic Optional<com.github.javaparser.resolution.MethodUsage> solveMethodAsUsage(String name, List<com.github.javaparser.resolution.types.ResolvedType> argumentTypes, Context invocationContext, List<com.github.javaparser.resolution.types.ResolvedType> typeParameters)
solveMethodAsUsage in interface MethodUsageResolutionCapabilityprotected com.github.javaparser.resolution.types.ResolvedReferenceType object()
object in class AbstractClassDeclarationpublic com.github.javaparser.resolution.types.ResolvedReferenceType getSuperClass()
getSuperClass in interface com.github.javaparser.resolution.declarations.ResolvedClassDeclarationpublic List<com.github.javaparser.resolution.types.ResolvedReferenceType> getInterfaces()
getInterfaces in interface com.github.javaparser.resolution.declarations.ResolvedClassDeclarationpublic List<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> getConstructors()
getConstructors in interface com.github.javaparser.resolution.declarations.ResolvedClassDeclarationgetConstructors in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic com.github.javaparser.ast.AccessSpecifier accessSpecifier()
accessSpecifier in interface com.github.javaparser.resolution.declarations.HasAccessSpecifierpublic List<com.github.javaparser.resolution.types.ResolvedReferenceType> getAncestors(boolean acceptIncompleteList)
getAncestors in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> getAllFields()
getAllFields in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic Set<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> getDeclaredMethods()
getDeclaredMethods 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 isAssignableBy(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
isAssignableBy in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic boolean hasDirectlyAnnotation(String qualifiedName)
hasDirectlyAnnotation in interface com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclarationpublic String getPackageName()
getPackageName in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic String getClassName()
getClassName in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic String getQualifiedName()
getQualifiedName in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic Set<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> internalTypes()
internalTypes in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic String getName()
getName in interface com.github.javaparser.resolution.declarations.ResolvedDeclarationpublic List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()
getTypeParameters in interface com.github.javaparser.resolution.declarations.ResolvedTypeParametrizablepublic Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> containerType()
containerType in interface com.github.javaparser.resolution.declarations.ResolvedTypeDeclarationpublic Optional<com.github.javaparser.ast.Node> toAst()
toAst in interface com.github.javaparser.resolution.declarations.AssociableToAST<com.github.javaparser.ast.Node>Copyright © 2007–2019. All rights reserved.