public class AllSimpleParamSignatures extends Object
All constructors and methods in a class.
aliteralmind __DASH__ github __AT__ yahoo __DOT__ com), dual-licensed under the LGPL (version 3.0 or later) or the ASL (version 2.0). See source code for details. http://codelet.aliteralmind.com, https://github.com/aliteralmind/codelet| Constructor and Description |
|---|
AllSimpleParamSignatures(Class<?> containing_cls,
Declared declared)
Create a new instance from a class.
|
| Modifier and Type | Method and Description |
|---|---|
StringBuilder |
appendFullToString(StringBuilder to_appendTo)
A full listing of all constructors and functions.
|
StringBuilder |
appendToString(StringBuilder to_appendTo)
A summary of all constructors and functions.
|
static StringBuilder |
appendToStringForAllListsInArray(StringBuilder to_appendTo,
String prefix,
SimpleParamNameSignature[] param_lists,
String between)
For displaying all parameter-lists in an array.
|
static StringBuilder |
appendToStringForAllListsInList(StringBuilder to_appendTo,
String prefix,
List<? extends SimpleParamNameSignature> param_listList,
String between)
For displaying all parameter-lists in a list.
|
String |
fullToString() |
List<ConstructorSimpleParamSig> |
getConstructorList()
All constructors.
|
Class<?> |
getContainingClass()
The class containing the constructors and methods.
|
List<MethodSimpleParamSig> |
getMethodListForNameCrashIfNone(String name)
Get the methods with a name, or crash if no methods have that name.
|
Map<String,List<MethodSimpleParamSig>> |
getMethodMap()
All methods.
|
static List<ConstructorSimpleParamSig> |
newConstructorList(Class<?> containing_cls,
Declared declared,
Sorted sort)
Create a new list of all constructors in a class.
|
static Map<String,List<MethodSimpleParamSig>> |
newMethodMap(Class<?> containing_cls,
Declared declared,
SortListValues sort_lists,
ImmutableValues immutable_lists)
Create a new map of all methods in a class.
|
String |
toString() |
static String |
toStringForAllListsInArray(String prefix,
SimpleParamNameSignature[] param_lists,
String between)
For displaying all parameter-lists in an array.
|
static String |
toStringForAllListsInList(String prefix,
List<? extends SimpleParamNameSignature> param_listList,
String between)
For displaying all parameter-lists in a list.
|
public AllSimpleParamSignatures(Class<?> containing_cls, Declared declared)
Create a new instance from a class.
Sets
getConstructorList() to an immutable version of
AllSimpleParamSignatures.newConstructorList(containing_cls, declared, Sorted.YES)getMethodMap() to an immutable version of
AllSimpleParamSignatures.newMethodMap(containing_cls, declared, SortListValues.ORIGINAL, ImmutableValues.YES)containing_cls - The class containing the methods. May not be null and should be the class whose methods are in map. Get with getContainingClass(). Get with getMethodMap().public List<ConstructorSimpleParamSig> getConstructorList()
All constructors.
null, immutable list of all constructors in the class.getMethodMap(),
AllSimpleParamSignatures(Class, Declared)public Map<String,List<MethodSimpleParamSig>> getMethodMap()
All methods.
null, immutable map of all methods in the class.getConstructorList(),
AllSimpleParamSignatures(Class, Declared),
getMethodListForNameCrashIfNone(String)public List<MethodSimpleParamSig> getMethodListForNameCrashIfNone(String name)
Get the methods with a name, or crash if no methods have that name.
getMethodMap().get(name)RTNoSuchMethodException - If no methods have the name name.public Class<?> getContainingClass()
The class containing the constructors and methods.
public String toString()
toString in class ObjectappendToString(new StringBuilder()).toString()public StringBuilder appendToString(StringBuilder to_appendTo)
A summary of all constructors and functions.
to_appendTo - May not be null.toString()public String fullToString()
appendFullToString(new StringBuilder()).toString()public StringBuilder appendFullToString(StringBuilder to_appendTo)
A full listing of all constructors and functions.
to_appendTo - May not be null.fullToString()public static final String toStringForAllListsInList(String prefix, List<? extends SimpleParamNameSignature> param_listList, String between)
For displaying all parameter-lists in a list.
appendToStringForAllListsInArray((new StringBuilder()), prefix, param_listList, between).toString()public static final StringBuilder appendToStringForAllListsInList(StringBuilder to_appendTo, String prefix, List<? extends SimpleParamNameSignature> param_listList, String between)
For displaying all parameter-lists in a list.
appendToStringForAllListsInArray(new StringBuilder(), prefix, methods, between).toString()public static final String toStringForAllListsInArray(String prefix, SimpleParamNameSignature[] param_lists, String between)
For displaying all parameter-lists in an array.
appendToStringForAllListsInArray(new StringBuilder(), prefix, methods, between).toString()public static final StringBuilder appendToStringForAllListsInArray(StringBuilder to_appendTo, String prefix, SimpleParamNameSignature[] param_lists, String between)
For displaying all parameter-lists in an array.
to_appendTo - May not be null.prefix - What to print before each method. Setting this to null is the same as setting it to the empty-string ("").param_lists - May not be null, and no element may be null.between - What to print between each method. Should not be null or empty.public static final List<ConstructorSimpleParamSig> newConstructorList(Class<?> containing_cls, Declared declared, Sorted sort)
Create a new list of all constructors in a class.
public static final Map<String,List<MethodSimpleParamSig>> newMethodMap(Class<?> containing_cls, Declared declared, SortListValues sort_lists, ImmutableValues immutable_lists)
Create a new map of all methods in a class.
containing_cls - May not be null.declared - If Declared.YES, then declared methods are retrieved. If NO, non-declared.MapUtil.<MethodSimpleParamSig,String>getWithModifiedListValues([the-map], sort_lists, immutable_lists)Copyright 2014, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.
https://github.com/aliteralmind/codelet