net.rmi.rmiSynth.lex
Class LexMethod

java.lang.Object
  extended by net.rmi.rmiSynth.lex.LexStructure
      extended by net.rmi.rmiSynth.lex.LexMethod

public class LexMethod
extends LexStructure


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

LexMethod

public LexMethod()
Constructor

Method Detail

getParams

public LexParam[] getParams()
Gets parameters

Returns:
params

setParams

public void setParams(LexParam[] _params)
Sets parameters

Parameters:
_params - Parameters

getParam

public LexParam getParam(int i)
Gets 1 parameter

Parameters:
i - Index of parameter

getBody

public LexBody getBody()
Gets body

Returns:
body

setBody

public void setBody(LexBody _body)
Sets body

Parameters:
_body - Body

addThrow

public void addThrow(java.lang.String exName)
Adds exception

Parameters:
exName - Exception name

ifThrows

public boolean ifThrows()
Returns true if methods throws any exception


toString

public java.lang.String toString(boolean forClass,
                                 boolean forMain)
LexMethod to string

Parameters:
forClass - Class vs interface
forMain - Main method vs all others
Returns:
s

paramsToString

public java.lang.String paramsToString(boolean withType)
Parameters to string

Parameters:
withType - If we need it with type or not
Returns:
s