Package org.openrewrite.java.tree
Class JavaType.ShallowClass
- java.lang.Object
-
- org.openrewrite.java.tree.JavaType.FullyQualified
-
- org.openrewrite.java.tree.JavaType.Class
-
- org.openrewrite.java.tree.JavaType.ShallowClass
-
- All Implemented Interfaces:
JavaType
- Enclosing interface:
- JavaType
public static class JavaType.ShallowClass extends JavaType.Class
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openrewrite.java.tree.JavaType.FullyQualified
JavaType.FullyQualified.Kind
-
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 ShallowClass(@Nullable java.lang.Integer managedReference, long flagsBitMap, java.lang.String fullyQualifiedName, JavaType.FullyQualified.Kind kind, @Nullable JavaType.FullyQualified supertype, @Nullable JavaType.FullyQualified owningClass, @Nullable java.util.List<JavaType.FullyQualified> annotations, @Nullable java.util.List<JavaType.FullyQualified> interfaces, @Nullable java.util.List<JavaType.Variable> members, @Nullable java.util.List<JavaType.Method> methods)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JavaType.ShallowClassbuild(java.lang.String fullyQualifiedName)Build a class type only from the class' fully qualified name.-
Methods inherited from class org.openrewrite.java.tree.JavaType.Class
equals, getAnnotations, getFlags, getInterfaces, getMembers, getMethods, hasFlags, toString, unsafeSet, unsafeSetManagedReference, withAnnotations, withInterfaces, withMembers, withMethods
-
Methods inherited from class org.openrewrite.java.tree.JavaType.FullyQualified
getClassName, getFullyQualifiedName, getKind, getOwningClass, getPackageName, getSupertype, getVisibleMembers, getVisibleMethods, isAssignableFrom, isAssignableTo, withFullyQualifiedName
-
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
-
ShallowClass
public ShallowClass(@Nullable @Nullable java.lang.Integer managedReference, long flagsBitMap, java.lang.String fullyQualifiedName, JavaType.FullyQualified.Kind kind, @Nullable @Nullable JavaType.FullyQualified supertype, @Nullable @Nullable JavaType.FullyQualified owningClass, @Nullable @Nullable java.util.List<JavaType.FullyQualified> annotations, @Nullable @Nullable java.util.List<JavaType.FullyQualified> interfaces, @Nullable @Nullable java.util.List<JavaType.Variable> members, @Nullable @Nullable java.util.List<JavaType.Method> methods)
-
-
Method Detail
-
build
public static JavaType.ShallowClass build(java.lang.String fullyQualifiedName)
Build a class type only from the class' fully qualified name. Since we are not providing any member, type parameter, interface, or supertype information, this fully qualified name could potentially match on more than one version of the class found in the type cache. This method will simply pick one of them, because there is no way of selecting between the versions of the class based solely on the fully qualified class name.- Parameters:
fullyQualifiedName- The fully qualified name of the class to build- Returns:
- Any class found in the type cache
-
-