Package org.openrewrite.java.tree
Class J.Identifier
- java.lang.Object
-
- org.openrewrite.java.tree.J.Identifier
-
- All Implemented Interfaces:
java.io.Serializable,Expression,J,NameTree,TypedTree,TypeTree,org.openrewrite.Tree
- Enclosing interface:
- J
public static final class J.Identifier extends java.lang.Object implements J, TypeTree, Expression
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJ.Identifier.IdentifierFlyweight-
Nested classes/interfaces inherited from interface org.openrewrite.java.tree.J
J.AnnotatedType, J.Annotation, J.ArrayAccess, J.ArrayDimension, J.ArrayType, J.Assert, J.Assignment, J.AssignmentOperation, J.Binary, J.Block, J.Break, J.Case, J.ClassDeclaration, J.CompilationUnit, J.Continue, J.ControlParentheses<J2 extends J>, J.DoWhileLoop, J.Empty, J.EnumValue, J.EnumValueSet, J.FieldAccess, J.ForEachLoop, J.ForLoop, J.Identifier, J.If, J.Import, J.InstanceOf, J.Label, J.Lambda, J.Literal, J.MemberReference, J.MethodDeclaration, J.MethodInvocation, J.Modifier, J.MultiCatch, J.NewArray, J.NewClass, J.Package, J.ParameterizedType, J.Parentheses<J2 extends J>, J.Primitive, J.Return, J.Switch, J.Synchronized, J.Ternary, J.Throw, J.Try, J.TypeCast, J.TypeParameter, J.TypeParameters, J.Unary, J.VariableDeclarations, J.VarType, J.WhileLoop, J.Wildcard
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <P> JacceptJava(JavaVisitor<P> v, P p)static J.Identifierbuild(java.util.UUID id, Space prefix, org.openrewrite.marker.Markers markers, java.lang.String simpleName, @Nullable JavaType type)static J.Identifierbuild(java.util.UUID id, Space prefix, org.openrewrite.marker.Markers markers, java.lang.String simpleName, @Nullable JavaType type, @Nullable JavaType fieldType)@Nullable JavaTypegetFieldType()java.lang.StringgetSimpleName()JavaTypegetType()java.lang.StringtoString()Making debugging a bit easierJ.IdentifierwithId(java.util.UUID id)J.IdentifierwithMarkers(org.openrewrite.marker.Markers markers)J.IdentifierwithName(java.lang.String name)J.IdentifierwithPrefix(Space prefix)J.IdentifierwithType(@Nullable JavaType type)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openrewrite.java.tree.Expression
getSideEffects
-
Methods inherited from interface org.openrewrite.java.tree.J
accept, getComments, getMarkers, getPrefix, isAcceptable, print, print, withComments, withTemplate
-
-
-
-
Method Detail
-
getType
public JavaType getType()
- Specified by:
getTypein interfaceExpression- Specified by:
getTypein interfaceTypedTree
-
getFieldType
@Nullable public @Nullable JavaType getFieldType()
-
withId
public J.Identifier withId(java.util.UUID id)
-
withType
public J.Identifier withType(@Nullable @Nullable JavaType type)
- Specified by:
withTypein interfaceExpression- Specified by:
withTypein interfaceTypedTree
-
getSimpleName
public java.lang.String getSimpleName()
-
acceptJava
public <P> J acceptJava(JavaVisitor<P> v, P p)
- Specified by:
acceptJavain interfaceJ
-
withName
public J.Identifier withName(java.lang.String name)
-
withMarkers
public J.Identifier withMarkers(org.openrewrite.marker.Markers markers)
- Specified by:
withMarkersin interfaceJ
-
withPrefix
public J.Identifier withPrefix(Space prefix)
- Specified by:
withPrefixin interfaceJ
-
build
public static J.Identifier build(java.util.UUID id, Space prefix, org.openrewrite.marker.Markers markers, java.lang.String simpleName, @Nullable @Nullable JavaType type)
-
build
public static J.Identifier build(java.util.UUID id, Space prefix, org.openrewrite.marker.Markers markers, java.lang.String simpleName, @Nullable @Nullable JavaType type, @Nullable @Nullable JavaType fieldType)
-
toString
public java.lang.String toString()
Making debugging a bit easier- Overrides:
toStringin classjava.lang.Object
-
-