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

com.jd.blockchain.contract.maven.ContractField Maven / Gradle / Ivy

There is a newer version: 1.6.5.RELEASE
Show newest version
package com.jd.blockchain.contract.maven;

public class ContractField extends AbstractContract {

    private String fieldName;

    private String fieldType;

    private boolean isStatic;

    public ContractField(String className, String fieldName, String fieldType) {
        this(className, fieldName, fieldType, false);
    }

    public ContractField(String className, String fieldName, String fieldType, boolean isStatic) {
        this.className = format(className);
        this.fieldName = fieldName;
        this.fieldType = format(fieldType);
        this.isStatic = isStatic;
    }

    public String getFieldName() {
        return fieldName;
    }

    public String getFieldType() {
        return fieldType;
    }

    public boolean isStatic() {
        return isStatic;
    }

    @Override
    public String toString() {
        return "ContractField{" +
                "className='" + className + '\'' +
                ", fieldName='" + fieldName + '\'' +
                ", fieldType='" + fieldType + '\'' +
                ", isStatic=" + isStatic +
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy