jp.bitmeister.asn1.type.builtin
Class NULL

java.lang.Object
  extended by jp.bitmeister.asn1.type.ASN1Type
      extended by jp.bitmeister.asn1.type.PrimitiveType<java.lang.Void>
          extended by jp.bitmeister.asn1.type.builtin.NULL
All Implemented Interfaces:
java.lang.Cloneable

public class NULL
extends PrimitiveType<java.lang.Void>

Represents ASN.1 'NULL' type.

An instance of this class represents a 'NULL' type data, and the value is null any time.

Author:
WATANABE, Jun.

Field Summary
 
Fields inherited from class jp.bitmeister.asn1.type.ASN1Type
stringBuilder
 
Constructor Summary
NULL()
          Instantiates a NULL.
 
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.
 boolean hasValue()
          Tests if this ASN.1 data has value.
 
Methods inherited from class jp.bitmeister.asn1.type.PrimitiveType
clear, clone, cloneValue, hashCode, set, value, valueEquals
 
Methods inherited from class jp.bitmeister.asn1.type.ASN1Type
equals, instantiate, matches, specification, toString, validate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NULL

public NULL()
Instantiates a NULL.

Method Detail

hasValue

public boolean hasValue()
Description copied from class: ASN1Type
Tests if this ASN.1 data has value.

Overrides:
hasValue in class PrimitiveType<java.lang.Void>
Returns:
true when this ASN.1 data has value.

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.