org.apache.openjpa.persistence.util
Class SourceCode.Method
java.lang.Object
   org.apache.openjpa.persistence.util.SourceCode.Element<SourceCode.Method>
org.apache.openjpa.persistence.util.SourceCode.Element<SourceCode.Method>
       org.apache.openjpa.persistence.util.SourceCode.Method
org.apache.openjpa.persistence.util.SourceCode.Method
- All Implemented Interfaces: 
- Comparable<SourceCode.Element<SourceCode.Method>>
- Enclosing class:
- SourceCode
- public class SourceCode.Method 
- extends SourceCode.Element<SourceCode.Method>
Represents Method declaration.
 
 
 
 
 
 
tabCount
int tabCount
tab
String tab
SourceCode.Method
SourceCode.Method(String n,
                  String t)
SourceCode.Method
public SourceCode.Method(String name,
                         org.apache.openjpa.persistence.util.SourceCode.ClassName returnType)
addArgument
public SourceCode.Method addArgument(SourceCode.Argument<org.apache.openjpa.persistence.util.SourceCode.ClassName,String> arg)
- 
 
addArgument
public SourceCode.Method addArgument(String className,
                                     String argName)
- 
 
setTab
public void setTab(boolean inc)
- 
 
addCodeLine
public SourceCode.Method addCodeLine(String line)
- 
 
addCodeLine
public SourceCode.Method addCodeLine(String line,
                                     boolean tabInc)
- if tabInc = true, the current line, and all following lines will be tabbed.
  If false, a tab will be removed.
 
- 
 
makeAbstract
public SourceCode.Method makeAbstract()
- 
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object
 
- 
 
write
public void write(PrintWriter out,
                  int tab)
- 
- Overrides:
- writein class- SourceCode.Element<SourceCode.Method>
 
- 
 
equals
public boolean equals(Object other)
- 
- Overrides:
- equalsin class- Object
 
- 
 
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.