wire-compiler
Module Contents
alltypes
Module Contents
class
NewSchemaLoader
:
Closeable
Module Contents
NewSchemaLoader
(
fs
:
FileSystem
,
sourcePath
:
List
<
Location
>
,
protoPath
:
List
<
Location
>
=
listOf()
)
fun
close
(
)
:
Unit
fun
load
(
)
:
List
<
ProtoFile
>
fun
loadDescriptorProto
(
)
:
ProtoFile
lateinit
var
sourceLocationPaths
:
Set
<
String
>
sealed
class
Target
Module Contents
data
class
JavaTarget
:
Target
Module Contents
JavaTarget
(
elements
:
List
<
String
>
=
listOf("*")
,
outDirectory
:
String
,
android
:
Boolean
=
false
,
androidAnnotations
:
Boolean
=
false
,
compact
:
Boolean
=
false
)
val
android
:
Boolean
val
androidAnnotations
:
Boolean
val
compact
:
Boolean
val
elements
:
List
<
String
>
val
outDirectory
:
String
data
class
KotlinTarget
:
Target
Module Contents
KotlinTarget
(
elements
:
List
<
String
>
=
listOf("*")
,
outDirectory
:
String
,
android
:
Boolean
=
false
,
javaInterop
:
Boolean
=
false
)
val
android
:
Boolean
val
elements
:
List
<
String
>
val
javaInterop
:
Boolean
val
outDirectory
:
String
data
class
NullTarget
:
Target
Module Contents
NullTarget
(
elements
:
List
<
String
>
=
listOf("*")
)
val
elements
:
List
<
String
>
interface
TypeHandler
Module Contents
abstract
fun
handle
(
type
:
Type
)
:
Unit
abstract
val
elements
:
List
<
String
>
class
WireCompiler
Module Contents
const
val
CODE_GENERATED_BY_WIRE
:
String
fun
compile
(
)
:
Unit
val
dryRun
:
Boolean
val
emitAndroid
:
Boolean
val
emitAndroidAnnotations
:
Boolean
val
emitCompact
:
Boolean
@JvmOverloads
@JvmStatic
fun
forArgs
(
fileSystem
:
FileSystem
=
FileSystems.getDefault()
,
logger
:
WireLogger
=
ConsoleWireLogger()
,
vararg
args
:
String
)
:
WireCompiler
val
fs
:
FileSystem
val
identifierSet
:
IdentifierSet
val
javaInterop
:
Boolean
val
javaOut
:
String
?
val
kotlinOut
:
String
?
val
log
:
WireLogger
@JvmStatic
fun
main
(
args
:
Array
<
String
>
)
:
Unit
val
namedFilesOnly
:
Boolean
val
protoPaths
:
List
<
String
>
val
sourceFileNames
:
List
<
String
>
interface
WireLogger
Module Contents
abstract
fun
artifact
(
outputPath
:
Path
,
javaFile
:
JavaFile
)
:
Unit
abstract
fun
artifact
(
outputPath
:
Path
,
kotlinFile
:
FileSpec
)
:
Unit
abstract
fun
artifactSkipped
(
type
:
ProtoType
)
:
Unit
abstract
fun
info
(
message
:
String
)
:
Unit
abstract
fun
setQuiet
(
quiet
:
Boolean
)
:
Unit
data
class
WireRun
Module Contents
WireRun
(
sourcePath
:
List
<
Location
>
,
protoPath
:
List
<
Location
>
=
listOf()
,
treeShakingRoots
:
List
<
String
>
=
listOf("*")
,
treeShakingRubbish
:
List
<
String
>
=
listOf()
,
targets
:
List
<
Target
>
)
fun
execute
(
fs
:
FileSystem
=
FileSystems.getDefault()
,
logger
:
WireLogger
=
ConsoleWireLogger()
)
:
Unit
val
protoPath
:
List
<
Location
>
val
sourcePath
:
List
<
Location
>
val
targets
:
List
<
Target
>
val
treeShakingRoots
:
List
<
String
>
val
treeShakingRubbish
:
List
<
String
>
package
com.squareup.wire
Module Contents
class
WireCompiler
Module Contents
const
val
CODE_GENERATED_BY_WIRE
:
String
fun
compile
(
)
:
Unit
val
dryRun
:
Boolean
val
emitAndroid
:
Boolean
val
emitAndroidAnnotations
:
Boolean
val
emitCompact
:
Boolean
@JvmOverloads
@JvmStatic
fun
forArgs
(
fileSystem
:
FileSystem
=
FileSystems.getDefault()
,
logger
:
WireLogger
=
ConsoleWireLogger()
,
vararg
args
:
String
)
:
WireCompiler
val
fs
:
FileSystem
val
identifierSet
:
IdentifierSet
val
javaInterop
:
Boolean
val
javaOut
:
String
?
val
kotlinOut
:
String
?
val
log
:
WireLogger
@JvmStatic
fun
main
(
args
:
Array
<
String
>
)
:
Unit
val
namedFilesOnly
:
Boolean
val
protoPaths
:
List
<
String
>
val
sourceFileNames
:
List
<
String
>
interface
WireLogger
Module Contents
abstract
fun
artifact
(
outputPath
:
Path
,
javaFile
:
JavaFile
)
:
Unit
abstract
fun
artifact
(
outputPath
:
Path
,
kotlinFile
:
FileSpec
)
:
Unit
abstract
fun
artifactSkipped
(
type
:
ProtoType
)
:
Unit
abstract
fun
info
(
message
:
String
)
:
Unit
abstract
fun
setQuiet
(
quiet
:
Boolean
)
:
Unit
package
com.squareup.wire.schema
Module Contents
class
NewSchemaLoader
:
Closeable
Module Contents
NewSchemaLoader
(
fs
:
FileSystem
,
sourcePath
:
List
<
Location
>
,
protoPath
:
List
<
Location
>
=
listOf()
)
fun
close
(
)
:
Unit
fun
load
(
)
:
List
<
ProtoFile
>
fun
loadDescriptorProto
(
)
:
ProtoFile
lateinit
var
sourceLocationPaths
:
Set
<
String
>
sealed
class
Target
Module Contents
data
class
JavaTarget
:
Target
Module Contents
JavaTarget
(
elements
:
List
<
String
>
=
listOf("*")
,
outDirectory
:
String
,
android
:
Boolean
=
false
,
androidAnnotations
:
Boolean
=
false
,
compact
:
Boolean
=
false
)
val
android
:
Boolean
val
androidAnnotations
:
Boolean
val
compact
:
Boolean
val
elements
:
List
<
String
>
val
outDirectory
:
String
data
class
KotlinTarget
:
Target
Module Contents
KotlinTarget
(
elements
:
List
<
String
>
=
listOf("*")
,
outDirectory
:
String
,
android
:
Boolean
=
false
,
javaInterop
:
Boolean
=
false
)
val
android
:
Boolean
val
elements
:
List
<
String
>
val
javaInterop
:
Boolean
val
outDirectory
:
String
data
class
NullTarget
:
Target
Module Contents
NullTarget
(
elements
:
List
<
String
>
=
listOf("*")
)
val
elements
:
List
<
String
>
interface
TypeHandler
Module Contents
abstract
fun
handle
(
type
:
Type
)
:
Unit
abstract
val
elements
:
List
<
String
>
data
class
WireRun
Module Contents
WireRun
(
sourcePath
:
List
<
Location
>
,
protoPath
:
List
<
Location
>
=
listOf()
,
treeShakingRoots
:
List
<
String
>
=
listOf("*")
,
treeShakingRubbish
:
List
<
String
>
=
listOf()
,
targets
:
List
<
Target
>
)
fun
execute
(
fs
:
FileSystem
=
FileSystems.getDefault()
,
logger
:
WireLogger
=
ConsoleWireLogger()
)
:
Unit
val
protoPath
:
List
<
Location
>
val
sourcePath
:
List
<
Location
>
val
targets
:
List
<
Target
>
val
treeShakingRoots
:
List
<
String
>
val
treeShakingRubbish
:
List
<
String
>