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

com.github.houbb.asm.tool.vo.LocalVariable Maven / Gradle / Ivy

package com.github.houbb.asm.tool.vo;


/**
 * 内部变量,用于排序
 * @author binbin.hou
 * @since 0.0.1
 */
public class LocalVariable implements Comparable{

    /**
     * 下标
     *
     * @since 0.0.1
     */
    private int index;
    /**
     * 名称
     *
     * @since 0.0.1
     */
    private String name;

    public LocalVariable(int index, String name) {
        this.index = index;
        this.name = name;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public int compareTo(LocalVariable o) {
        return this.index - o.index;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy