Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
SquirrelJME
Commits
1e1f2e9d
Commit
1e1f2e9d
authored
Jul 28, 2017
by
Stephanie Gawroriski
Browse files
Add methods to get if a method name is a static or instance initializer.
parent
d6784553
Changes
2
Hide whitespace changes
Inline
Side-by-side
libs/squirreljme-jit/net/multiphasicapps/squirreljme/jit/java/MethodName.java
View file @
1e1f2e9d
...
...
@@ -56,5 +56,27 @@ public final class MethodName
{
return
(
__o
instanceof
MethodName
)
&&
super
.
equals
(
__o
);
}
/**
* Returns {@code true} if this represents the instance initializer.
*
* @return {@code true} if this is the instance initializer.
* @since 2017/07/28
*/
public
boolean
isInstanceInitializer
()
{
return
this
.
string
.
equals
(
"<init>"
);
}
/**
* Returns {@code true} if this represents the static initializer.
*
* @return {@code true} if this is the static initializer.
* @since 2017/07/28
*/
public
boolean
isStaticInitializer
()
{
return
this
.
string
.
equals
(
"<clinit>"
);
}
}
readme.mkd
View file @
1e1f2e9d
...
...
@@ -92,7 +92,7 @@ the following address: <xer@multiphasicapps.net>.
*
Personal Accounts (If you wish to contact me this way)
*
[
FurAffinity
](
https://www.furaffinity.net/user/mpasteven/
)
*
[
GitHub
](
https://github.com/XerTheSquirrel/
)
*
[
LinkedIn
](
https://www.linkedin.com/in/
steven-gawroriski
/
)
*
[
LinkedIn
](
https://www.linkedin.com/in/
xerthesquirrel
/
)
## Goals
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment