Visitar URL original
Add a file templates · square/java-code-styles@e306095 · GitHub
Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Commit e306095

Browse files
committed
Add a file templates
1 parent 22ce1c8 commit e306095

3 files changed

Lines changed: 56 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#if (${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
2+
3+
#if (${IMPORT_BLOCK} != "")${IMPORT_BLOCK}
4+
#end
5+
#parse("File Header.java")
6+
7+
#if (${VISIBILITY} == "PUBLIC")public #end #if (${ABSTRACT} == "TRUE")abstract #end #if (${FINAL} == "TRUE")final #end class ${NAME} #if (${SUPERCLASS} != "")extends ${SUPERCLASS} #end #if (${INTERFACES} != "")implements ${INTERFACES} #end {
8+
9+
// ========================================================================
10+
// constants
11+
// ========================================================================
12+
13+
// ========================================================================
14+
// fields
15+
// ========================================================================
16+
17+
// ========================================================================
18+
// constructors
19+
// ========================================================================
20+
21+
// ========================================================================
22+
// getter & setter
23+
// ========================================================================
24+
25+
// ========================================================================
26+
// methods for/from superclass/interfaces
27+
// ========================================================================
28+
29+
// ========================================================================
30+
// methods
31+
// ========================================================================
32+
33+
// ========================================================================
34+
// inner and anonymous classes
35+
// ========================================================================
36+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#if (${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
2+
3+
#if (${IMPORT_BLOCK} != "")${IMPORT_BLOCK}
4+
#end
5+
#parse("File Header.java")
6+
7+
#if (${VISIBILITY} == "PUBLIC")public #end interface ${NAME} #if (${INTERFACES} != "")extends ${INTERFACES} #end {
8+
9+
// ========================================================================
10+
// constants
11+
// ========================================================================
12+
13+
// ========================================================================
14+
// methods
15+
// ========================================================================
16+
}

‎install.sh‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ do
2525
# Install options ("Exclude from Import and Completion")
2626
mkdir -p $i/options
2727
cp -frv "$CONFIGS/options"/* $i/options
28+
29+
# Install fileTemplates
30+
mkdir -p $i/fileTemplates
31+
cp -frv "$CONFIGS/fileTemplates"/* $i/fileTemplates
2832
fi
2933
done
3034

0 commit comments

Comments
 (0)