Package ch.raffael.meldioc.model
Class ClassRef
java.lang.Object
ch.raffael.meldioc.model.ClassRef
Named reference to a Java class.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Method Summary
Modifier and TypeMethodDescriptionintfinal ClassRefasArray()final Stringfinal Stringabstract Stringfinal booleanstatic ClassRefstatic ClassRefabstract Stringfinal StringwithArrayDimensions(int value) Copy the current immutable object by setting a value for thearrayDimensionsattribute.withClassName(String value) Copy the current immutable object by setting a value for theclassNameattribute.withPackageName(String value) Copy the current immutable object by setting a value for thepackageNameattribute.
-
Method Details
-
of
-
of
-
packageName
-
className
-
arrayDimensions
@Default public int arrayDimensions() -
asArray
-
isPrimitive
public final boolean isPrimitive() -
binaryName
-
canonicalName
-
simpleName
-
withPackageName
Copy the current immutable object by setting a value for thepackageNameattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for packageName- Returns:
- A modified copy of the
thisobject
-
withClassName
Copy the current immutable object by setting a value for theclassNameattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for className- Returns:
- A modified copy of the
thisobject
-
withArrayDimensions
Copy the current immutable object by setting a value for thearrayDimensionsattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for arrayDimensions- Returns:
- A modified copy of the
thisobject
-