⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jco$parameterlist.java

📁 SAP这个系统的一个转换器
💻 JAVA
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   JCO.java

package com.sap.mw.jco;

import com.sap.mw.jco.util.TraceWriter;
import java.io.Serializable;
import java.util.ArrayList;

// Referenced classes of package com.sap.mw.jco:
//            IMetaData, JCO

public static class JCO$ParameterList extends JCO$Record
    implements Cloneable, Serializable
{

    protected JCO$AbapException[] getExceptionList()
    {
        return exception_list;
    }

    protected JCO$AbapException getException(String key)
    {
        if(exception_list == null)
            return null;
        for(int i = 0; i < exception_list.length; i++)
            if(exception_list[i].ey().equalsIgnoreCase(key))
            {
                JCO$AbapException ex = exception_list[i];
                return new JCO$AbapException(ex.ey(), ex.getMessage() != null ? ex.getMessage() : ex.ey());
            }

        return null;
    }

    private void appendField(String name, int type, int length, int decimals)
    {
        byte saved_rec_type = super.e;
        try
        {
            super.e = 4;
            char old_data[] = super.e;
            Object old_odata[] = super.e;
            (name, type, length, -1, decimals, null, null, 0, null, null);
            if(super.ields > 0)
                super.gth = super.et[super.ields - 1] + super.th[super.ields - 1];
            if(old_data == null || old_data.length < super.gth)
            {
                super.gth = new char[super.gth];
                System.arraycopy(old_data, 0, super.gth, 0, old_data.length);
            }
            if(old_odata == null || old_odata.length < super.data)
            {
                super.data = new Object[super.data];
                System.arraycopy(((Object) (old_odata)), 0, ((Object) (super.data)), 0, old_odata.length);
            }
        }
        finally
        {
            super.e = saved_rec_type;
        }
    }

    /**
     * @deprecated Method appendValue is deprecated
     */

    public void appendValue(String name, int type, int length, String value)
    {
        appendField(name, type, length, 0);
        e(value, super.ields - 1);
    }

    /**
     * @deprecated Method appendValue is deprecated
     */

    public void appendValue(String name, int type, int length, int value)
    {
        appendField(name, type, length, 0);
        e(value, super.ields - 1);
    }

    /**
     * @deprecated Method appendValue is deprecated
     */

    public void appendValue(String name, int type, int length, double value)
    {
        appendField(name, type, length, 0);
        e(value, super.ields - 1);
    }

    /**
     * @deprecated Method appendValue is deprecated
     */

    public void appendValue(String name, int type, int length, byte value[])
    {
        appendField(name, type, length, 0);
        e(value, super.ields - 1);
    }

    /**
     * @deprecated Method appendValue is deprecated
     */

    public void appendValue(String name, int type, int length, Object value)
    {
        appendField(name, type, length, 0);
        e(value, super.ields - 1);
    }

    /**
     * @deprecated Method appendValue is deprecated
     */

    public void appendValue(String name, JCO$Table value)
    {
        appendField(name, 99, 0, 0);
        e(value, super.ields - 1);
    }

    /**
     * @deprecated Method appendValue is deprecated
     */

    public void appendValue(String name, ields value)
    {
        appendField(name, 17, 0, 0);
        e(value, super.ields - 1);
    }

    /**
     * @deprecated Method appendValue is deprecated
     */

    public void appendValue(String name, int type, int length, int decimals, String value)
    {
        appendField(name, type, length, decimals);
        e(value, super.ields - 1);
    }

    /**
     * @deprecated Method appendValue is deprecated
     */

    public void appendValue(String name, int type, int length, int decimals, int value)
    {
        appendField(name, type, length, decimals);
        e(value, super.ields - 1);
    }

    /**
     * @deprecated Method appendValue is deprecated
     */

    public void appendValue(String name, int type, int length, int decimals, double value)
    {
        appendField(name, type, length, decimals);
        e(value, super.ields - 1);
    }

    /**
     * @deprecated Method appendValue is deprecated
     */

    public void appendValue(String name, int type, int length, int decimals, byte value[])
    {
        appendField(name, type, length, decimals);
        e(value, super.ields - 1);
    }

    /**
     * @deprecated Method appendValue is deprecated
     */

    public void appendValue(String name, int type, int length, int decimals, Object value)
    {
        appendField(name, type, length, decimals);
        e(value, super.ields - 1);
    }

    public void setActive(boolean active, int index)
    {
        if(super.type[index] == 99 || super.type[index] == 5 || super.type[index] == 17 && !tedType1Structure(index))
            if(active)
                super.[index] &= 0xef;
            else
                super.[index] |= 0x10;
    }

    public void setActive(boolean active, String name)
    {
        setActive(active, Of(name));
    }

    protected String dumpContent()
    {
        StringBuffer buf = new StringBuffer();
        ArrayList mdsToDump = new ArrayList();
        ArrayList mdsDumped = new ArrayList();
        mdsToDump.add(this);
        while(!mdsToDump.isEmpty()) 
        {
            Object o = mdsToDump.remove(0);
            mdsDumped.add(o);
            Of r;
            JCO$MetaData md;
            if(o instanceof JCO$Record)
            {
                r = (JCO$Record)o;
                md = (JCO$MetaData)o;
            } else
            if(o instanceof JCO$MetaData)
            {
                r = null;
                md = (JCO$MetaData)o;
            } else
            {
                buf.append("warning unexpected class ").append(o.getClass().getName()).append(JCO.CRLF);
                continue;
            }
            buf.append(md.me());
            buf.append(" (").append(md.icodeTypeAsString()).append(")");
            buf.append(JCO.CRLF);
            for(int index = 0; index < md.ields; index++)
            {
                buf.append("   ");
                String str;
                buf.append(str = md.name[index]);
                for(int c = str.length(); c < 32; c++)
                    buf.append(' ');

                str = "-";
                if((o = md.eta[index]) != null)
                    if(o instanceof String)
                        str = (String)o;
                    else
                    if(o instanceof IMetaData)
                        str = ((IMetaData)o).getName();
                buf.append(str);
                for(int c = str.length(); c < 32; c++)
                    buf.append(' ');

                buf.append(str = md.peAsString(index));
                for(int c = str.length(); c < 10; c++)
                    buf.append(' ');

                buf.append(str = String.valueOf(md.et[index]));
                for(int c = str.length(); c < 8; c++)
                    buf.append(' ');

                buf.append(str = String.valueOf(md.th[index]));
                for(int c = str.length(); c < 8; c++)
                    buf.append(' ');

                buf.append(str = String.valueOf(md.t[index]));
                for(int c = str.length(); c < 8; c++)
                    buf.append(' ');

                buf.append(str = String.valueOf(md.h[index]));
                for(int c = str.length(); c < 8; c++)
                    buf.append(' ');

                if((md.[index] & 1) != 0)
                    buf.append('i');
                if((md.[index] & 2) != 0)
                    buf.append('e');
                if((md.[index] & 4) != 0)
                    buf.append('o');
                if((md.[index] & 0x40) != 0)
                    buf.append('H');
                if((md.[index] & 0x10) == 0)
                    buf.append("A");
                if((md.[index] & 0x20) != 0)
                    buf.append("M");
                if((md.[index] & 8) != 0)
                    buf.append("U");
                buf.append(JCO.CRLF);
                int itype = md.type[index];
                if((itype == 17 || itype == 99) && md.eta[index] != null)
                    if(!mdsToDump.contains(md.eta[index]) && !mdsDumped.contains(md.eta[index]))
                        mdsToDump.add(md.eta[index]);
                    else
                        try
                        {
                            if(!mdsToDump.contains(r.e(index)) && !mdsDumped.contains(r.e(index)))
                                mdsToDump.add(r.e(index));
                        }
                        catch(Exception e) { }
            }

        }
        if(super.data != super.ields)
            buf.append("content:").append(JCO.CRLF).append(TraceWriter.dumpContent(super.umpContent, JCO.trace_level > 6, JCO.trace_level <= 7 ? Math.min(1000, super.umpContent.length) : super.umpContent.length));
        for(int index = 0; index < super.ields; index++)
        {
            int itype = super.type[index];
            if(itype == 29 || itype == 30 || itype == 17 || itype == 99)
            {
                Object o = super.ields[super.x[index]];
                buf.append(super.name[index]).append(": ");
                if(o == null)
                    buf.append("null");
                else
                if(itype == 29)
                {
                    char ca[] = ((String)o).toCharArray();
                    buf.append(JCO.CRLF).append(TraceWriter.dumpContent(ca, JCO.trace_level > 6, JCO.trace_level <= 7 ? Math.min(1000, ca.length) : ca.length));
                } else
                if(itype == 30)
                {
                    byte ba[] = (byte[])o;
                    buf.append(JCO.CRLF).append(TraceWriter.dumpContent(ba, JCO.trace_level <= 7 ? Math.min(1000, ba.length) : ba.length));
                } else
                {
                    JCO$Record r = (umpContent)o;
                    boolean isFlat = true;
                    for(int rIdx = 0; rIdx < r.mFields(); rIdx++)
                    {
                        int rType = r.pe(rIdx);
                        if(rType != 29 && rType != 30 && rType != 17 && rType != 99)
                            continue;
                        isFlat = false;
                        break;
                    }

                    if(isFlat)
                    {
                        if(itype == 17)
                        {
                            buf.append(JCO.CRLF).append(TraceWriter.dumpContent(r.umpContent, JCO.trace_level > 6, JCO.trace_level <= 7 ? Math.min(1000, r.data.length) : r.data.length));
                        } else
                        {
                            buf.append(r.s).append(" row(s)").append(JCO.CRLF);
                            int rowsToDump = JCO.trace_level <= 7 ? Math.min(5, r.s) : r.s;
                            char row_chars[] = new char[r.gth];
                            for(int row = 0; row < rowsToDump; row++)
                            {
                                buf.append("row ").append(row).append(JCO.CRLF);
                                System.arraycopy(r.data, row * r.gth, row_chars, 0, row_chars.length);
                                buf.append(TraceWriter.dumpContent(row_chars, JCO.trace_level > 6, JCO.trace_level <= 7 ? Math.min(1000, row_chars.length) : row_chars.length));
                            }

                        }
                    } else
                    {
                        char ca[] = r.umpContent().toCharArray();
                        buf.append(JCO.CRLF).append(TraceWriter.dumpContent(ca, JCO.trace_level > 6, JCO.trace_level <= 7 ? Math.min(1000, ca.length) : ca.length));
                    }
                }
                buf.append(JCO.CRLF);
            }
        }

        return buf.toString();
    }

    private static final long serialVersionUID = 0x199d2b6fe1L;
    protected IMetaData dependant_meta_data;
    protected JCO$AbapException exception_list[];

    public JCO$ParameterList()
    {
        super(1, (String)null);
    }

    public JCO$ParameterList(IMetaData meta_data)
    {
        super(1, meta_data);
    }

    public JCO$ParameterList(JCO$ParameterList value)
    {
        super(value);
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -