org.apache.openjpa.persistence.util
Class SourceCode.Method

java.lang.Object
  extended by org.apache.openjpa.persistence.util.SourceCode.Element<SourceCode.Method>
      extended by org.apache.openjpa.persistence.util.SourceCode.Method
All Implemented Interfaces:
Comparable<SourceCode.Element<SourceCode.Method>>
Enclosing class:
SourceCode

 class SourceCode.Method
extends SourceCode.Element<SourceCode.Method>

Represents Method declaration.


Field Summary
 
Fields inherited from class org.apache.openjpa.persistence.util.SourceCode.Element
access, annos, comment, isFinal, isStatic, name, params, type
 
Constructor Summary
SourceCode.Method(String name, org.apache.openjpa.persistence.util.SourceCode.ClassName returnType)
           
SourceCode.Method(String n, String t)
           
 
Method Summary
 SourceCode.Method addArgument(SourceCode.Argument<org.apache.openjpa.persistence.util.SourceCode.ClassName,String> arg)
           
 SourceCode.Method addCodeLine(String line)
           
 boolean equals(Object other)
           
 SourceCode.Method makeAbstract()
           
 String toString()
           
 void write(PrintWriter out, int tab)
           
 
Methods inherited from class org.apache.openjpa.persistence.util.SourceCode.Element
addAnnotation, addComment, addParameter, compareTo, getType, makeFinal, makePrivate, makeProtected, makePublic, makeStatic
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceCode.Method

SourceCode.Method(String n,
                  String t)

SourceCode.Method

public SourceCode.Method(String name,
                         org.apache.openjpa.persistence.util.SourceCode.ClassName returnType)
Method Detail

addArgument

public SourceCode.Method addArgument(SourceCode.Argument<org.apache.openjpa.persistence.util.SourceCode.ClassName,String> arg)

addCodeLine

public SourceCode.Method addCodeLine(String line)

makeAbstract

public SourceCode.Method makeAbstract()

toString

public String toString()
Overrides:
toString in class Object

write

public void write(PrintWriter out,
                  int tab)
Overrides:
write in class SourceCode.Element<SourceCode.Method>

equals

public boolean equals(Object other)
Overrides:
equals in class Object


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.