public interface CodeClass
Modifier and Type | Method and Description |
---|---|
CodeMethod |
getConstructor(CodeClass[] args)
Get a constructor by argument list.
|
String |
getDescriptor() |
CodeField |
getFieldByName(String name)
Get a field by its name.
|
Set |
getFields()
Get all fields accessible through this class.
|
List |
getInterfaces() |
String |
getJName() |
CodeMethod |
getMethod(String name,
CodeClass[] args)
Get a method by name and argument list.
|
Set |
getMethods()
Get all methods declared by this class and its super classes, removing
all super class methods that are over ridden.
|
Set |
getMethodsByName(String name)
Get the name of all methods that could be invoked through this class with
a given name.
|
int |
getModifiers()
Get the modifiers associated with the class.
|
String |
getName() |
CodeClass |
getSuperClass() |
boolean |
isArray()
Discover if the class is an array type.
|
boolean |
isPrimitive()
Discover if the class represents a primitive type.
|
String getDescriptor()
CodeClass getSuperClass()
List getInterfaces()
Set getMethods()
This should return methods, regardless of their accessability.
Set getMethodsByName(String name)
name
- the name of the methodCodeMethod getMethod(String name, CodeClass[] args) throws NoSuchMethodException
name
- the name of the methodargs
- the arguments it takesNoSuchMethodException
- if there is no maching methodCodeMethod getConstructor(CodeClass[] args) throws NoSuchMethodException
args
- the arguments it takesNoSuchMethodException
- if there is no matching constructorCodeField getFieldByName(String name) throws NoSuchFieldException
name
- the field nameNoSuchFieldException
- if there is no field by that name accessible
through this classSet getFields()
int getModifiers()
boolean isPrimitive()
boolean isArray()
Copyright © 2014 BioJava. All rights reserved.