Compare commits
2 Commits
targetByte
...
strucTypes
Author | SHA1 | Date | |
---|---|---|---|
|
2d598d28e9 | ||
|
9faf25d670 |
25
doc/Generics/generics.tex
Normal file
25
doc/Generics/generics.tex
Normal file
@ -0,0 +1,25 @@
|
||||
\documentclass{article}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\section{Generics sind notwendig}
|
||||
Generics können nicht ignoriert werden.
|
||||
Folgender Fall ist Typisierbar:
|
||||
|
||||
\begin{program}
|
||||
<T> T m1(T x){
|
||||
return m2(x);
|
||||
}
|
||||
|
||||
m2(x){
|
||||
m1(1);
|
||||
m2("Test");
|
||||
return m1(x);
|
||||
}
|
||||
\end{program}
|
||||
|
||||
Beim weglassen des Generics T wäre es aber nicht mehr möglich.
|
||||
Dann erhält jeder Constraint, welcher in Verbindung mit der Methode m1 steht
|
||||
den selben TPH.
|
||||
|
||||
\end{document}
|
0
doc/Javadoc/allclasses-frame.html
Executable file → Normal file
0
doc/Javadoc/allclasses-frame.html
Executable file → Normal file
0
doc/Javadoc/allclasses-noframe.html
Executable file → Normal file
0
doc/Javadoc/allclasses-noframe.html
Executable file → Normal file
0
doc/Javadoc/constant-values.html
Executable file → Normal file
0
doc/Javadoc/constant-values.html
Executable file → Normal file
0
doc/Javadoc/deprecated-list.html
Executable file → Normal file
0
doc/Javadoc/deprecated-list.html
Executable file → Normal file
0
doc/Javadoc/help-doc.html
Executable file → Normal file
0
doc/Javadoc/help-doc.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-1.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-1.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-10.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-10.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-11.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-11.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-12.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-12.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-13.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-13.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-14.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-14.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-15.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-15.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-16.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-16.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-17.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-17.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-18.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-18.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-19.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-19.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-2.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-2.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-20.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-20.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-21.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-21.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-22.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-22.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-23.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-23.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-24.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-24.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-3.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-3.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-4.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-4.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-5.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-5.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-6.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-6.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-7.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-7.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-8.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-8.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-9.html
Executable file → Normal file
0
doc/Javadoc/index-files/index-9.html
Executable file → Normal file
0
doc/Javadoc/index.html
Executable file → Normal file
0
doc/Javadoc/index.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/MyCompiler.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/MyCompiler.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/MyCompilerAPI.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/MyCompilerAPI.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/SourceFile.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/SourceFile.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/class-use/MyCompiler.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/class-use/MyCompiler.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/class-use/MyCompilerAPI.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/class-use/MyCompilerAPI.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/class-use/SourceFile.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/class-use/SourceFile.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/Attribute.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/Attribute.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/AttributeInfo.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/AttributeInfo.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CONSTANT_Class_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CONSTANT_Class_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CONSTANT_Double_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CONSTANT_Double_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CONSTANT_Fieldref_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CONSTANT_Fieldref_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CONSTANT_Float_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CONSTANT_Float_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CONSTANT_Integer_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CONSTANT_Integer_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CONSTANT_InterfaceMethodref_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CONSTANT_InterfaceMethodref_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CONSTANT_Long_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CONSTANT_Long_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CONSTANT_Methodref_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CONSTANT_Methodref_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CONSTANT_NameAndType_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CONSTANT_NameAndType_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CONSTANT_String_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CONSTANT_String_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CONSTANT_Utf8_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CONSTANT_Utf8_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CPInfo.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CPInfo.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/ClassFile.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/ClassFile.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CodeAttribute.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/CodeAttribute.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/ExceptionTable.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/ExceptionTable.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/FieldInfo.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/FieldInfo.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/JVMCode.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/JVMCode.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/Key.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/Key.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/MethodInfo.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/MethodInfo.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/Attribute.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/Attribute.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/AttributeInfo.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/AttributeInfo.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CONSTANT_Class_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CONSTANT_Class_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CONSTANT_Double_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CONSTANT_Double_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CONSTANT_Fieldref_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CONSTANT_Fieldref_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CONSTANT_Float_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CONSTANT_Float_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CONSTANT_Integer_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CONSTANT_Integer_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CONSTANT_InterfaceMethodref_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CONSTANT_InterfaceMethodref_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CONSTANT_Long_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CONSTANT_Long_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CONSTANT_Methodref_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CONSTANT_Methodref_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CONSTANT_NameAndType_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CONSTANT_NameAndType_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CONSTANT_String_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CONSTANT_String_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CONSTANT_Utf8_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CONSTANT_Utf8_info.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CPInfo.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CPInfo.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/ClassFile.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/ClassFile.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CodeAttribute.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/CodeAttribute.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/ExceptionTable.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/ExceptionTable.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/FieldInfo.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/FieldInfo.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/JVMCode.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/JVMCode.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/Key.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/Key.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/MethodInfo.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/class-use/MethodInfo.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/package-frame.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/package-frame.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/package-summary.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/package-summary.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/package-tree.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/package-tree.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/package-use.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/mybytecode/package-use.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/Class.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/Class.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/ClassBody.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/ClassBody.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/ClassDeclId.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/ClassDeclId.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/Constructor.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/Constructor.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/DeclId.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/DeclId.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/ExceptionList.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/ExceptionList.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/FieldDecl.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/FieldDecl.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/FormalParameter.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/FormalParameter.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/InstVarDecl.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/InstVarDecl.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/Method.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/Method.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/ParameterList.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/ParameterList.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/Status.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/Status.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/UsedId.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/UsedId.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/UserDef.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/UserDef.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/class-use/Class.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/class-use/Class.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/class-use/ClassBody.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/class-use/ClassBody.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/class-use/ClassDeclId.html
Executable file → Normal file
0
doc/Javadoc/mycompiler/myclass/class-use/ClassDeclId.html
Executable file → Normal file
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user