walkmod-override-plugin

Visitor to apply the override Java annotations on methods whenever it is necessary.

License

License

Categories

Categories

IDE Development Tools
GroupId

GroupId

org.walkmod
ArtifactId

ArtifactId

walkmod-override-plugin
Last Version

Last Version

1.0.9
Release Date

Release Date

Type

Type

jar
Description

Description

walkmod-override-plugin
Visitor to apply the override Java annotations on methods whenever it is necessary.
Project URL

Project URL

https://github.com/rpau/walkmod-override-plugin
Source Code Management

Source Code Management

https://github.com/rpau/walkmod-override-plugin.git

Download walkmod-override-plugin

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.walkmod : javalang-compiler jar [2.2, 3.0)
org.walkmod : walkmod-core jar [1.0.5, 2.0.0)

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

walkmod-override-plugin

This is a walkmod plugin to add the override annotation in Java methods whenever it is necessary (when a given class implements an interface or defines a method that belongs to its superclass).

Example

Let’s see an example. From this code, which is a class with its typical toString implementation.

package example;

public class Foo{

  public String toString(){
    ...
  }
}

It is transformed to :

package example;

public class Foo{

  @Override
  public String toString(){
    ...
  }
}

Usage

Only Walkmod >= 2.2.0

Just type:

walkmod add override

and then, to see the results:

walkmod apply

Contributing

If you want to hack on this, fork it, improve it and send me a pull request.

To get started using it, just clone it and call mvn install.

Versions

Version
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0