Jindent - Java Source Code Formatter http://www.jindent.com
 



title
5.6.1.13.2 Separator comments

Static initializers

Static initializers

Inserts separator comment before static initializers.






Defines separator comment for static initializers.



Static fields

Static fields

Inserts separator comment before static fields.






Defines separator comment for static fields.



Initializers

Initializers

Inserts separator comment before initializers.






Defines separator comment for initializers.



Fields

Fields

Inserts separator comment before fields.






Defines separator comment for fields.



Enums

Enums

Inserts separator comment before enums.






Defines separator comment for enums.



Constant enums

Constant enums

Inserts separator comment before constant enums.






Defines separator comment for constant enums.



Annotations

Annotations

Inserts separator comment before annotations.






Defines separator comment for annotations.



Constructors

Constructors

Inserts separator comment before constructors.






Defines separator comment for constructors.



Methods

Methods

Inserts separator comment before methods.






Defines separator comment for methods.



Classes

Classes

Inserts separator comment before classes.






Defines separator comment for classes.



Inner classes

Inner classes

Inserts separator comment before inner classes.






Defines separator comment for inner classes.



Interfaces

Interfaces

Inserts separator comment before interfaces.






Defines separator comment for interfaces.



Inner interfaces

Inner interfaces

Inserts separator comment before inner interfaces.






Defines separator comment for interfaces.



JDK imports

JDK imports

Inserts separator comment before import declarations which belong to JDK packages.






Defines separator comment for import declarations which belong to JDK packages.



Non-JDK imports

Non-JDK imports

Inserts separator comment before import declarations which do not belong to JDK packages.






Defines separator comment for import declarations which do not belong to JDK packages.



Get methods

Get methods

Inserts separator comment before getter methods. This setting fine grains setting: "Methods"






Defines separator comment for getter methods.



Set methods

Set methods

Inserts separator comment before setter methods. This setting fine grains setting: "Methods"






Defines separator comment for setter methods.



Characters to fill up separator comments

Characters to fill up
	separator comments

Specifies characters to fill up separator comments.

Separator comments will be filled up to a specific line length defined by setting: "Maximal line length used to fill up separator comments"

Character to fill up is '-' and "Maximal line length used to fill up separator comments" is set to 50.

public class MyClass {                  
                                        
    
//~ field declarations ------------------------
                                        
    
private int fieldA;                 
    
private int fieldB;                 
                                        
    
//~ constructor declarations ------------------
                                        
    
public MyClass(int i) {             
        ...                             
    }                                   
    
public MyClass() {                  
        ...                             
    }                                   
                                        
    
//~ method declarations -----------------------
                                        
    
public void methodA() {             
        ...                             
    }                                   
    
public void mehtodB() {             
        ...                             
    }                                   
}                                       


Character to fill up is '=' and "Maximal line length used to fill up separator comments" is set to 60.

public class MyClass {                  
                                        
    
//~ field declarations ==================================
                                        
    
private int fieldA;                 
    
private int fieldB;                 
                                        
    
//~ constructor declarations ============================
                                        
    
public MyClass(int i) {             
        ...                             
    }                                   
    
public MyClass() {                  
        ...                             
    }                                   
                                        
    
//~ method declarations =================================
                                        
    
public void methodA() {             
        ...                             
    }                                   
    
public void mehtodB() {             
        ...                             
    }                                   
}                                       


Character to fill up is '/' and "Maximal line length used to fill up separator comments" is set to 55.

public class MyClass {                  
                                        
    
//~ field declarations /////////////////////////////            
                                        
    
private int fieldA;                 
    
private int fieldB;                 
                                        
    
//~ constructor declarations ///////////////////////      
                                        
    
public MyClass(int i) {             
        ...                             
    }                                   
    
public MyClass() {                  
        ...                             
    }                                   
                                        
    
//~ method declarations ////////////////////////////           
                                        
    
public void methodA() {             
        ...                             
    }                                   
    
public void mehtodB() {             
        ...                             
    }                                   
}                                       

See also... See also: Maximal line length used to fill up separator comments




Maximal line length used to fill up separator comments

Maximal line length used
	to fill up separator comments

Specifies maximal line length used to fill up separator comments with characters from setting: "Characters to fill up separator comments"

If separator comments shall not be filled up with characters then set this setting to 0.

See also... See also: Characters to fill up separator comments