|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rmi.rmiSynth.lex.LexStructure
net.rmi.rmiSynth.lex.LexMethod
public class LexMethod
Constructor Summary | |
---|---|
LexMethod()
Constructor |
Method Summary | |
---|---|
void |
addThrow(java.lang.String exName)
Adds exception |
LexBody |
getBody()
Gets body |
LexParam |
getParam(int i)
Gets 1 parameter |
LexParam[] |
getParams()
Gets parameters |
boolean |
ifThrows()
Returns true if methods throws any exception |
java.lang.String |
paramsToString(boolean withType)
Parameters to string |
void |
setBody(LexBody _body)
Sets body |
void |
setParams(LexParam[] _params)
Sets parameters |
java.lang.String |
toString(boolean forClass,
boolean forMain)
LexMethod to string |
Methods inherited from class net.rmi.rmiSynth.lex.LexStructure |
---|
getHeader, getModif, getName, getType, setModif, setName, setType |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LexMethod()
Method Detail |
---|
public LexParam[] getParams()
public void setParams(LexParam[] _params)
_params
- Parameterspublic LexParam getParam(int i)
i
- Index of parameterpublic LexBody getBody()
public void setBody(LexBody _body)
_body
- Bodypublic void addThrow(java.lang.String exName)
exName
- Exception namepublic boolean ifThrows()
public java.lang.String toString(boolean forClass, boolean forMain)
forClass
- Class vs interfaceforMain
- Main method vs all others
public java.lang.String paramsToString(boolean withType)
withType
- If we need it with type or
not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |