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,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<com.github.javaparser.resolution.types.ResolvedType> |
solveGenericType(java.lang.String name,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver) |
com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
solveMethod(java.lang.String name,
java.util.List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
boolean staticOnly,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
We find the method declaration which is the best match for the given name and list of typeParametersValues.
|
com.github.javaparser.symbolsolver.model.resolution.SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> |
solveSymbol(java.lang.String name,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver) |
java.util.Optional<com.github.javaparser.symbolsolver.model.resolution.Value> |
solveSymbolAsValue(java.lang.String name,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver) |
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) |
equals, getParent, hashCode, solveWith, solveWithAsValue
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
solveConstructor, solveMethodAsUsage
public AbstractMethodLikeDeclarationContext(T wrappedNode, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
public final com.github.javaparser.symbolsolver.model.resolution.SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> solveSymbol(java.lang.String name, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
public final java.util.Optional<com.github.javaparser.resolution.types.ResolvedType> solveGenericType(java.lang.String name, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
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 java.util.Optional<com.github.javaparser.symbolsolver.model.resolution.Value> solveSymbolAsValue(java.lang.String name, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
public final 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 final com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethod(java.lang.String name, java.util.List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, boolean staticOnly, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
Context