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
Exception
public String getSignature(Object c) throws Exception
f
- Exception
public String getSignature(Class<?> c) throws Exception
class ::= declaration? reference reference*
f
- Exception
public String getSignature(Method m) throws Exception
method ::= declaration? '(' reference* ')' reference
c
- Exception
public String getSignature(Constructor<?> c) throws Exception
constructor ::= declaration? '(' reference* ')V'
c
- Exception
public String getSignature(Field f) throws Exception
constructor ::= reference
c
- Exception
public String normalize(String signature)
Copyright © 2015 aQute SARL. All rights reserved.