public class Signatures extends Object
| Constructor and Description |
|---|
Signatures() |
| Modifier and Type | Method and Description |
|---|---|
String |
getSignature(Class<?> c)
Calculate the generic signature of a Class.
|
String |
getSignature(Constructor<?> c)
Calculate the generic signature of a Constructor.
|
String |
getSignature(Field f)
Calculate the generic signature of a Field.
|
String |
getSignature(Method m)
Calculate the generic signature of a Method.
|
String |
getSignature(Object c)
Calculate the generic signature of a Class,Method,Field, or Constructor.
|
boolean |
hasGenerics()
Check if the environment has generics, i.e.
|
String |
normalize(String signature)
Normalize a signature to make sure the name of the variables are always
the same.
|
public boolean hasGenerics()
throws Exception
Exceptionpublic String getSignature(Object c) throws Exception
f - Exceptionpublic String getSignature(Class<?> c) throws Exception
class ::= declaration? reference reference*
f - Exceptionpublic String getSignature(Method m) throws Exception
method ::= declaration? '(' reference* ')' reference
c - Exceptionpublic String getSignature(Constructor<?> c) throws Exception
constructor ::= declaration? '(' reference* ')V'
c - Exceptionpublic String getSignature(Field f) throws Exception
constructor ::= reference
c - Exceptionpublic String normalize(String signature)
Copyright © 2015 aQute SARL. All Rights Reserved.