java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.artifact.Solc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompileContract(String contractName, String sourceFileName, String sourceFolder, String outputFolder) Compile contract int.intcompileContract(String contractName, String sourceFileName, String sourceFolder, String outputFolder, String libsFolder) Compile contract int.Returns the value of thecompilerPathrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Solc
Instantiates a new Solc compiler.- Parameters:
compilerPath- path to the compiler solc (or solc.exe) file
-
-
Method Details
-
compileContract
public int compileContract(String contractName, String sourceFileName, String sourceFolder, String outputFolder, String libsFolder) Compile contract int.- Parameters:
contractName- the contract namesourceFileName- the source file namesourceFolder- the source folderoutputFolder- the output folderlibsFolder- the libs folder- Returns:
- the int
-
compileContract
public int compileContract(String contractName, String sourceFileName, String sourceFolder, String outputFolder) Compile contract int.- Parameters:
contractName- the contract namesourceFileName- the source file namesourceFolder- the source folderoutputFolder- the output folder- Returns:
- the int
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
compilerPath
Returns the value of thecompilerPathrecord component.- Returns:
- the value of the
compilerPathrecord component
-