Uses of Interface
net.sourceforge.pmd.lang.java.types.JMethodSig
-
Packages that use JMethodSig Package Description net.sourceforge.pmd.lang.java.ast Contains the classes and interfaces modelling the Java AST.net.sourceforge.pmd.lang.java.symbols.table net.sourceforge.pmd.lang.java.types Support for compile-time type resolution on the AST. -
-
Uses of JMethodSig in net.sourceforge.pmd.lang.java.ast
Methods in net.sourceforge.pmd.lang.java.ast that return JMethodSig Modifier and Type Method Description JMethodSig
ASTLambdaExpression. getFunctionalMethod()
Returns the method that is overridden in the functional interface.JMethodSig
ASTMethodReference. getFunctionalMethod()
Returns the method that is overridden in the functional interface.JMethodSig
FunctionalExpression. getFunctionalMethod()
Returns the method that is overridden in the functional interface.JMethodSig
ASTExecutableDeclaration. getGenericSignature()
Returns the generic signature for the method.default JMethodSig
InvocationNode. getMethodType()
Gets the type of the method or constructor that is called by this node.JMethodSig
ASTMethodDeclaration. getOverriddenMethod()
Returns the signature of the method this method overrides in a supertype.JMethodSig
ASTMethodReference. getReferencedMethod()
Returns the method that is referenced.Methods in net.sourceforge.pmd.lang.java.ast with parameters of type JMethodSig Modifier and Type Method Description static void
InternalApiBridge. setCompileTimeDecl(ASTMethodReference methodReference, JMethodSig methodType)
static void
InternalApiBridge. setFunctionalMethod(FunctionalExpression node, JMethodSig methodType)
-
Uses of JMethodSig in net.sourceforge.pmd.lang.java.symbols.table
Methods in net.sourceforge.pmd.lang.java.symbols.table that return types with arguments of type JMethodSig Modifier and Type Method Description ShadowChain<JMethodSig,ScopeInfo>
JSymbolTable. methods()
The chain of tables tracking method names that are in scope here. -
Uses of JMethodSig in net.sourceforge.pmd.lang.java.types
Fields in net.sourceforge.pmd.lang.java.types declared as JMethodSig Modifier and Type Field Description JMethodSig
TypeSystem. UNRESOLVED_METHOD
Sentinel value for an unresolved method.Methods in net.sourceforge.pmd.lang.java.types that return JMethodSig Modifier and Type Method Description static @Nullable JMethodSig
TypeOps. findFunctionalInterfaceMethod(@Nullable JTypeMirror type)
Finds the method of the given type that can be overridden as a lambda expression.@Nullable JMethodSig
JClassType. getDeclaredMethod(JExecutableSymbol sym)
Returns the typed signature for the symbol, if it is declared directly in this type, and not a supertype.JMethodSig
JMethodSig. getErasure()
The erasure of a method is a new, non-generic method, whose parameters, owner, and return type, are erased.JMethodSig
OverloadSelectionResult. getMethodType()
Returns the type of the method or constructor that is called by theInvocationNode
.JMethodSig
TypeSystem. sigOf(JExecutableSymbol methodSym)
JMethodSig
TypeSystem. sigOf(JExecutableSymbol methodSym, Substitution subst)
JMethodSig
JMethodSig. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)
Methods in net.sourceforge.pmd.lang.java.types that return types with arguments of type JMethodSig Modifier and Type Method Description static List<JMethodSig>
TypeOps. filterAccessible(List<JMethodSig> visible, @NonNull JClassSymbol accessSite)
List<JMethodSig>
JArrayType. getConstructors()
default List<JMethodSig>
JTypeMirror. getConstructors()
Returns a list of all the declared constructors for this type.static List<JMethodSig>
TypeOps. getMethodsOf(JTypeMirror type, String name, boolean staticOnly, @NonNull JClassSymbol enclosing)
static Iterable<JMethodSig>
TypeOps. lazyFilterAccessible(List<JMethodSig> visible, @NonNull JClassSymbol accessSite)
Stream<JMethodSig>
JArrayType. streamDeclaredMethods(Predicate<? super JMethodSymbol> prefilter)
default Stream<JMethodSig>
JTypeMirror. streamDeclaredMethods(Predicate<? super JMethodSymbol> prefilter)
LikestreamMethods
, but does not recurse into supertypes.Stream<JMethodSig>
JArrayType. streamMethods(Predicate<? super JMethodSymbol> prefilter)
Stream<JMethodSig>
JIntersectionType. streamMethods(Predicate<? super JMethodSymbol> prefilter)
default Stream<JMethodSig>
JTypeMirror. streamMethods(Predicate<? super JMethodSymbol> prefilter)
Returns a stream of method signatures declared in and inherited by this type.default Stream<JMethodSig>
JTypeVar. streamMethods(Predicate<? super JMethodSymbol> prefilter)
default Stream<JMethodSig>
JWildcardType. streamMethods(Predicate<? super JMethodSymbol> prefilter)
Methods in net.sourceforge.pmd.lang.java.types with parameters of type JMethodSig Modifier and Type Method Description static boolean
TypeOps. areOverrideEquivalent(JMethodSig m1, JMethodSig m2)
Two method signatures m1 and m2 are override-equivalent iff either m1 is a subsignature of m2 or m2 is a subsignature of m1.static boolean
TypeOps. haveSameTypeParams(JMethodSig m1, JMethodSig m2)
static boolean
TypeOps. isContextDependent(JMethodSig sig)
Return true if the method is context dependent.static boolean
TypeTestUtil. isDeclaredInClass(@NonNull Class<?> klass, @NonNull JMethodSig sig)
Returns true if the signature is that of a method declared in the given class.static boolean
TypeOps. isReturnTypeSubstitutable(JMethodSig m1, JMethodSig m2)
Returns true if m1 is return-type substitutable with m2.static boolean
TypeOps. isSameType(JMethodSig t, JMethodSig s)
Return true if t and s are the same method type.static boolean
TypeOps. isSubSignature(JMethodSig m1, JMethodSig m2)
The signature of a method m1 is a subsignature of the signature of a method m2 if either: - m2 has the same signature as m1, or - the signature of m1 is the same as the erasure (ยง4.6) of the signature of m2.static boolean
TypeOps. overrides(JMethodSig m1, JMethodSig m2, JTypeMirror origin)
Returns true if m1 overrides m2, when both are view as members of class origin.default R
JTypeVisitor. visitMethodType(JMethodSig t, P p)
Method parameters in net.sourceforge.pmd.lang.java.types with type arguments of type JMethodSig Modifier and Type Method Description static List<JMethodSig>
TypeOps. filterAccessible(List<JMethodSig> visible, @NonNull JClassSymbol accessSite)
static Iterable<JMethodSig>
TypeOps. lazyFilterAccessible(List<JMethodSig> visible, @NonNull JClassSymbol accessSite)
-