Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored is/setStatic into StaticCapable/Source
- Loading branch information
Showing
4 changed files
with
50 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
api/src/main/java/org/jboss/forge/roaster/model/StaticCapable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* Copyright 2015 Red Hat, Inc. and/or its affiliates. | ||
* | ||
* Licensed under the Eclipse Public License version 1.0, available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
|
||
package org.jboss.forge.roaster.model; | ||
|
||
/** | ||
* Represents a Java element that may support the <b>static</b> keyword | ||
* | ||
* @author <a href="ggastald@redhat.com">George Gastaldi</a> | ||
*/ | ||
public interface StaticCapable | ||
{ | ||
/** | ||
* @return if the element is static | ||
*/ | ||
boolean isStatic(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
api/src/main/java/org/jboss/forge/roaster/model/source/StaticCapableSource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* Copyright 2015 Red Hat, Inc. and/or its affiliates. | ||
* | ||
* Licensed under the Eclipse Public License version 1.0, available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
|
||
package org.jboss.forge.roaster.model.source; | ||
|
||
import org.jboss.forge.roaster.model.StaticCapable; | ||
|
||
/** | ||
* Represents a Java element that supports the <b>static</b> keyword. | ||
* | ||
* @author <a href="ggastald@redhat.com">George Gastaldi</a> | ||
*/ | ||
public interface StaticCapableSource<T> extends StaticCapable | ||
{ | ||
/** | ||
* Sets the <b>final</b> keyword in this element. | ||
* | ||
* @param value if this element should be set to static | ||
* @return the generic element this interface is bound to | ||
*/ | ||
T setStatic(boolean value); | ||
} |