Search in sources :

Example 1 with TypedMember

use of com.robotoworks.mechanoid.net.netModel.TypedMember in project mechanoid by robotoworks.

the class RequestGenerator method _buildConstructorArgsForType.

protected void _buildConstructorArgsForType(final ComplexTypeLiteral type, final List<String> args) {
    EList<Member> _members = type.getMembers();
    for (final Member member : _members) {
        if ((member instanceof TypedMember)) {
            Type _type = ((TypedMember) member).getType();
            String _signature = ModelExtensions.signature(_type);
            String _plus = (_signature + " ");
            String _identifier = ModelExtensions.toIdentifier(member);
            String _plus_1 = (_plus + _identifier);
            args.add(_plus_1);
        } else {
            if ((member instanceof SkipMember)) {
                ComplexTypeLiteral _literal = ((SkipMember) member).getLiteral();
                this.buildConstructorArgsForType(_literal, args);
            }
        }
    }
}
Also used : StringType(com.robotoworks.mechanoid.net.netModel.StringType) Type(com.robotoworks.mechanoid.net.netModel.Type) BlockType(com.robotoworks.mechanoid.net.netModel.BlockType) IntrinsicType(com.robotoworks.mechanoid.net.netModel.IntrinsicType) UserType(com.robotoworks.mechanoid.net.netModel.UserType) GenericListType(com.robotoworks.mechanoid.net.netModel.GenericListType) TypedMember(com.robotoworks.mechanoid.net.netModel.TypedMember) TypedMember(com.robotoworks.mechanoid.net.netModel.TypedMember) SimpleMember(com.robotoworks.mechanoid.net.netModel.SimpleMember) Member(com.robotoworks.mechanoid.net.netModel.Member) SkipMember(com.robotoworks.mechanoid.net.netModel.SkipMember) ComplexTypeLiteral(com.robotoworks.mechanoid.net.netModel.ComplexTypeLiteral) SkipMember(com.robotoworks.mechanoid.net.netModel.SkipMember)

Aggregations

BlockType (com.robotoworks.mechanoid.net.netModel.BlockType)1 ComplexTypeLiteral (com.robotoworks.mechanoid.net.netModel.ComplexTypeLiteral)1 GenericListType (com.robotoworks.mechanoid.net.netModel.GenericListType)1 IntrinsicType (com.robotoworks.mechanoid.net.netModel.IntrinsicType)1 Member (com.robotoworks.mechanoid.net.netModel.Member)1 SimpleMember (com.robotoworks.mechanoid.net.netModel.SimpleMember)1 SkipMember (com.robotoworks.mechanoid.net.netModel.SkipMember)1 StringType (com.robotoworks.mechanoid.net.netModel.StringType)1 Type (com.robotoworks.mechanoid.net.netModel.Type)1 TypedMember (com.robotoworks.mechanoid.net.netModel.TypedMember)1 UserType (com.robotoworks.mechanoid.net.netModel.UserType)1