Check-in [586192f0d6]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add base for finding methods; Bump copyrights to 2020.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 586192f0d6f694ecddbb1229194c09561512422c
User & Date: stephanie.gawroriski 2020-02-05 23:48:16
Context
2020-02-06
00:21
Update release dates. check-in: b61a26c6b2 user: stephanie.gawroriski tags: trunk
2020-02-05
23:48
Add base for finding methods; Bump copyrights to 2020. check-in: 586192f0d6 user: stephanie.gawroriski tags: trunk
17:42
Dedication to Emily. check-in: e46db93fa5 user: stephanie.gawroriski tags: trunk, x-date-202002
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to license.mkd.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Licenses

SquirrelJME is copyright:

 * Copyright (C) 2013-2019 Stephanie Gawroriski
   <xer@multiphasicapps.net>
 * Copyright (C) 2013-2019 Multi-Phasic Applications
   <http://multiphasicapps.net/>
 * "SquirrelJME" and "Lex" are trademarked by Stephanie Gawroriski 2016-2019

Works of art with a credit to the original author, note that these works were
commissioned under contract:

 * _Lex_ and The _SquirrelJME_ Logo were illustrated by...




|

|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Licenses

SquirrelJME is copyright:

 * Copyright (C) 2013-2020 Stephanie Gawroriski
   <xer@multiphasicapps.net>
 * Copyright (C) 2013-2020 Multi-Phasic Applications
   <http://multiphasicapps.net/>
 * "SquirrelJME" and "Lex" are trademarked by Stephanie Gawroriski 2016-2019

Works of art with a credit to the original author, note that these works were
commissioned under contract:

 * _Lex_ and The _SquirrelJME_ Logo were illustrated by...

Changes to readme.mkd.

11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
system calls that handle the logic the compiler cannot provide. An execution
engine which is written in C is available and it offers a lightweight method
of code execution.

Additionally, there is a port of SquirrelJME to RetroArch which enables the
ability to play older J2ME software and games designed for flip-phones.

 * Copyright (C) 2013-2019 Stephanie Gawroriski
   <xer@multiphasicapps.net>
 * "SquirrelJME" and "Lex" are trademarked by Stephanie Gawroriski 2016-2019
 * _Lex_ and The _SquirrelJME_ Logo were illustrated by...
   * Kat Adam-MacEwen
   * Kat@CMYKat Designs & Illustrations <http://www.cmykat-designs.com/>

Please support me on [Patreon](https://www.patreon.com/SquirrelJME)!

Dedicated to Emily (1998-2020), the developer of [Mu](https://github.com/meepingsnesroms/Mu), you will not be forgotten. Rest in peace.







|

|







11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
system calls that handle the logic the compiler cannot provide. An execution
engine which is written in C is available and it offers a lightweight method
of code execution.

Additionally, there is a port of SquirrelJME to RetroArch which enables the
ability to play older J2ME software and games designed for flip-phones.

 * Copyright (C) 2013-2020 Stephanie Gawroriski
   <xer@multiphasicapps.net>
 * "SquirrelJME" and "Lex" are trademarked by Stephanie Gawroriski 2016-2020
 * _Lex_ and The _SquirrelJME_ Logo were illustrated by...
   * Kat Adam-MacEwen
   * Kat@CMYKat Designs & Illustrations <http://www.cmykat-designs.com/>

Please support me on [Patreon](https://www.patreon.com/SquirrelJME)!

Dedicated to Emily (1998-2020), the developer of [Mu](https://github.com/meepingsnesroms/Mu), you will not be forgotten. Rest in peace.

Changes to runt/klib/supervisor/cc/squirreljme/jvm/lib/ClassMethodsParser.java.

91
92
93
94
95
96
97

































98
99
100
101
102
103
104
		BinaryBlob blob = this.blob;
		int offset = this.tocOffset(__dx);
		
		return blob.subSection(
			blob.readJavaInt(offset + CODE_ADDRESS_INT_OFFSET),
			blob.readJavaInt(offset + CODE_SIZE_INT_OFFSET));
	}

































	
	/**
	 * Returns the name of the method.
	 *
	 * @param __dx The index of the method.
	 * @return The method name.
	 * @throws IndexOutOfBoundsException If the method is out of bounds.







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
		BinaryBlob blob = this.blob;
		int offset = this.tocOffset(__dx);
		
		return blob.subSection(
			blob.readJavaInt(offset + CODE_ADDRESS_INT_OFFSET),
			blob.readJavaInt(offset + CODE_SIZE_INT_OFFSET));
	}
	
	/**
	 * Finds the given method and returns the index of it.
	 *
	 * @param __name The method name.
	 * @param __type The method type, may be {@code null} if not needed.
	 * @return The found index or {@code -1} if not found.
	 * @throws NullPointerException On null arguments.
	 * @since 2020/01/27
	 */
	public final int findMethod(String __name, String __type)
		throws NullPointerException
	{
		if (__name == null)
			throw new NullPointerException("NARG");
		
		// Locate
		for (int i = 0, n = this.count; i < n; i++)
		{
			// Name does not match
			if (!__name.equals(this.name(i)))
				continue;
			
			// Type does not match
			if (__type != null && __type.equals(this.type(i)))
				continue;
			
			return i;
		}
		
		// Not found
		return -1;
	}
	
	/**
	 * Returns the name of the method.
	 *
	 * @param __dx The index of the method.
	 * @return The method name.
	 * @throws IndexOutOfBoundsException If the method is out of bounds.