Search in sources :

Example 66 with ASN1Object

use of com.mindbright.asn1.ASN1Object in project titan.EclipsePlug-ins by eclipse.

the class ObjectClassSyntax_Parser method parseObject.

private ASN1Object parseObject() {
    ASN1Object object = null;
    if (mBlock != null) {
        final Asn1Parser parser = BlockLevelTokenStreamTracker.getASN1ParserForBlock(mBlock, internalIndex);
        if (parser != null) {
            object = parser.pr_special_Object().object;
            internalIndex += parser.nof_consumed_tokens();
            final List<SyntacticErrorStorage> errors = parser.getErrorStorage();
            if (null != errors && !errors.isEmpty()) {
                for (int i = 0; i < errors.size(); i++) {
                    ParserMarkerSupport.createOnTheFlyMixedMarker((IFile) mBlock.getLocation().getFile(), errors.get(i), IMarker.SEVERITY_ERROR);
                }
            }
        }
    }
    return object;
}
Also used : Asn1Parser(org.eclipse.titan.designer.parsers.asn1parser.Asn1Parser) SyntacticErrorStorage(org.eclipse.titan.common.parsers.SyntacticErrorStorage) ASN1Object(org.eclipse.titan.designer.AST.ASN1.ASN1Object)

Example 67 with ASN1Object

use of com.mindbright.asn1.ASN1Object in project titan.EclipsePlug-ins by eclipse.

the class ReferencedObject method getRefdLast.

/**
 * Returns the ASN.1 object referred last on the chain of references.
 *
 * @param timestamp
 *                the time stamp of the actual semantic check cycle.
 *
 * @return the ASN.1 object referred last on the chain of references.
 */
public Object_Definition getRefdLast(final CompilationTimeStamp timestamp) {
    final IReferenceChain referenceChain = ReferenceChain.getInstance(CIRCULAROBJECTREFERENCE, true);
    ASN1Object object = this;
    while (object instanceof ReferencedObject && !object.getIsErroneous(timestamp)) {
        object = ((ReferencedObject) object).getRefd(timestamp, referenceChain);
    }
    referenceChain.release();
    return (Object_Definition) object;
}
Also used : IReferenceChain(org.eclipse.titan.designer.AST.IReferenceChain) ASN1Object(org.eclipse.titan.designer.AST.ASN1.ASN1Object)

Aggregations

IOException (java.io.IOException)35 Asn1Object (com.android.hotspot2.asn1.Asn1Object)25 ASN1Object (org.bouncycastle.asn1.ASN1Object)20 ArrayList (java.util.ArrayList)16 Asn1Constructed (com.android.hotspot2.asn1.Asn1Constructed)15 HashMap (java.util.HashMap)15 Asn1Object (io.churchkey.asn1.Asn1Object)13 DerParser (io.churchkey.asn1.DerParser)12 X509Certificate (java.security.cert.X509Certificate)12 Asn1Integer (com.android.hotspot2.asn1.Asn1Integer)10 DERBitString (com.android.org.bouncycastle.asn1.DERBitString)10 DERIA5String (com.android.org.bouncycastle.asn1.DERIA5String)10 DERPrintableString (com.android.org.bouncycastle.asn1.DERPrintableString)10 ByteBuffer (java.nio.ByteBuffer)10 Key (io.churchkey.Key)8 ByteArrayInputStream (java.io.ByteArrayInputStream)7 I18Name (com.android.anqp.I18Name)5 Asn1Oid (com.android.hotspot2.asn1.Asn1Oid)5 Asn1String (com.android.hotspot2.asn1.Asn1String)5 OidMappings (com.android.hotspot2.asn1.OidMappings)5