public class ClassOrInterfaceDeclarationContext extends AbstractJavaParserContext<ClassOrInterfaceDeclaration>
typeSolver, wrappedNode
Constructor and Description |
---|
ClassOrInterfaceDeclarationContext(ClassOrInterfaceDeclaration wrappedNode,
TypeSolver typeSolver) |
Modifier and Type | Method and Description |
---|---|
List<ResolvedFieldDeclaration> |
fieldsExposedToChild(Node child)
The fields that are declared and in this immediate context made visible to a given child.
|
SymbolReference<ResolvedConstructorDeclaration> |
solveConstructor(List<ResolvedType> argumentsTypes)
We find the method declaration which is the best match for the given name and list of typeParametersValues.
|
Optional<ResolvedType> |
solveGenericType(String name) |
SymbolReference<ResolvedMethodDeclaration> |
solveMethod(String name,
List<ResolvedType> argumentsTypes,
boolean staticOnly)
We find the method declaration which is the best match for the given name and list of typeParametersValues.
|
SymbolReference<? extends ResolvedValueDeclaration> |
solveSymbol(String name) |
Optional<Value> |
solveSymbolAsValue(String name) |
SymbolReference<ResolvedTypeDeclaration> |
solveType(String name) |
equals, findTypeDeclarations, getParent, getWrappedNode, hashCode, solveWith, solveWithAsValue
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
fieldDeclarationInScope, localVariableDeclarationInScope, localVariablesExposedToChild, parameterDeclarationInScope, parametersExposedToChild, solveMethodAsUsage
public ClassOrInterfaceDeclarationContext(ClassOrInterfaceDeclaration wrappedNode, TypeSolver typeSolver)
public SymbolReference<? extends ResolvedValueDeclaration> solveSymbol(String name)
public Optional<ResolvedType> solveGenericType(String name)
solveGenericType
in interface Context
solveGenericType
in class AbstractJavaParserContext<ClassOrInterfaceDeclaration>
public SymbolReference<ResolvedTypeDeclaration> solveType(String name)
public SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<ResolvedType> argumentsTypes, boolean staticOnly)
Context
public SymbolReference<ResolvedConstructorDeclaration> solveConstructor(List<ResolvedType> argumentsTypes)
Context
public List<ResolvedFieldDeclaration> fieldsExposedToChild(Node child)
Context
Copyright © 2007–2020. All rights reserved.