public static class Java.METHOD extends Java._StatementBlock
modCount| Constructor and Description |
|---|
METHOD(String modifier,
String retType,
String methodName)
Constructor for the Method object
|
METHOD(String modifier,
String retType,
String methodName,
boolean isInterface) |
| Modifier and Type | Method and Description |
|---|---|
void |
addArg(String type,
String name)
Adds a feature to the Arg attribute of the Method object
|
void |
addArg(String type,
String name,
String comment)
Adds a feature to the Arg attribute of the Method object
|
void |
addTHROWS(String name)
Adds a feature to the THROWS attribute of the Method object
|
void |
addTHROWS(String name,
String comment) |
void |
emit(int indent,
PrintWriter fp)
Write a method.
|
boolean |
isCLinit() |
void |
setComment(String comment)
Sets the comment attribute of the Method object
|
void |
setIsCLinit(boolean mode) |
void |
setReturnComment(String comment) |
addDOWHILE, addFOR, addIF, addLABEL, addLine, addLine, addRETURN, addS, addSWITCH, addTRY, addVAR, addVAR, addWHILEaddC, addC, emitIndentadd, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic METHOD(String modifier, String retType, String methodName)
modifier - retType - methodName - public void setIsCLinit(boolean mode)
public boolean isCLinit()
public void setComment(String comment)
comment - The new comment valuepublic void setReturnComment(String comment)
public void addArg(String type, String name)
type - The feature to be added to the Arg attributename - The feature to be added to the Arg attributepublic void addArg(String type, String name, String comment)
type - The feature to be added to the Arg attributename - The feature to be added to the Arg attributecomment - The feature to be added to the Arg attributepublic void addTHROWS(String name)
name - The feature to be added to the THROWS attributepublic void emit(int indent,
PrintWriter fp)
emit in class Java._Blockindent - fp - Copyright © 2013–2014. All rights reserved.