Package org.openrewrite.java.tree
Class JavaType.Method
- java.lang.Object
-
- org.openrewrite.java.tree.JavaType.Method
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openrewrite.java.tree.JavaType
JavaType.Array, JavaType.Class, JavaType.FullyQualified, JavaType.GenericTypeVariable, JavaType.Method, JavaType.MultiCatch, JavaType.Parameterized, JavaType.Primitive, JavaType.ShallowClass, JavaType.Unknown, JavaType.Variable
-
-
Constructor Summary
Constructors Constructor Description Method(@Nullable java.lang.Integer managedReference, long flagsBitMap, @Nullable JavaType.FullyQualified declaringType, java.lang.String name, @Nullable JavaType returnType, @Nullable java.util.List<java.lang.String> parameterNames, @Nullable java.util.List<JavaType> parameterTypes, @Nullable java.util.List<JavaType.FullyQualified> thrownExceptions, @Nullable java.util.List<JavaType.FullyQualified> annotations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.List<JavaType.FullyQualified>getAnnotations()JavaType.FullyQualifiedgetDeclaringType()java.util.Set<Flag>getFlags()java.util.List<java.lang.String>getParameterNames()java.util.List<JavaType>getParameterTypes()java.util.List<JavaType.FullyQualified>getThrownExceptions()booleanhasFlags(Flag... test)booleanisConstructor()java.lang.StringtoString()JavaType.MethodunsafeSet(JavaType.FullyQualified declaringType, JavaType returnType, @Nullable java.util.List<JavaType> parameterTypes, @Nullable java.util.List<JavaType.FullyQualified> thrownExceptions, @Nullable java.util.List<JavaType.FullyQualified> annotations)JavaType.MethodunsafeSetManagedReference(java.lang.Integer id)JavaType.MethodwithAnnotations(@Nullable java.util.List<JavaType.FullyQualified> annotations)JavaType.MethodwithFlags(java.util.Set<Flag> flags)JavaType.MethodwithParameterNames(@Nullable java.util.List<java.lang.String> parameterNames)JavaType.MethodwithParameterTypes(@Nullable java.util.List<JavaType> parameterTypes)JavaType.MethodwithThrownExceptions(@Nullable java.util.List<JavaType.FullyQualified> thrownExceptions)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openrewrite.java.tree.JavaType
getJacksonPolymorphicTypeTag, getManagedReference, withManagedReference
-
-
-
-
Constructor Detail
-
Method
public Method(@Nullable @Nullable java.lang.Integer managedReference, long flagsBitMap, @Nullable @Nullable JavaType.FullyQualified declaringType, java.lang.String name, @Nullable @Nullable JavaType returnType, @Nullable @Nullable java.util.List<java.lang.String> parameterNames, @Nullable @Nullable java.util.List<JavaType> parameterTypes, @Nullable @Nullable java.util.List<JavaType.FullyQualified> thrownExceptions, @Nullable @Nullable java.util.List<JavaType.FullyQualified> annotations)
-
-
Method Detail
-
unsafeSetManagedReference
public JavaType.Method unsafeSetManagedReference(java.lang.Integer id)
- Specified by:
unsafeSetManagedReferencein interfaceJavaType
-
unsafeSet
public JavaType.Method unsafeSet(JavaType.FullyQualified declaringType, JavaType returnType, @Nullable @Nullable java.util.List<JavaType> parameterTypes, @Nullable @Nullable java.util.List<JavaType.FullyQualified> thrownExceptions, @Nullable @Nullable java.util.List<JavaType.FullyQualified> annotations)
-
isConstructor
public boolean isConstructor()
-
getDeclaringType
public JavaType.FullyQualified getDeclaringType()
-
getParameterNames
public java.util.List<java.lang.String> getParameterNames()
-
withParameterNames
public JavaType.Method withParameterNames(@Nullable @Nullable java.util.List<java.lang.String> parameterNames)
-
getParameterTypes
public java.util.List<JavaType> getParameterTypes()
-
withParameterTypes
public JavaType.Method withParameterTypes(@Nullable @Nullable java.util.List<JavaType> parameterTypes)
-
getThrownExceptions
public java.util.List<JavaType.FullyQualified> getThrownExceptions()
-
withThrownExceptions
public JavaType.Method withThrownExceptions(@Nullable @Nullable java.util.List<JavaType.FullyQualified> thrownExceptions)
-
getAnnotations
public java.util.List<JavaType.FullyQualified> getAnnotations()
-
withAnnotations
public JavaType.Method withAnnotations(@Nullable @Nullable java.util.List<JavaType.FullyQualified> annotations)
-
hasFlags
public boolean hasFlags(Flag... test)
-
getFlags
public java.util.Set<Flag> getFlags()
-
withFlags
public JavaType.Method withFlags(java.util.Set<Flag> flags)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-