@Test public void generatedPropertyImplTest() { GeneratedPropertyBuilderImpl generatedPropertyBuilderImpl = new GeneratedPropertyBuilderImpl("myPropertyName"); generatedPropertyBuilderImpl.setValue("myValue"); generatedPropertyBuilderImpl.setReadOnly(false); generatedPropertyBuilderImpl.setStatic(true); generatedPropertyBuilderImpl.setComment("myComment"); generatedPropertyBuilderImpl.setFinal(true); generatedPropertyBuilderImpl.setAccessModifier(AccessModifier.PUBLIC); generatedPropertyBuilderImpl.setReturnType(Types.BOOLEAN); GeneratedProperty instance = generatedPropertyBuilderImpl.toInstance(new CodegenGeneratedTypeBuilder( JavaTypeName.create("my.package", "myTypeName")).build()); assertNotNull(instance); assertTrue(instance.isFinal()); assertTrue(instance.isStatic()); assertFalse(instance.isReadOnly()); assertEquals("myValue", instance.getValue()); assertEquals("myComment", instance.getComment()); assertEquals(AccessModifier.PUBLIC, instance.getAccessModifier()); assertEquals(Types.BOOLEAN, instance.getReturnType()); assertEquals("GeneratedPropertyImpl [name=myPropertyName, annotations=[], comment=myComment, " + "parent=my.package.myTypeName, returnType=Type (java.lang.Boolean), isFinal=true, isReadOnly=false, " + "modifier=PUBLIC]", instance.toString()); }
GeneratedPropertyImpl(final Type definingType, final String name, final List<AnnotationType> annotations, final String comment, final AccessModifier accessModifier, final Type returnType, final boolean isFinal, final boolean isStatic, final boolean isReadOnly, final String value) { super(definingType, name, annotations, comment, accessModifier, returnType, isFinal, isStatic); this.value = value; this.readOnly = isReadOnly; }
GeneratedPropertyImpl extends AbstractTypeMember implements GeneratedProperty { GeneratedPropertyImpl(final Type definingType, final String name, final List<AnnotationType> annotations, final String comment, final AccessModifier accessModifier, final Type returnType, final boolean isFinal, final boolean isStatic, final boolean isReadOnly, final String value) { super(definingType, name, annotations, comment, accessModifier, returnType, isFinal, isStatic); this.value = value; this.readOnly = isReadOnly; } }
GeneratedPropertyImpl extends AbstractTypeMember implements GeneratedProperty { GeneratedPropertyImpl(final Type definingType, final String name, final List<AnnotationType> annotations, final String comment, final AccessModifier accessModifier, final Type returnType, final boolean isFinal, final boolean isStatic, final boolean isReadOnly, final String value) { super(definingType, name, annotations, comment, accessModifier, returnType, isFinal, isStatic); this.value = value; this.readOnly = isReadOnly; } GeneratedPropertyImpl(final Type definingType, final String name, final List<AnnotationType> annotations,
            final String comment, final AccessModifier accessModifier, final Type returnType, final boolean isFinal,
            final boolean isStatic, final boolean isReadOnly, final String value); }
GeneratedPropertyImpl extends AbstractTypeMember implements GeneratedProperty { GeneratedPropertyImpl(final Type definingType, final String name, final List<AnnotationType> annotations, final String comment, final AccessModifier accessModifier, final Type returnType, final boolean isFinal, final boolean isStatic, final boolean isReadOnly, final String value) { super(definingType, name, annotations, comment, accessModifier, returnType, isFinal, isStatic); this.value = value; this.readOnly = isReadOnly; } GeneratedPropertyImpl(final Type definingType, final String name, final List<AnnotationType> annotations,
            final String comment, final AccessModifier accessModifier, final Type returnType, final boolean isFinal,
            final boolean isStatic, final boolean isReadOnly, final String value); @Override String getValue(); @Override boolean isReadOnly(); @Override String toString(); }
GeneratedPropertyImpl extends AbstractTypeMember implements GeneratedProperty { GeneratedPropertyImpl(final Type definingType, final String name, final List<AnnotationType> annotations, final String comment, final AccessModifier accessModifier, final Type returnType, final boolean isFinal, final boolean isStatic, final boolean isReadOnly, final String value) { super(definingType, name, annotations, comment, accessModifier, returnType, isFinal, isStatic); this.value = value; this.readOnly = isReadOnly; } GeneratedPropertyImpl(final Type definingType, final String name, final List<AnnotationType> annotations,
            final String comment, final AccessModifier accessModifier, final Type returnType, final boolean isFinal,
            final boolean isStatic, final boolean isReadOnly, final String value); @Override String getValue(); @Override boolean isReadOnly(); @Override String toString();  }