CodeGen
Class Methode

java.lang.Object
  extended by CodeGen.Methode

public class Methode
extends java.lang.Object

Helper class for keeping track of methods inside CodeGen


Field Summary
private  boolean _const
          Whether or not the method is const (== all parameters are const)
private  ClassInfo cinfo
          The declaring class
private  java.lang.reflect.Method meth
          Reflection method object
private  MethodInfo minfo
          Info object
 
Constructor Summary
Methode(ClassInfo cinfo, java.lang.reflect.Method meth)
          Default constructor
 
Method Summary
 boolean _const()
          Whether or not the method is const
 boolean dont()
          Whether or not this method is exported
static Methode[] fetchAll(ClassInfo cinfo)
          Generate Methode-objects for all methods of a class
 java.lang.String head(boolean isrResult)
          Generate a method header
 boolean here()
          Whether or not this method was declared in the class itself or inherited from superclasses
 boolean isStatic()
          Whether or not this method is static
 boolean isVoid()
          Whether or not this method is void
 int len()
          Number of parameters this method takes
 MethodInfo minfo()
          The info object
 java.lang.String modifiers()
          Modifiers (public, private, ...) of this method
 java.lang.String name()
          Name of the method
 java.lang.String params()
          Parameters of this method
 java.lang.String returns()
          Return type of this method
 java.lang.String returnsT()
          Return type with template parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cinfo

private ClassInfo cinfo
The declaring class


meth

private java.lang.reflect.Method meth
Reflection method object


minfo

private MethodInfo minfo
Info object


_const

private boolean _const
Whether or not the method is const (== all parameters are const)

Constructor Detail

Methode

public Methode(ClassInfo cinfo,
               java.lang.reflect.Method meth)
Default constructor

Parameters:
cinfo - Declaring class
meth - Method
Method Detail

_const

public boolean _const()
Whether or not the method is const

Returns:
True if const, false otherwise

dont

public boolean dont()
Whether or not this method is exported

Returns:
False if exported, true otherwise

len

public int len()
Number of parameters this method takes

Returns:
Number of parameters

here

public boolean here()
Whether or not this method was declared in the class itself or inherited from superclasses

Returns:
True if declared locally, false otherwise

isVoid

public boolean isVoid()
Whether or not this method is void

Returns:
True if void, false otherwise

isStatic

public boolean isStatic()
Whether or not this method is static

Returns:
True if static, false otherwise

head

public java.lang.String head(boolean isrResult)
Generate a method header

Parameters:
isrResult - If true, the header for an rResult wrapper method will be generated
Returns:
Method header as String

name

public java.lang.String name()
Name of the method

Returns:
String

modifiers

public java.lang.String modifiers()
Modifiers (public, private, ...) of this method

Returns:
String

params

public java.lang.String params()
Parameters of this method

Returns:
String

returns

public java.lang.String returns()
Return type of this method

Returns:
String

returnsT

public java.lang.String returnsT()
Return type with template parameters

Returns:
String

minfo

public MethodInfo minfo()
The info object

Returns:
MethodInfo

fetchAll

public static Methode[] fetchAll(ClassInfo cinfo)
Generate Methode-objects for all methods of a class

Parameters:
cinfo - Java class
Returns:
Array of Methode-objects