mockmaker.structure
Class ReflectionClassStructure

java.lang.Object
  extended bymockmaker.structure.ReflectionClassStructure
All Implemented Interfaces:
ClassStructure

public class ReflectionClassStructure
extends java.lang.Object
implements ClassStructure


Field Summary
private  java.lang.Class cls
           
private  java.lang.Class endOfArray
           
private  int paramNumber
           
 
Constructor Summary
ReflectionClassStructure(java.lang.Class cls)
           
ReflectionClassStructure(java.lang.Class cls, int paramNumber)
           
 
Method Summary
private  MethodStructure[] convertMembers(java.lang.reflect.Member[] members)
           
 int getArrayDimensions()
           
 MethodStructure[] getConstructors()
           
 java.lang.String getExpectationName(java.lang.String name)
           
 MethodStructure[] getMethods()
           
 java.lang.String getName()
           
 boolean isArray()
           
 boolean isInterface()
           
 boolean isPrimitive()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cls

private java.lang.Class cls

endOfArray

private java.lang.Class endOfArray

paramNumber

private int paramNumber
Constructor Detail

ReflectionClassStructure

public ReflectionClassStructure(java.lang.Class cls)

ReflectionClassStructure

public ReflectionClassStructure(java.lang.Class cls,
                                int paramNumber)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface ClassStructure

isInterface

public boolean isInterface()
Specified by:
isInterface in interface ClassStructure

isArray

public boolean isArray()
Specified by:
isArray in interface ClassStructure

getArrayDimensions

public int getArrayDimensions()
Specified by:
getArrayDimensions in interface ClassStructure

isPrimitive

public boolean isPrimitive()
Specified by:
isPrimitive in interface ClassStructure

getMethods

public MethodStructure[] getMethods()
Specified by:
getMethods in interface ClassStructure

getConstructors

public MethodStructure[] getConstructors()
Specified by:
getConstructors in interface ClassStructure

getExpectationName

public java.lang.String getExpectationName(java.lang.String name)
Specified by:
getExpectationName in interface ClassStructure

convertMembers

private MethodStructure[] convertMembers(java.lang.reflect.Member[] members)