public abstract class AbstractMethodLikeDeclarationContext<T extends com.github.javaparser.ast.Node & com.github.javaparser.ast.nodeTypes.NodeWithParameters<T> & com.github.javaparser.ast.nodeTypes.NodeWithTypeParameters<T>> extends AbstractJavaParserContext<T>
typeSolver, wrappedNode
Constructor and Description |
---|
AbstractMethodLikeDeclarationContext(T wrappedNode,
TypeSolver typeSolver) |
Modifier and Type | Method and Description |
---|---|
Optional<com.github.javaparser.resolution.types.ResolvedType> |
solveGenericType(String name) |
SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
solveMethod(String name,
List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
boolean staticOnly)
We find the method declaration which is the best match for the given name and list of typeParametersValues.
|
SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> |
solveSymbol(String name) |
Optional<Value> |
solveSymbolAsValue(String name) |
SymbolReference<com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration> |
solveType(String name) |
equals, findTypeDeclarations, getParent, getWrappedNode, hashCode, solveWith, solveWithAsValue
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
fieldDeclarationInScope, fieldsExposedToChild, localVariableDeclarationInScope, localVariablesExposedToChild, parameterDeclarationInScope, parametersExposedToChild, solveConstructor, solveMethodAsUsage
public AbstractMethodLikeDeclarationContext(T wrappedNode, TypeSolver typeSolver)
public final SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> solveSymbol(String name)
public final Optional<com.github.javaparser.resolution.types.ResolvedType> solveGenericType(String name)
solveGenericType
in interface Context
solveGenericType
in class AbstractJavaParserContext<T extends com.github.javaparser.ast.Node & com.github.javaparser.ast.nodeTypes.NodeWithParameters<T> & com.github.javaparser.ast.nodeTypes.NodeWithTypeParameters<T>>
public final SymbolReference<com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration> solveType(String name)
public final SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethod(String name, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, boolean staticOnly)
Context
Copyright © 2007–2018. All rights reserved.