java-parser

Use jparsec to parse a string into Guava TypeToken.

License

License

GroupId

GroupId

org.jparsec
ArtifactId

ArtifactId

jparsec-g
Last Version

Last Version

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

Dependencies

compile (2)

Group / Artifact Type Version
com.google.guava : guava jar 18.0
org.jparsec : jparsec jar 2.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.1