java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.artifact.Solc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compileContract
(String contractName, String sourceFileName, String sourceFolder, String outputFolder) Compile contract int.int
compileContract
(String contractName, String sourceFileName, String sourceFolder, String outputFolder, String libsFolder) Compile contract int.Returns the value of thecompilerPath
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
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 thecompilerPath
record component.- Returns:
- the value of the
compilerPath
record component
-