Class ConditionExampleTrueGen

java.lang.Object
de.japkit.test.members.common.condition.ConditionExampleTrueGen

@ConditionTrigger(shallGenerateMembers=true,
                  shadow=true)
@Generated(src="de.japkit.test.members.common.condition.ConditionExampleTrue")
public class ConditionExampleTrueGen
extends java.lang.Object
The generated class for the example.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  ConditionExampleTrueGen.SomeInnerClass
    This inner class is generated if the function someFunction evaluates to true.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    java.lang.String someField1
    This field is generated if cond evaluates to true.
    java.lang.String someField2
    The condition is evaluated before the src variable (see SourceTemplate) is set.
    java.lang.String someFieldInTemplate  
  • Constructor Summary

    Constructors 
    Constructor Description
    ConditionExampleTrueGen()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String someMethod()
    This method is generated if cond evaluates to true.
    java.lang.String someMethodInTemplate()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • someFieldInTemplate

      public java.lang.String someFieldInTemplate
    • someField1

      public java.lang.String someField1
      This field is generated if cond evaluates to true. This is the case when the trigger annotation value shallGenerateMembers is set to true.
    • someField2

      public java.lang.String someField2
      The condition is evaluated before the src variable (see SourceTemplate) is set. So if the src variable is used in the condition it will be the one of the surrounding template.

      So, "someField2" will be generated, if the src name is "ConditionExampleTrue" which is exactly the case if that is the name of the annotated class, which is the src of this ConditionTemplate.

  • Constructor Details

  • Method Details

    • someMethodInTemplate

      public java.lang.String someMethodInTemplate()
    • someMethod

      public java.lang.String someMethod()
      This method is generated if cond evaluates to true. This is the case when the trigger annotation value shallGenerateMembers is set to true.