net.sf.jaxme.js
Class JavaMethod

java.lang.Object
  extended bynet.sf.jaxme.js.IndentationEngineImpl
      extended bynet.sf.jaxme.js.JavaSourceObject
          extended bynet.sf.jaxme.js.ConditionalIndentationJavaSourceObject
              extended bynet.sf.jaxme.js.AbstractJavaMethod
                  extended bynet.sf.jaxme.js.JavaMethod
All Implemented Interfaces:
ConditionalIndentationEngine, IndentationEngine

public class JavaMethod
extends AbstractJavaMethod

Implements a Java method.

Author:
Jochen Wiedmann

Nested Class Summary
 
Nested classes inherited from class net.sf.jaxme.js.ConditionalIndentationJavaSourceObject
ConditionalIndentationJavaSourceObject.LJFImpl, ConditionalIndentationJavaSourceObject.LoopVariable
 
Field Summary
 
Fields inherited from interface net.sf.jaxme.js.IndentationEngine
NOTHING
 
Method Summary
 java.lang.String getLoggingSignature()
          Returns the abbreviated method signature: The method name, followed by the parameter types.
 boolean isSynchronized()
          Returns whether this method is synchronized.
 boolean isVoid()
          Returns whether the JavaMethod is void.
 void setSynchronized(boolean pSynchronized)
          Sets whether this method is synchronized.
protected  void writeHeader(IndentationTarget pTarget)
          Adds a header line.
 
Methods inherited from class net.sf.jaxme.js.AbstractJavaMethod
addParam, addParam, addParam, addParam, addParam, addThrows, addThrows, addThrows, clearParams, getExceptions, getParams, isThrowing, isThrowing
 
Methods inherited from class net.sf.jaxme.js.ConditionalIndentationJavaSourceObject
addBreak, addCase, addCase, addCase, addCase, addCase, addCase, addCase, addCase, addCase, addCase, addCase, addCase, addCase, addCase, addCase, addCase, addCatch, addCatch, addCatch, addCatch, addDefault, addElse, addElseIf, addElseIf, addElseIf, addElseIf, addElseIf, addElseIf, addElseIf, addElseIf, addElseIf, addElseIf, addElseIf, addElseIf, addElseIf, addElseIf, addElseIf, addElseIf, addEndFor, addEndIf, addEndSwitch, addEndTry, addEndWhile, addFinally, addFor, addFor, addFor, addFor, addFor, addFor, addFor, addFor, addFor, addFor, addFor, addFor, addFor, addFor, addFor, addFor, addForArray, addForArray, addForArray, addForArray, addForArray, addForArray, addForCollection, addForCollection, addForCollection, addForCollection, addForCollection, addForCollection, addForEnumeration, addForEnumeration, addForEnumeration, addForEnumeration, addForEnumeration, addForEnumeration, addForIterator, addForIterator, addForIterator, addForIterator, addForIterator, addForIterator, addForList, addForList, addForList, addForList, addForList, addForList, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addIf, addSwitch, addSwitch, addSwitch, addSwitch, addSwitch, addSwitch, addSwitch, addSwitch, addSwitch, addSwitch, addSwitch, addSwitch, addSwitch, addSwitch, addSwitch, addSwitch, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addThrowNew, addTry, addWhile, addWhile, addWhile, addWhile, addWhile, addWhile, addWhile, addWhile, addWhile, addWhile, addWhile, addWhile, addWhile, addWhile, addWhile, addWhile, addWhileIterator, getLocalVariableName, newJavaField, newJavaField, newJavaField, newJavaField, write, write
 
Methods inherited from class net.sf.jaxme.js.JavaSourceObject
getComment, getJavaSource, getName, getProtection, getType, isAbstract, isFinal, isStatic, newComment, setAbstract, setFinal, setJavaSource, setName, setProtection, setStatic, setType
 
Methods inherited from class net.sf.jaxme.js.IndentationEngineImpl
addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, asString, checkNulls, clear, getLevel, getLines, getLines, getPlaceHolder, indent, isEmpty, moveToBottom, moveToTop, newPlaceHolder, removePlaceHolder, setLevel, unindent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jaxme.js.IndentationEngine
addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, clear, getLevel, getPlaceHolder, indent, moveToBottom, moveToTop, newPlaceHolder, setLevel, unindent
 

Method Detail

setSynchronized

public void setSynchronized(boolean pSynchronized)

Sets whether this method is synchronized.


isSynchronized

public boolean isSynchronized()

Returns whether this method is synchronized.


writeHeader

protected void writeHeader(IndentationTarget pTarget)
                    throws java.io.IOException

Adds a header line.

Specified by:
writeHeader in class ConditionalIndentationJavaSourceObject
Throws:
java.io.IOException

getLoggingSignature

public java.lang.String getLoggingSignature()

Returns the abbreviated method signature: The method name, followed by the parameter types. This is typically used in logging statements.


isVoid

public boolean isVoid()

Returns whether the JavaMethod is void.