java-parser

Use jparsec to parse a string into Guava TypeToken.

License

License

GroupId

GroupId

com.github.jparsec
ArtifactId

ArtifactId

jparsec-g
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

java-parser
Use jparsec to parse a string into Guava TypeToken.

Download jparsec-g

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.jparsec/jparsec-g/ -->
<dependency>
    <groupId>com.github.jparsec</groupId>
    <artifactId>jparsec-g</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.jparsec/jparsec-g/
implementation 'com.github.jparsec:jparsec-g:1.0'
// https://jarcasting.com/artifacts/com.github.jparsec/jparsec-g/
implementation ("com.github.jparsec:jparsec-g:1.0")
'com.github.jparsec:jparsec-g:jar:1.0'
<dependency org="com.github.jparsec" name="jparsec-g" rev="1.0">
  <artifact name="jparsec-g" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.jparsec', module='jparsec-g', version='1.0')
)
libraryDependencies += "com.github.jparsec" % "jparsec-g" % "1.0"
[com.github.jparsec/jparsec-g "1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
com.google.guava : guava jar 18.0
org.jparsec : jparsec jar 2.1

test (1)

Group / Artifact Type Version
junit : junit jar 4.8.1

Project Modules

There are no modules declared in this project.

jparsec-g

Parse Guava TypeToken.

To deserialize TypeToken:

new TypeParser().parse(typeToken.toString())

To construct TypeToken reflectively:

TypeToken<?> genericType = parser.parse(theClass.getName() + "<?, String>");

Javadoc

Maven

Add the following fragment to your <dependencies> section:

  <dependency>
    <groupId>org.jparsec</groupId>
    <artifactId>jparsec-g</artifactId>
    <version>1.1</version>
  </dependency>

Versions

Version
1.0