Forum Stats

  • 3,757,146 Users
  • 2,251,201 Discussions
  • 7,869,743 Comments

Discussions

How to create Javadoc HTML pages which includes some tagged classes and class members?

Sainath Sagar Dyapa
Sainath Sagar Dyapa Member Posts: 1

I have to create javadoc for my project in which I have to consider the classes only which has the tag "@accept" and the class members tagged with "@ignore" should not be considered to show in the generated javadoc html page.

Above mentioned has to be done using JDK8.

Consider the classes A, B and C given below.

A.java

<span class="com" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #858c93;">/**<br/> * @accept<br/> */</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/></span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">public</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">class</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> A </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">{</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/><br/><br/>   </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #2b91af;">String</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field1</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">;</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/><br/>   </span><span class="com" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #858c93;">/**<br/>  * @ignore<br/>  */</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/>   </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #2b91af;">String</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field2</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">;</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/><br/>   </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">public</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> A</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">(</span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #2b91af;">String</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field1</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">)</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">{</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/>   </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">this</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">field1 </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">=</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field1</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">;</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/>   </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">}</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/><br/>   </span><span class="com" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #858c93;">/**<br/>  * @ignore<br/>  */</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/>   </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">public</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> A</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">(</span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #2b91af;">String</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field1</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">,</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #2b91af;">String</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field2</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">)</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">{</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/>   </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">this</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">field1 </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">=</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field1</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">;</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/>   </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">this</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">field2 </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">=</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field2</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">;</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/>   </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">}</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/><br/>   </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">public</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">void</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> setField1</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">(</span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #2b91af;">String</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field1</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">)</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">{</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/>   </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">this</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">field1 </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">=</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field1</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">;</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/>   </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">}</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/><br/>   </span><span class="com" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #858c93;">/**<br/>  * @ignore<br/>  */</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/>   </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">public</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">void</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> setField2</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">(</span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #2b91af;">String</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field2</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">)</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">{</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/>   </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">this</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">field2 </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">=</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field2</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">;</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/>   </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">}</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/><br/></span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">}</span>

B.java

<span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">public</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">class</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> B </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">{</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">  </span><span class="com" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #858c93;">// Fields and methods here...</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">  </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">}</span>

C.java

<span class="com" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #858c93;">/** * @accept */</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">public</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">class</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> C </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">{</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">  </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #2b91af;">String</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field1</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">;</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">  </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #2b91af;">String</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field2</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">;</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">  </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">public</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> C</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">(</span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #2b91af;">String</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field1</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">,</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #2b91af;">String</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field2</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">)</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">{</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">this</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">field1 </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">=</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field1</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">;</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">this</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">.</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">field2 </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">=</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field2</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">;</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">}</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">  </span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">}</span>

When I create javadoc html for the above classes, The output should contain the following.

<span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #2b91af;">Class</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> A  <br/></span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">-</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #2b91af;">String</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field1</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">;</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="com" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #858c93;">// field  </span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/></span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">-</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">public</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> A</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">(</span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #2b91af;">String</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field1</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">);</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="com" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #858c93;">// constructor  </span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/></span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">-</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">public</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">void</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> setField1</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">(</span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #2b91af;">String</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field1</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">);</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="com" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #858c93;">// method  </span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/><br/></span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #2b91af;">Class</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> C  <br/></span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">-</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #2b91af;">String</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field1</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">;</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="com" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #858c93;">// field  </span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/></span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">-</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #2b91af;">String</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field2</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">;</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="com" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #858c93;">// field  </span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"><br/></span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">-</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="kwd" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #101094;">public</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> C</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">(</span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #2b91af;">String</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field1</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">,</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="typ" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #2b91af;">String</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> field2</span><span class="pun" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;">);</span><span class="pln" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #303336;"> </span><span class="com" style="font-style: inherit; font-weight: inherit; font-family: inherit; font-size: 13px; color: #858c93;">// constructor</span>

In the above expected output, We don't see class B as it don't have a tag @accept.

For the class A, we Don't entry for the field field2, constructor A(String field1, String field2) and the method public void setField2(String field2) as they hold the tag @ignore.

Can some one help me in achieving so.

Thanks in advance,

Sainath Sagar Dyapa