All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.adrninistrator.javacg2.dto.instruction.parseresult.MethodCallParseResult Maven / Gradle / Ivy

package com.adrninistrator.javacg2.dto.instruction.parseresult;

import com.adrninistrator.javacg2.dto.element.BaseElement;

import java.util.List;

/**
 * @author adrninistrator
 * @date 2022/5/22
 * @description: 方法调用指令解析结果
 */
public class MethodCallParseResult extends BaseInstructionParseResult {

    // 方法调用对应的被调用对象
    private final BaseElement objectElement;

    // 方法调用对应的参数
    private final List argumentList;

    public MethodCallParseResult(BaseElement objectElement, List argumentList) {
        this.objectElement = objectElement;
        this.argumentList = argumentList;
    }

    public BaseElement getObjectElement() {
        return objectElement;
    }

    public List getArgumentList() {
        return argumentList;
    }

    @Override
    public String toString() {
        return "MethodCallObjRefAndArgs{" +
                "objectReference=" + objectElement +
                ", argumentList=" + argumentList +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy