-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from Saxonica/method-fixes
Method fixes
- Loading branch information
Showing
14 changed files
with
150 additions
and
22 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
docletVersion=0.5.0 | ||
schemaVersion=0.5.0 | ||
docletVersion=0.6.0 | ||
schemaVersion=0.6.0 | ||
docletTitle=XmlDoclet | ||
docletName=xmldoclet |
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 |
---|---|---|
@@ -1,4 +1,13 @@ | ||
package org.example; | ||
|
||
abstract public class AbstractClass implements TestInterface { | ||
abstract void one(int value); | ||
abstract void one(int value, int otherValue); | ||
abstract void one(String value); | ||
public void foo() { | ||
System.err.println("impl in AbstractClass"); | ||
} | ||
public void inAbsr() { | ||
System.err.println("impl in AbstractClass"); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
sample/src/main/java/org/example/AlternateImplementation.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,23 @@ | ||
package org.example; | ||
|
||
public class AlternateImplementation extends Implementation { | ||
@Override | ||
void one(int value, int otherValue) { | ||
System.err.println("alternate: " + value + ", " + otherValue); | ||
} | ||
|
||
@Override | ||
void one(String value) { | ||
// nop | ||
} | ||
|
||
@Override | ||
public void foo() { | ||
System.err.println("alternate foo"); | ||
} | ||
|
||
@Override | ||
public void baz() { | ||
System.err.println("alternate baz"); | ||
} | ||
} |
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,6 @@ | ||
package org.example; | ||
|
||
public interface AxisIterator extends SequenceIterator { | ||
@Override | ||
String next(); | ||
} |
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,17 @@ | ||
package org.example; | ||
|
||
public class EmptyIterator implements SequenceIterator { | ||
@Override | ||
public Object next() { | ||
return null; | ||
} | ||
|
||
private static class OfNodes extends EmptyIterator implements AxisIterator { | ||
|
||
public final static OfNodes THE_INSTANCE = new OfNodes(); | ||
@Override | ||
public String next() { | ||
return null; | ||
} | ||
} | ||
} |
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
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,18 @@ | ||
package org.example; | ||
|
||
public class IterImpl implements SequenceIterator { | ||
@Override | ||
public boolean hasNext() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public Object next() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public void close() { | ||
// nop | ||
} | ||
} |
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,8 @@ | ||
package org.example; | ||
|
||
public class ParameterizedClass<T> { | ||
private T[] _value; | ||
public T get(int key) { | ||
return _value[key]; | ||
} | ||
} |
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,8 @@ | ||
package org.example; | ||
|
||
import java.io.Closeable; | ||
|
||
public interface SequenceIterator extends Closeable { | ||
public Object next(); | ||
default void close() {} | ||
} |
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
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 |
---|---|---|
|
@@ -12,4 +12,5 @@ public interface TestInterface { | |
* <p>See also {@link #foo()}.</p> | ||
*/ | ||
void bar(); | ||
void baz(); | ||
} |
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
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