org.multiverse.instrumentation.metadata
Class MethodMetadata
java.lang.Object
org.multiverse.instrumentation.metadata.MethodMetadata
public final class MethodMetadata
- extends java.lang.Object
Contains the metadata for a method.
- Author:
- Peter Veentjer.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodMetadata
public MethodMetadata(ClassMetadata classMetadata,
java.lang.String name,
java.lang.String desc)
getGetterSetterField
public FieldMetadata getGetterSetterField()
getMethodType
public MethodType getMethodType()
setGetterSetter
public void setGetterSetter(MethodType getterSetter,
FieldMetadata getterSetterField)
getTransactionMetadata
public TransactionMetadata getTransactionMetadata()
setTransactionMetadata
public void setTransactionMetadata(TransactionMetadata transactionMetadata)
addException
public void addException(java.lang.String exception)
- Adds an exception (internal name) to the set of exceptions this method can throw. Call is
ignored if already added.
- Parameters:
exception -
- Throws:
java.lang.NullPointerException - if exception is null.
checkIfSpecificTransactionIsThrown
public boolean checkIfSpecificTransactionIsThrown(java.lang.Class exception)
- Only checks if the method explicitly throws this exception. No check is done
on the subclass of the exception, needs to be added in the future.
- Parameters:
exception -
- Returns:
getExceptions
public java.util.List<java.lang.String> getExceptions()
isAbstract
public boolean isAbstract()
isNative
public boolean isNative()
isStatic
public boolean isStatic()
isFinal
public boolean isFinal()
getAccess
public int getAccess()
setAccess
public void setAccess(int access)
isConstructor
public boolean isConstructor()
getDesc
public java.lang.String getDesc()
getName
public java.lang.String getName()
isTransactional
public boolean isTransactional()
getClassMetadata
public ClassMetadata getClassMetadata()
getTransactionalMetadata
public TransactionMetadata getTransactionalMetadata()
setTransactionalMetadata
public void setTransactionalMetadata(TransactionMetadata transactionMetadata)
toFullName
public java.lang.String toFullName()
Copyright © 2008-2010 Multiverse. All Rights Reserved.