M
- type representing methodsF
- type representing fieldsS
- type representing signatureP
- type representing source code locationpublic interface GraphElements<M,F,S,P>
Modifier and Type | Method and Description |
---|---|
F |
field(Object object)
Recognizes a field.
|
Object |
fieldDeclaringClass(F field)
Field's declaring class.
|
int |
fieldModifiers(F field)
Field modifiers.
|
String |
fieldName(F field)
Name of a field.
|
String |
fieldTypeName(F field)
Type name of the field.
|
M |
method(Object obj)
Recognize method.
|
byte[] |
methodCode(M method)
Bytecode for a method.
|
Object |
methodDeclaringClass(M method)
Method's declaring class.
|
int |
methodModifiers(M method)
Method modifiers.
|
String |
methodName(M method)
Method name.
|
S |
methodSignature(M method)
Method's signature.
|
StackTraceElement |
methodStackTraceElement(M method,
int bci,
P pos)
Stack trace element for a method, index and position.
|
P |
nodeSourcePosition(Object object)
Recognize a source position.
|
int |
nodeSourcePositionBCI(P pos)
Byte code index of a position.
|
P |
nodeSourcePositionCaller(P pos)
Caller of a position.
|
M |
nodeSourcePositionMethod(P pos)
Method for a position.
|
S |
signature(Object object)
Recognizes signature.
|
int |
signatureParameterCount(S signature)
Number of parameters of a signature.
|
String |
signatureParameterTypeName(S signature,
int index)
Type name of a signature parameter.
|
String |
signatureReturnTypeName(S signature)
Type name of a return type.
|
M method(Object obj)
obj
- the object to checknull
if the object isn't a method, non-null value otherwisebyte[] methodCode(M method)
method
- the methodint methodModifiers(M method)
method
- the methodS methodSignature(M method)
method
- the methodString methodName(M method)
method
- the methodObject methodDeclaringClass(M method)
Class
or be recognizable by
GraphTypes.typeName(java.lang.Object)
method.method
- the methodF field(Object object)
object
- the object to checknull
if the object isn't a field, non-null value otherwiseint fieldModifiers(F field)
field
- the fieldString fieldTypeName(F field)
field
- the fieldString fieldName(F field)
field
- the fieldObject fieldDeclaringClass(F field)
Class
or be recognizable by
GraphTypes.typeName(java.lang.Object)
method.field
- the fieldS signature(Object object)
object
- the object to checknull
if the object isn't a signature, non-null value otherwiseint signatureParameterCount(S signature)
signature
- the signatureString signatureParameterTypeName(S signature, int index)
signature
- the signatureindex
- index from 0 to GraphElements.signatureParameterCount(java.lang.Object)
- 1String signatureReturnTypeName(S signature)
signature
- the signatureP nodeSourcePosition(Object object)
object
- the object to checknull
if the object isn't a position, non-null otherwiseM nodeSourcePositionMethod(P pos)
pos
- the positionP nodeSourcePositionCaller(P pos)
pos
- the positionnull
or another positionint nodeSourcePositionBCI(P pos)
pos
- the positionStackTraceElement methodStackTraceElement(M method, int bci, P pos)
StackTraceElement
and is suitable for Java-like languages. Should you
need to provide more details about the location of multiple strata, see
GraphLocations
interface that gives more control over the provided location data.method
- the methodbci
- the indexpos
- the position