Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Prasetya, S.W.B. (Wishnu)
t3
Commits
184cbbfe
Commit
184cbbfe
authored
Jan 31, 2018
by
ISWB Prasetya
Browse files
tweaking imap and tscope
parent
0ac2f450
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/Sequenic/T3/ImplementationMap.java
View file @
184cbbfe
...
...
@@ -218,6 +218,7 @@ public class ImplementationMap {
for
(
Entry
<
Class
,
Instantiation
>
e
:
knownClasses
.
entrySet
())
{
Class
D
=
e
.
getKey
()
;
if
(
C
==
D
)
continue
;
Instantiation
Di
=
e
.
getValue
()
;
if
(
C
.
isAssignableFrom
(
D
))
{
for
(
Constructor
co
:
Di
.
directConstructors
.
allMembers
())
...
...
src/Sequenic/T3/TestingScope.java
View file @
184cbbfe
...
...
@@ -382,6 +382,7 @@ public class TestingScope {
String
name
=
M
.
getName
()
;
if
(
name
.
equals
(
CONSTANTS
.
classinv_name
)
||
name
.
startsWith
(
"<"
)
// exclude <init> and <clinit>
||
name
.
startsWith
(
"$jacoco"
)
)
continue
;
if
(
isVisible
(
M
.
getDeclaringClass
(),
M
.
getModifiers
()))
methods
.
add
(
M
)
;
...
...
xexamples/SomeExamples/IncomeTax.java
View file @
184cbbfe
...
...
@@ -11,16 +11,17 @@ public class IncomeTax {
salary
=
0
;
location
=
"OUTSIDE"
;
}
public
IncomeTax
(
int
salary
,
String
location
)
{
private
IncomeTax
(
int
salary
,
String
location
,
Privy
p
)
{
//if (! (location.equals("INSIDE") || location.equals("OUTSIDE"))) throw new IllegalArgumentException() ;
if
(
salary
<
0
)
throw
new
IllegalArgumentException
()
;
//
System.out.println(">> IncomeTax(" + salary + "," + location + ")") ;
System
.
out
.
println
(
">>
>>>>>>>>>>
IncomeTax("
+
salary
+
","
+
location
+
","
+
p
+
")"
)
;
this
.
salary
=
salary
;
this
.
location
=
location
;
}
public
int
getTax
()
{
//System.out.println(">>getTax on salary " + salary) ;
if
(
location
.
equals
(
"OUTSIDE"
))
return
0
;
...
...
xexamples/SomeExamples/Privy.java
0 → 100644
View file @
184cbbfe
package
SomeExamples
;
public
class
Privy
{
Privy
(
int
x
)
{
System
.
out
.
println
(
"************* PRIVY!"
)
;
}
}
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