|
http://www.jindent.com |
Previous: Declarations
|
Next: Annotations
|
| Wrap before left parentheses ( |

always:
|
public void method() { callMethod (argumentOne, argumentTwo); ... } |
never:
|
public void method() { callMethod(argumentOne, argumentTwo); ... } |
on demand:
|
public void method() | { | callMethod | (argumentOne, argumentTwo); ... | } | |
if line exceeds works a bit different:|
public void method() | { | callMethod(argumentOne, argumentTwo); ... | } | |
argumentTwo exceeds the specified maximal line length,
therefore we consider this case as 'the line exceeds maximal line length'
and it will be wrapped after its left parenthesis:
|
public void method() | { | callMethod | (argumentOne, argumentTwo); | ... | } | |
|
See also: | Indentation of wrapped left parentheses ( |
| Indentation of wrapped left parentheses ( |

|
See also: | Wrap before left parentheses ( |
| Wrap first argument |

always:
|
public void method() { callMethod( argumentOne, argumentTwo, argumentThree); ... } |
never:
|
public void method() { callMethod(argumentOne, argumentTwo, argumentThree); ... } |
on demand:
|
public void method() | { | aPrettyLongObjectName.callMethod( | argumentOne, argumentTwo); | ... | } | |
if line exceeds works a bit different:|
public void method() | { | callMethod(argumentOne, argumentTwo); ... | } | |
argumentTwo exceeds the specified maximal line length,
therefore we consider this case as 'the line exceeds maximal line length'
and first argument will be wrapped:
|
public void method() | { | callMethod( | argumentOne, argumentTwo); | ... | } | |
| Indentation of first wrapped argument |

|
See also: | Wrap first argument |
| Wrap all other arguments |

always:
|
public void method() { callMethod(argumentOne, argumentTwo, argumentThree); ... } |
never:
|
public void method() { callMethod(argumentOne, argumentTwo, argumentThree); ... } |
on demand:
|
public void method() | { | callMethod(argumentOne, argumentTwo, argumentThree); | ... | } | |
if line exceeds works a bit different:|
public void method() | { | callMethod(argumentOne, argumentTwo, argumentThree); ... | } | |
argumentThree exceeds the specified maximal line length,
therefore we consider this case as 'the line exceeds maximal line length' and all
arguments will be wrapped:
|
public void method() | { | callMethod(argumentOne, | argumentTwo, | argumentThree); | ... | } | |
| Wrap right parentheses ) |

always:
|
public void method() { callMethod(argumentOne, argumentTwo ); ... } |
never:
|
public void method() { callMethod(argumentOne, argumentTwo); ... } |
on demand:
|
public void method() | { | callMethod(argumentOne, argumentTwo ); | ... | } | |
if line exceeds works a bit different:|
public void method() | { | callMethod(argumentOne, argumentTwo, argumentThree); ... | } | |
argumentThree exceeds the specified maximal line length,
therefore we consider this case as 'the line exceeds maximal line length'
and right parenthesis will be wrapped:
|
public void method() | { | callMethod( | argumentOne, | argumentTwo, | argumentThree | ); | ... | } | |
if line exceeds too. | Allow wrapping of first argument |

|
public void method() { callMethod(argumentOne, argumentTwo, callAnotherMethod(a, b) // this is a nested method call ); ... } |
|
public void method() | { | callMethod(argumentOne, | argumentTwo, | callAnotherMethod( | "a long string which cannot be wrapped", | anotherArgument); | ); | ... | } | |
|
public void method() | { | callMethod(argumentOne, | argumentTwo, | callAnotherMethod("a long string which cannot be wrapped", anotherArgument); | ); | ... | } | |
| Wrap chained constructor and method calls on demand |

|
public void method() | { | mypackage.jindent.utils. | .ClassName.staticMethodCall(a, b); | ... | } | |
|
public void method() | { | mypackage.jindent.utils.ClassName.staticMethodCall(a, b); ... | } | |