Search in sources :

Example 1 with AsnAny

use of com.beanit.asn1bean.compiler.model.AsnAny in project jasn1 by openmuc.

the class BerClassWriter method replaceParametersByAnyTypes.

private void replaceParametersByAnyTypes(List<AsnElementType> componentTypes, List<AsnParameter> parameters) {
    for (AsnParameter parameter : parameters) {
        if (parameter.paramGovernor == null) {
            for (AsnElementType componentType : componentTypes) {
                if (componentType.definedType != null && componentType.definedType.typeName.equals(parameter.dummyReference)) {
                    componentType.typeReference = new AsnAny();
                    componentType.definedType = null;
                    componentType.isDefinedType = false;
                }
            }
        }
    }
}
Also used : AsnAny(com.beanit.asn1bean.compiler.model.AsnAny) AsnParameter(com.beanit.asn1bean.compiler.model.AsnParameter) AsnElementType(com.beanit.asn1bean.compiler.model.AsnElementType)

Aggregations

AsnAny (com.beanit.asn1bean.compiler.model.AsnAny)1 AsnElementType (com.beanit.asn1bean.compiler.model.AsnElementType)1 AsnParameter (com.beanit.asn1bean.compiler.model.AsnParameter)1