jp.bitmeister.asn1.type.builtin
Class BOOLEAN
java.lang.Object
jp.bitmeister.asn1.type.ASN1Type
jp.bitmeister.asn1.type.PrimitiveType<java.lang.Boolean>
jp.bitmeister.asn1.type.builtin.BOOLEAN
- All Implemented Interfaces:
- java.lang.Cloneable
public class BOOLEAN
- extends PrimitiveType<java.lang.Boolean>
Represents ASN.1 'BOOLEAN' type.
An instance of this class represents a 'BOOLEAN' type data, and has a
Boolean
value.
- Author:
- WATANABE, Jun.
Constructor Summary |
BOOLEAN()
Instantiates an empty BOOLEAN . |
BOOLEAN(java.lang.Boolean value)
Instantiates a BOOLEAN and initialize it with the Boolean
value. |
Method Summary |
<R,E extends java.lang.Throwable>
R |
|
accept(ASN1Visitor<R,E> visitor)
Accepts the ASN1Visitor and calls a visit method of the
visitor. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
BOOLEAN
public BOOLEAN()
- Instantiates an empty
BOOLEAN
.
BOOLEAN
public BOOLEAN(java.lang.Boolean value)
- Instantiates a
BOOLEAN
and initialize it with the Boolean
value.
- Parameters:
value
- The value to be assigned.
accept
public <R,E extends java.lang.Throwable> R accept(ASN1Visitor<R,E> visitor)
throws E extends java.lang.Throwable
- Description copied from class:
ASN1Type
- Accepts the
ASN1Visitor
and calls a visit
method of the
visitor.
- Specified by:
accept
in class ASN1Type
- Parameters:
visitor
- The visitor.
- Returns:
- Result.
- Throws:
E
- When an error occured in the visit
method of the
visitor.
E extends java.lang.Throwable
Copyright © 2012 BitMeister Inc. All Rights Reserved.