net.rmi.rmiSynth.lex
Class Reflector

java.lang.Object
  extended by net.rmi.rmiSynth.lex.Reflector

public class Reflector
extends java.lang.Object


Constructor Summary
Reflector(java.lang.Object _o)
          Constructor
 
Method Summary
 LexField[] getFields()
          Gets all fields
 LexMethod[] getMethods()
          Gets all methods
 LexModif getModifiers()
          Gets class modifiers
 LexModif getModifiers(java.lang.reflect.Member mem)
          Gets member modifiers
 java.lang.String getName()
          Gets class name
 java.lang.String getName(java.lang.reflect.Member mem)
          Gets member name
 LexParam[] getParams(java.lang.reflect.Method mtd)
          Gets all parameters
 LexType getType(java.lang.Class prm)
          Gets parameter type
 LexType getType(java.lang.reflect.Field fld)
          Gets field type
 LexType getType(java.lang.reflect.Method mtd)
          Gets method return type
 int getVisibility(java.lang.Class cls)
          Gets class visibility
 int getVisibility(java.lang.reflect.Member mem)
          Gets member visibility
 java.lang.String removeGarbage(java.lang.String _s)
          Removes garabage from name
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reflector

public Reflector(java.lang.Object _o)
Constructor

Method Detail

getVisibility

public int getVisibility(java.lang.Class cls)
Gets class visibility

Parameters:
cls - Class
Returns:
v Visibility

getModifiers

public LexModif getModifiers()
Gets class modifiers

Returns:
lmd modifiers

getName

public java.lang.String getName()
Gets class name

Returns:
c.getName() Class name

getVisibility

public int getVisibility(java.lang.reflect.Member mem)
Gets member visibility

Parameters:
mem - Member
Returns:
v Visibility

getModifiers

public LexModif getModifiers(java.lang.reflect.Member mem)
Gets member modifiers

Parameters:
mem - Member
Returns:
lmd modifiers

getName

public java.lang.String getName(java.lang.reflect.Member mem)
Gets member name

Returns:
mem.getName() Member name

getType

public LexType getType(java.lang.reflect.Field fld)
Gets field type

Parameters:
fld - Field
Returns:
ltp Field type

getFields

public LexField[] getFields()
Gets all fields

Returns:
lfd Fields

getType

public LexType getType(java.lang.reflect.Method mtd)
Gets method return type

Parameters:
mtd - Method
Returns:
ltp Method return type

getMethods

public LexMethod[] getMethods()
Gets all methods

Returns:
lmd Methods

getType

public LexType getType(java.lang.Class prm)
Gets parameter type

Parameters:
prm - Parameter
Returns:
ltp Parameter type

getParams

public LexParam[] getParams(java.lang.reflect.Method mtd)
Gets all parameters

Parameters:
mtd - Method
Returns:
lpm Parameters

removeGarbage

public java.lang.String removeGarbage(java.lang.String _s)
Removes garabage from name

Parameters:
_s - String to process
Returns:
s