Package io.sundr.model
Class ClassRef
java.lang.Object
io.sundr.model.AttributeSupport
io.sundr.model.TypeRef
io.sundr.model.ClassRef
- All Implemented Interfaces:
Attributeable,Expression,Mappable<ClassRef>,Nameable,Node,Renderable,WithReferences
-
Field Summary
FieldsFields inherited from interface io.sundr.model.Attributeable
ALSO_IMPORT, DEFAULT_VALUE, INIT, INIT_FUNCTION, LAZY_INITFields inherited from interface io.sundr.model.Expression
NULLFields inherited from interface io.sundr.model.Nameable
IN_PACKAGE, IS_UPPER_CASE, OUT_OF_PACKAGE, PACKAGE_SEPARATOR_REGEXFields inherited from interface io.sundr.model.Node
AT, CB, CC, CLP, COLN, COMA, CP, DOT, DQ, EMPTY, EQ, EXTENDS, GT, IMPLEMENTS, INDENT, JAVA_LANG, JAVA_LANG_ENUM, JAVA_LANG_OBJECT, JAVA_LANG_STRING, LT, NEWLINE, NEWLINE_PATTERN, OB, OC, OP, Q, SEMICOLN, SEMICOLN_SUFFIX_PATTERN, SPACE, STAR, THROWS, VARARG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall(String name, Expression... arguments) call(String name, List<Expression> arguments) dotClass()booleanstatic ClassRefstatic ClassRefintGet the fully qualified name of the type.getName()Get the name.inthashCode()render()Render the type into aStringfor the purpose of code generation.toString()withDimensions(int dimensions) Methods inherited from class io.sundr.model.AttributeSupport
getAttribute, getAttributes, hasAttributeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.sundr.model.Expression
and, and, assign, assign, assignNew, assignNew, assignNull, call, cast, cast, divide, enclosed, eq, index, index, instanceOf, instanceOf, isNull, minus, minus, modulo, multiply, ne, negative, not, notNull, or, or, plus, plus, positive, postDecrement, postIncrement, preIncrement, pretDecrement, property, property, property, retMethods inherited from interface io.sundr.model.Nameable
getPackageNameMethods inherited from interface io.sundr.model.Renderable
tab
-
Field Details
-
UNKNOWN
- See Also:
-
BRACKETS
- See Also:
-
OBJECT
-
-
Constructor Details
-
ClassRef
-
-
Method Details
-
forName
-
forClass
-
call
-
call
- Specified by:
callin interfaceExpression
-
getFullyQualifiedName
Description copied from interface:NameableGet the fully qualified name of the type. The expected format is package.outerClass.inerClass- Specified by:
getFullyQualifiedNamein interfaceNameable- Returns:
- the fully qualified name
-
getDimensions
public int getDimensions()- Specified by:
getDimensionsin classTypeRef
-
getArguments
-
withDimensions
- Specified by:
withDimensionsin classTypeRef
-
getReferences
- Specified by:
getReferencesin interfaceWithReferences
-
getName
Description copied from interface:NameableGet the name. -
equals
-
hashCode
public int hashCode() -
toString
-
renderExpression
- Specified by:
renderExpressionin interfaceExpression
-
render
Description copied from interface:RenderableRender the type into aStringfor the purpose of code generation. This is slightly different from the `toString()` method as `toString()` is mostly needed for logging / debugging and should be idempotent. Regarding idempotency this method may yield different result based on the context it is used even if the internal state of the object does not change. An example of such case, is a reference to class that may change based on the package from which it's refenced.- Specified by:
renderin interfaceRenderable- Returns:
- the
Stringrepresentation of the object as it's meant to appear in the generated code.
-
dotClass
-