Class SourceExampleGen
@SourceTrigger(shadow=true) @Generated(src="de.japkit.test.members.common.source.SourceExample") public class SourceExampleGen extends java.lang.Object
- 
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.StringsourceExampleIf no src is set, the src variable is the same as the one of the surrounding template.(package private) java.lang.StringsrcField1Copy1Here, the src is set to the list of fields of theTypeElementfor the annotated classSourceExample.(package private) java.lang.StringsrcField1Copy2Since filtering is quite common for a src collection, the filter condition can also be provided as srcFilter.(package private) java.lang.StringsrcField1Copy3The src variable is always implicit in expressions, so it can be omitted.(package private) java.lang.StringsrcField1Copy4Also, a function can be called to determine the source.(package private) java.lang.StringsrcField1Copy5Also, a function can be called to filter the source.(package private) java.lang.StringsrcField1Copy6A field for every element in the src collection ofFieldAndMethodtemplate.(package private) intsrcField2Copy1Here, the src is set to the list of fields of theTypeElementfor the annotated classSourceExample.(package private) intsrcField2Copy2Since filtering is quite common for a src collection, the filter condition can also be provided as srcFilter.(package private) intsrcField2Copy3The src variable is always implicit in expressions, so it can be omitted.(package private) intsrcField2Copy4Also, a function can be called to determine the source.(package private) intsrcField2Copy5Also, a function can be called to filter the source.(package private) intsrcField2Copy6A field for every element in the src collection ofFieldAndMethodtemplate. - 
Constructor Summary
Constructors Constructor Description SourceExampleGen() - 
Method Summary
Modifier and Type Method Description (package private) voidsetSrcField1(java.lang.String srcField1)A method for every element in the src collection ofFieldAndMethodtemplate.(package private) voidsetSrcField2(int srcField2)A method for every element in the src collection ofFieldAndMethodtemplate. 
- 
Field Details
- 
srcField1Copy6
java.lang.String srcField1Copy6A field for every element in the src collection ofFieldAndMethodtemplate. - 
srcField2Copy6
int srcField2Copy6A field for every element in the src collection ofFieldAndMethodtemplate. - 
sourceExample
java.lang.String sourceExampleIf no src is set, the src variable is the same as the one of the surrounding template. Since this is theClazztemplate here, the src is theTypeElementfor the class annotated with the trigger annotation.So, the resulting field name is "sourceExample", since the src is the
TypeElementfor the annotated classSourceExample, and itsTypeElement#getSimpleName()is "SourceExample". - 
srcField1Copy1
java.lang.String srcField1Copy1Here, the src is set to the list of fields of theTypeElementfor the annotated classSourceExample. For a src of a collection type, the member template is applied for every element. Thus, there is a field generated for every field in this list. The resulting fields are "srcField1Copy" and "srcField2Copy".The new src hides the original one, which was the
TypeElementfor the annotated classSourceExample. If generating the member is done, the original src is restored again. In other words, each member is generated within a new scope with its own value for src and potentially other variables. - 
srcField2Copy1
int srcField2Copy1Here, the src is set to the list of fields of theTypeElementfor the annotated classSourceExample. For a src of a collection type, the member template is applied for every element. Thus, there is a field generated for every field in this list. The resulting fields are "srcField1Copy" and "srcField2Copy".The new src hides the original one, which was the
TypeElementfor the annotated classSourceExample. If generating the member is done, the original src is restored again. In other words, each member is generated within a new scope with its own value for src and potentially other variables. - 
srcField1Copy2
java.lang.String srcField1Copy2Since filtering is quite common for a src collection, the filter condition can also be provided as srcFilter. - 
srcField2Copy2
int srcField2Copy2Since filtering is quite common for a src collection, the filter condition can also be provided as srcFilter. - 
srcField1Copy3
java.lang.String srcField1Copy3The src variable is always implicit in expressions, so it can be omitted. - 
srcField2Copy3
int srcField2Copy3The src variable is always implicit in expressions, so it can be omitted. - 
srcField1Copy4
java.lang.String srcField1Copy4Also, a function can be called to determine the source. - 
srcField2Copy4
int srcField2Copy4Also, a function can be called to determine the source. - 
srcField1Copy5
java.lang.String srcField1Copy5Also, a function can be called to filter the source. - 
srcField2Copy5
int srcField2Copy5Also, a function can be called to filter the source. 
 - 
 - 
Constructor Details
- 
SourceExampleGen
public SourceExampleGen() 
 - 
 - 
Method Details
- 
setSrcField1
void setSrcField1(java.lang.String srcField1)A method for every element in the src collection ofFieldAndMethodtemplate. - 
setSrcField2
void setSrcField2(int srcField2)A method for every element in the src collection ofFieldAndMethodtemplate. 
 -