|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.bitmeister.asn1.type.ASN1Type
jp.bitmeister.asn1.type.PrimitiveType<ASN1Type>
jp.bitmeister.asn1.type.builtin.ANY
public class ANY
Represents ASN.1 'ANY' type.
An instance of this class represents an 'ANY' type data, and has an
ASN1Type
value to contain any type of ASN.1 data.
Field Summary |
---|
Fields inherited from class jp.bitmeister.asn1.type.ASN1Type |
---|
stringBuilder |
Constructor Summary | |
---|---|
ANY()
Instantiates an empty ANY . |
|
ANY(ASN1Type value)
Instantiates an ANY and initialize it with the ASN1Type
value. |
Method Summary | ||
---|---|---|
|
accept(ASN1Visitor<R,E> visitor)
Accepts the ASN1Visitor and calls a visit method of the
visitor. |
|
int |
hashCode()
Returns a hash code value for this ASN.1 data. |
|
boolean |
hasValue()
Tests if this ASN.1 data has value. |
|
boolean |
matches(ASN1TagClass tagClass,
int tagNumber)
Tests if the ASN.1 tag matches this ASN1 type. |
|
void |
validate()
Tests if this ASN.1 data has valid value. |
Methods inherited from class jp.bitmeister.asn1.type.PrimitiveType |
---|
clear, clone, cloneValue, set, value, valueEquals |
Methods inherited from class jp.bitmeister.asn1.type.ASN1Type |
---|
equals, instantiate, specification, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ANY()
ANY
.
public ANY(ASN1Type value)
ANY
and initialize it with the ASN1Type
value.
value
- The ASN.1 data to be assigned.Method Detail |
---|
public boolean hasValue()
ASN1Type
hasValue
in class PrimitiveType<ASN1Type>
true
when this ASN.1 data has value.public void validate()
ASN1Type
validate
in class ASN1Type
public boolean matches(ASN1TagClass tagClass, int tagNumber)
ASN1Type
matches
in class ASN1Type
tagClass
- The ASN.1 tag class.tagNumber
- The ASN.1 tag number.
true
when the tag class and the tag number matches this
ASN.1 type.public int hashCode()
ASN1Type
hashCode
in class PrimitiveType<ASN1Type>
Object.hashCode()
public <R,E extends java.lang.Throwable> R accept(ASN1Visitor<R,E> visitor) throws E extends java.lang.Throwable
ASN1Type
ASN1Visitor
and calls a visit
method of the
visitor.
accept
in class ASN1Type
visitor
- The visitor.
E
- When an error occured in the visit
method of the
visitor.
E extends java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |