de.mirkosertic.bytecoder.classlib.java.lang.TObject Maven / Gradle / Ivy
/*
* Copyright 2018 Mirko Sertic
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.mirkosertic.bytecoder.classlib.java.lang;
import de.mirkosertic.bytecoder.api.EmulatedByRuntime;
import de.mirkosertic.bytecoder.api.IsObject;
import de.mirkosertic.bytecoder.api.Substitutes;
import de.mirkosertic.bytecoder.api.SubstitutesInClass;
@SubstitutesInClass(completeReplace = true)
@IsObject
public class TObject {
@EmulatedByRuntime
public TObject() {
}
@Substitutes("")
public void emptyConstructor() {
}
public String toString() {
return "";
}
public boolean equals(final Object aObject) {
return this == aObject;
}
public int hashCode() {
return 0;
}
public Object clone() throws CloneNotSupportedException {
throw new CloneNotSupportedException();
}
@EmulatedByRuntime
@Substitutes("getClass")
public Class getClassInternal() {
return null;
}
@Substitutes("wait")
public void waitInternal() {
}
@Substitutes("wait")
public void waitInternal(final long aTimeout) {
}
@Substitutes("notify")
public void notifyInternal() {
}
@Substitutes("notifyAll")
public void notifyAllInternal() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy