Class MethodFactory
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.internal.parser.v0.factories.MethodFactory
-
- All Implemented Interfaces:
IPoolFactory<IMCMethod>
final class MethodFactory extends java.lang.Object implements IPoolFactory<IMCMethod>
Factory that creates aIMCMethod
from the method pool.
-
-
Field Summary
Fields Modifier and Type Field Description private int
m_methodClass
private int
m_methodModifiers
private int
m_methodName
private int
m_methodSignatureIndex
private CanonicalConstantMap<IMCMethod>
methodMap
-
Constructor Summary
Constructors Constructor Description MethodFactory(ValueDescriptor[] descriptors, CanonicalConstantMap<IMCMethod> methodMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private IMCMethod
createMethod(java.lang.Object[] o)
IMCMethod
createObject(long identifier, java.lang.Object source)
Creates a replacement object for a value in a poolContentType<IMCMethod>
getContentType()
-
-
-
Field Detail
-
m_methodClass
private final int m_methodClass
-
m_methodName
private final int m_methodName
-
m_methodSignatureIndex
private final int m_methodSignatureIndex
-
m_methodModifiers
private final int m_methodModifiers
-
methodMap
private final CanonicalConstantMap<IMCMethod> methodMap
-
-
Constructor Detail
-
MethodFactory
public MethodFactory(ValueDescriptor[] descriptors, CanonicalConstantMap<IMCMethod> methodMap)
-
-
Method Detail
-
createObject
public IMCMethod createObject(long identifier, java.lang.Object source)
Description copied from interface:IPoolFactory
Creates a replacement object for a value in a pool- Specified by:
createObject
in interfaceIPoolFactory<IMCMethod>
- Parameters:
identifier
- the identifier that is used to look up the object- Returns:
- the replacement object that will be used instead
-
createMethod
private IMCMethod createMethod(java.lang.Object[] o)
-
getContentType
public ContentType<IMCMethod> getContentType()
- Specified by:
getContentType
in interfaceIPoolFactory<IMCMethod>
-
-