Enum StackTraceElementMarshaller
- java.lang.Object
-
- java.lang.Enum<StackTraceElementMarshaller>
-
- org.wildfly.clustering.marshalling.protostream.StackTraceElementMarshaller
-
- All Implemented Interfaces:
Serializable,Comparable<StackTraceElementMarshaller>,org.infinispan.protostream.BaseMarshaller<StackTraceElement>,org.infinispan.protostream.ProtobufTagMarshaller<StackTraceElement>,Marshallable<StackTraceElement>,ProtoStreamMarshaller<StackTraceElement>
public enum StackTraceElementMarshaller extends Enum<StackTraceElementMarshaller> implements ProtoStreamMarshaller<StackTraceElement>
- Author:
- Paul Ferraro
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends StackTraceElement>getJavaClass()Returns the type of object handled by this marshallable instance.StackTraceElementreadFrom(ProtoStreamReader reader)Reads an object from the specified reader.static StackTraceElementMarshallervalueOf(String name)Returns the enum constant of this type with the specified name.static StackTraceElementMarshaller[]values()Returns an array containing the constants of this enum type, in the order they are declared.voidwriteTo(ProtoStreamWriter writer, StackTraceElement element)Writes the specified object to the specified writer.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.wildfly.clustering.marshalling.protostream.ProtoStreamMarshaller
getTypeName, read, write
-
-
-
-
Enum Constant Detail
-
INSTANCE
public static final StackTraceElementMarshaller INSTANCE
-
-
Method Detail
-
values
public static StackTraceElementMarshaller[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StackTraceElementMarshaller c : StackTraceElementMarshaller.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StackTraceElementMarshaller valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
readFrom
public StackTraceElement readFrom(ProtoStreamReader reader) throws IOException
Description copied from interface:MarshallableReads an object from the specified reader.- Specified by:
readFromin interfaceMarshallable<StackTraceElement>- Parameters:
reader- a ProtoStream reader- Returns:
- the read object
- Throws:
IOException- if the object could not be read
-
writeTo
public void writeTo(ProtoStreamWriter writer, StackTraceElement element) throws IOException
Description copied from interface:MarshallableWrites the specified object to the specified writer.- Specified by:
writeToin interfaceMarshallable<StackTraceElement>- Parameters:
writer- a ProtoStream writerelement- the object to be written- Throws:
IOException- if the object could not be written
-
getJavaClass
public Class<? extends StackTraceElement> getJavaClass()
Description copied from interface:MarshallableReturns the type of object handled by this marshallable instance.- Specified by:
getJavaClassin interfaceorg.infinispan.protostream.BaseMarshaller<StackTraceElement>- Specified by:
getJavaClassin interfaceMarshallable<StackTraceElement>- Returns:
- the type of object handled by this marshallable instance.
-
-