Parser erweitert

This commit is contained in:
JanUlrich 2017-03-02 16:48:08 +01:00
parent 52f51c7932
commit 0b17894ed2
40 changed files with 320 additions and 506 deletions

View File

@ -112,10 +112,10 @@ var activeTableTab = "activeTableTab";
<li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Expr.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Expr</a></li> <li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Expr.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Expr</a></li>
<li> <li>
<ul class="inheritance"> <ul class="inheritance">
<li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Literal</a></li> <li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.literal.Literal</a></li>
<li> <li>
<ul class="inheritance"> <ul class="inheritance">
<li>de.dhbwstuttgart.syntaxtree.statement.BoolLiteral</li> <li>de.dhbwstuttgart.syntaxtree.statement.literal.BoolLiteral</li>
</ul> </ul>
</li> </li>
</ul> </ul>
@ -253,7 +253,7 @@ extends <a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html"
</tr> </tr>
</table> </table>
<ul class="blockList"> <ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.de.dhbwstuttgart.syntaxtree.statement.Literal"> <li class="blockList"><a name="methods.inherited.from.class.de.dhbwstuttgart.syntaxtree.statement.literal.Literal">
<!-- --> <!-- -->
</a> </a>
<h3>Methods inherited from class&nbsp;de.dhbwstuttgart.syntaxtree.statement.<a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">Literal</a></h3> <h3>Methods inherited from class&nbsp;de.dhbwstuttgart.syntaxtree.statement.<a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">Literal</a></h3>

View File

@ -112,10 +112,10 @@ var activeTableTab = "activeTableTab";
<li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Expr.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Expr</a></li> <li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Expr.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Expr</a></li>
<li> <li>
<ul class="inheritance"> <ul class="inheritance">
<li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Literal</a></li> <li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.literal.Literal</a></li>
<li> <li>
<ul class="inheritance"> <ul class="inheritance">
<li>de.dhbwstuttgart.syntaxtree.statement.CharLiteral</li> <li>de.dhbwstuttgart.syntaxtree.statement.literal.CharLiteral</li>
</ul> </ul>
</li> </li>
</ul> </ul>
@ -253,7 +253,7 @@ extends <a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html"
</tr> </tr>
</table> </table>
<ul class="blockList"> <ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.de.dhbwstuttgart.syntaxtree.statement.Literal"> <li class="blockList"><a name="methods.inherited.from.class.de.dhbwstuttgart.syntaxtree.statement.literal.Literal">
<!-- --> <!-- -->
</a> </a>
<h3>Methods inherited from class&nbsp;de.dhbwstuttgart.syntaxtree.statement.<a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">Literal</a></h3> <h3>Methods inherited from class&nbsp;de.dhbwstuttgart.syntaxtree.statement.<a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">Literal</a></h3>

View File

@ -112,10 +112,10 @@ var activeTableTab = "activeTableTab";
<li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Expr.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Expr</a></li> <li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Expr.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Expr</a></li>
<li> <li>
<ul class="inheritance"> <ul class="inheritance">
<li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Literal</a></li> <li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.literal.Literal</a></li>
<li> <li>
<ul class="inheritance"> <ul class="inheritance">
<li>de.dhbwstuttgart.syntaxtree.statement.DoubleLiteral</li> <li>de.dhbwstuttgart.syntaxtree.statement.literal.DoubleLiteral</li>
</ul> </ul>
</li> </li>
</ul> </ul>
@ -263,7 +263,7 @@ extends <a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html"
</tr> </tr>
</table> </table>
<ul class="blockList"> <ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.de.dhbwstuttgart.syntaxtree.statement.Literal"> <li class="blockList"><a name="methods.inherited.from.class.de.dhbwstuttgart.syntaxtree.statement.literal.Literal">
<!-- --> <!-- -->
</a> </a>
<h3>Methods inherited from class&nbsp;de.dhbwstuttgart.syntaxtree.statement.<a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">Literal</a></h3> <h3>Methods inherited from class&nbsp;de.dhbwstuttgart.syntaxtree.statement.<a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">Literal</a></h3>

View File

@ -112,10 +112,10 @@ var activeTableTab = "activeTableTab";
<li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Expr.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Expr</a></li> <li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Expr.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Expr</a></li>
<li> <li>
<ul class="inheritance"> <ul class="inheritance">
<li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Literal</a></li> <li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.literal.Literal</a></li>
<li> <li>
<ul class="inheritance"> <ul class="inheritance">
<li>de.dhbwstuttgart.syntaxtree.statement.FloatLiteral</li> <li>de.dhbwstuttgart.syntaxtree.statement.literal.FloatLiteral</li>
</ul> </ul>
</li> </li>
</ul> </ul>
@ -263,7 +263,7 @@ extends <a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html"
</tr> </tr>
</table> </table>
<ul class="blockList"> <ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.de.dhbwstuttgart.syntaxtree.statement.Literal"> <li class="blockList"><a name="methods.inherited.from.class.de.dhbwstuttgart.syntaxtree.statement.literal.Literal">
<!-- --> <!-- -->
</a> </a>
<h3>Methods inherited from class&nbsp;de.dhbwstuttgart.syntaxtree.statement.<a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">Literal</a></h3> <h3>Methods inherited from class&nbsp;de.dhbwstuttgart.syntaxtree.statement.<a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">Literal</a></h3>

View File

@ -112,10 +112,10 @@ var activeTableTab = "activeTableTab";
<li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Expr.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Expr</a></li> <li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Expr.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Expr</a></li>
<li> <li>
<ul class="inheritance"> <ul class="inheritance">
<li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Literal</a></li> <li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.literal.Literal</a></li>
<li> <li>
<ul class="inheritance"> <ul class="inheritance">
<li>de.dhbwstuttgart.syntaxtree.statement.IntLiteral</li> <li>de.dhbwstuttgart.syntaxtree.statement.literal.NumberLiteral</li>
</ul> </ul>
</li> </li>
</ul> </ul>
@ -263,7 +263,7 @@ extends <a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html"
</tr> </tr>
</table> </table>
<ul class="blockList"> <ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.de.dhbwstuttgart.syntaxtree.statement.Literal"> <li class="blockList"><a name="methods.inherited.from.class.de.dhbwstuttgart.syntaxtree.statement.literal.Literal">
<!-- --> <!-- -->
</a> </a>
<h3>Methods inherited from class&nbsp;de.dhbwstuttgart.syntaxtree.statement.<a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">Literal</a></h3> <h3>Methods inherited from class&nbsp;de.dhbwstuttgart.syntaxtree.statement.<a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">Literal</a></h3>

View File

@ -112,7 +112,7 @@ var activeTableTab = "activeTableTab";
<li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Expr.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Expr</a></li> <li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Expr.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Expr</a></li>
<li> <li>
<ul class="inheritance"> <ul class="inheritance">
<li>de.dhbwstuttgart.syntaxtree.statement.Literal</li> <li>de.dhbwstuttgart.syntaxtree.statement.literal.Literal</li>
</ul> </ul>
</li> </li>
</ul> </ul>

View File

@ -112,7 +112,7 @@ var activeTableTab = "activeTableTab";
<li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Expr.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Expr</a></li> <li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Expr.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Expr</a></li>
<li> <li>
<ul class="inheritance"> <ul class="inheritance">
<li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Literal</a></li> <li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.literal.Literal</a></li>
<li> <li>
<ul class="inheritance"> <ul class="inheritance">
<li>de.dhbwstuttgart.syntaxtree.statement.LongLiteral</li> <li>de.dhbwstuttgart.syntaxtree.statement.LongLiteral</li>
@ -263,7 +263,7 @@ extends <a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html"
</tr> </tr>
</table> </table>
<ul class="blockList"> <ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.de.dhbwstuttgart.syntaxtree.statement.Literal"> <li class="blockList"><a name="methods.inherited.from.class.de.dhbwstuttgart.syntaxtree.statement.literal.Literal">
<!-- --> <!-- -->
</a> </a>
<h3>Methods inherited from class&nbsp;de.dhbwstuttgart.syntaxtree.statement.<a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">Literal</a></h3> <h3>Methods inherited from class&nbsp;de.dhbwstuttgart.syntaxtree.statement.<a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">Literal</a></h3>

View File

@ -112,10 +112,10 @@ var activeTableTab = "activeTableTab";
<li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Expr.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Expr</a></li> <li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Expr.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Expr</a></li>
<li> <li>
<ul class="inheritance"> <ul class="inheritance">
<li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Literal</a></li> <li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.literal.Literal</a></li>
<li> <li>
<ul class="inheritance"> <ul class="inheritance">
<li>de.dhbwstuttgart.syntaxtree.statement.Null</li> <li>de.dhbwstuttgart.syntaxtree.statement.literal.Null</li>
</ul> </ul>
</li> </li>
</ul> </ul>
@ -245,7 +245,7 @@ extends <a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html"
</tr> </tr>
</table> </table>
<ul class="blockList"> <ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.de.dhbwstuttgart.syntaxtree.statement.Literal"> <li class="blockList"><a name="methods.inherited.from.class.de.dhbwstuttgart.syntaxtree.statement.literal.Literal">
<!-- --> <!-- -->
</a> </a>
<h3>Methods inherited from class&nbsp;de.dhbwstuttgart.syntaxtree.statement.<a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">Literal</a></h3> <h3>Methods inherited from class&nbsp;de.dhbwstuttgart.syntaxtree.statement.<a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">Literal</a></h3>

View File

@ -112,10 +112,10 @@ var activeTableTab = "activeTableTab";
<li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Expr.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Expr</a></li> <li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Expr.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Expr</a></li>
<li> <li>
<ul class="inheritance"> <ul class="inheritance">
<li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.Literal</a></li> <li><a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">de.dhbwstuttgart.syntaxtree.statement.literal.Literal</a></li>
<li> <li>
<ul class="inheritance"> <ul class="inheritance">
<li>de.dhbwstuttgart.syntaxtree.statement.StringLiteral</li> <li>de.dhbwstuttgart.syntaxtree.statement.literal.StringLiteral</li>
</ul> </ul>
</li> </li>
</ul> </ul>
@ -253,7 +253,7 @@ extends <a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html"
</tr> </tr>
</table> </table>
<ul class="blockList"> <ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.de.dhbwstuttgart.syntaxtree.statement.Literal"> <li class="blockList"><a name="methods.inherited.from.class.de.dhbwstuttgart.syntaxtree.statement.literal.Literal">
<!-- --> <!-- -->
</a> </a>
<h3>Methods inherited from class&nbsp;de.dhbwstuttgart.syntaxtree.statement.<a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">Literal</a></h3> <h3>Methods inherited from class&nbsp;de.dhbwstuttgart.syntaxtree.statement.<a href="../../../../de/dhbwstuttgart/syntaxtree/statement/Literal.html" title="class in de.dhbwstuttgart.syntaxtree.statement">Literal</a></h3>

View File

@ -3,7 +3,7 @@
<html lang="de"> <html lang="de">
<head> <head>
<!-- Generated by javadoc (1.8.0_05) on Tue May 12 19:56:24 CEST 2015 --> <!-- Generated by javadoc (1.8.0_05) on Tue May 12 19:56:24 CEST 2015 -->
<title>Uses of Class de.dhbwstuttgart.syntaxtree.statement.BoolLiteral</title> <title>Uses of Class de.dhbwstuttgart.syntaxtree.statement.literal.BoolLiteral</title>
<meta name="date" content="2015-05-12"> <meta name="date" content="2015-05-12">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
@ -70,9 +70,9 @@
</a></div> </a></div>
<!-- ========= END OF TOP NAVBAR ========= --> <!-- ========= END OF TOP NAVBAR ========= -->
<div class="header"> <div class="header">
<h2 title="Uses of Class de.dhbwstuttgart.syntaxtree.statement.BoolLiteral" class="title">Uses of Class<br>de.dhbwstuttgart.syntaxtree.statement.BoolLiteral</h2> <h2 title="Uses of Class de.dhbwstuttgart.syntaxtree.statement.literal.BoolLiteral" class="title">Uses of Class<br>de.dhbwstuttgart.syntaxtree.statement.BoolLiteral</h2>
</div> </div>
<div class="classUseContainer">No usage of de.dhbwstuttgart.syntaxtree.statement.BoolLiteral</div> <div class="classUseContainer">No usage of de.dhbwstuttgart.syntaxtree.statement.literal.BoolLiteral</div>
<!-- ======= START OF BOTTOM NAVBAR ====== --> <!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom"> <div class="bottomNav"><a name="navbar.bottom">
<!-- --> <!-- -->

View File

@ -3,7 +3,7 @@
<html lang="de"> <html lang="de">
<head> <head>
<!-- Generated by javadoc (1.8.0_05) on Tue May 12 19:56:24 CEST 2015 --> <!-- Generated by javadoc (1.8.0_05) on Tue May 12 19:56:24 CEST 2015 -->
<title>Uses of Class de.dhbwstuttgart.syntaxtree.statement.CharLiteral</title> <title>Uses of Class de.dhbwstuttgart.syntaxtree.statement.literal.CharLiteral</title>
<meta name="date" content="2015-05-12"> <meta name="date" content="2015-05-12">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
@ -70,9 +70,9 @@
</a></div> </a></div>
<!-- ========= END OF TOP NAVBAR ========= --> <!-- ========= END OF TOP NAVBAR ========= -->
<div class="header"> <div class="header">
<h2 title="Uses of Class de.dhbwstuttgart.syntaxtree.statement.CharLiteral" class="title">Uses of Class<br>de.dhbwstuttgart.syntaxtree.statement.CharLiteral</h2> <h2 title="Uses of Class de.dhbwstuttgart.syntaxtree.statement.literal.CharLiteral" class="title">Uses of Class<br>de.dhbwstuttgart.syntaxtree.statement.CharLiteral</h2>
</div> </div>
<div class="classUseContainer">No usage of de.dhbwstuttgart.syntaxtree.statement.CharLiteral</div> <div class="classUseContainer">No usage of de.dhbwstuttgart.syntaxtree.statement.literal.CharLiteral</div>
<!-- ======= START OF BOTTOM NAVBAR ====== --> <!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom"> <div class="bottomNav"><a name="navbar.bottom">
<!-- --> <!-- -->

View File

@ -3,7 +3,7 @@
<html lang="de"> <html lang="de">
<head> <head>
<!-- Generated by javadoc (1.8.0_05) on Tue May 12 19:56:24 CEST 2015 --> <!-- Generated by javadoc (1.8.0_05) on Tue May 12 19:56:24 CEST 2015 -->
<title>Uses of Class de.dhbwstuttgart.syntaxtree.statement.DoubleLiteral</title> <title>Uses of Class de.dhbwstuttgart.syntaxtree.statement.literal.DoubleLiteral</title>
<meta name="date" content="2015-05-12"> <meta name="date" content="2015-05-12">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
@ -70,9 +70,9 @@
</a></div> </a></div>
<!-- ========= END OF TOP NAVBAR ========= --> <!-- ========= END OF TOP NAVBAR ========= -->
<div class="header"> <div class="header">
<h2 title="Uses of Class de.dhbwstuttgart.syntaxtree.statement.DoubleLiteral" class="title">Uses of Class<br>de.dhbwstuttgart.syntaxtree.statement.DoubleLiteral</h2> <h2 title="Uses of Class de.dhbwstuttgart.syntaxtree.statement.literal.DoubleLiteral" class="title">Uses of Class<br>de.dhbwstuttgart.syntaxtree.statement.DoubleLiteral</h2>
</div> </div>
<div class="classUseContainer">No usage of de.dhbwstuttgart.syntaxtree.statement.DoubleLiteral</div> <div class="classUseContainer">No usage of de.dhbwstuttgart.syntaxtree.statement.literal.DoubleLiteral</div>
<!-- ======= START OF BOTTOM NAVBAR ====== --> <!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom"> <div class="bottomNav"><a name="navbar.bottom">
<!-- --> <!-- -->

View File

@ -3,7 +3,7 @@
<html lang="de"> <html lang="de">
<head> <head>
<!-- Generated by javadoc (1.8.0_05) on Tue May 12 19:56:24 CEST 2015 --> <!-- Generated by javadoc (1.8.0_05) on Tue May 12 19:56:24 CEST 2015 -->
<title>Uses of Class de.dhbwstuttgart.syntaxtree.statement.FloatLiteral</title> <title>Uses of Class de.dhbwstuttgart.syntaxtree.statement.literal.FloatLiteral</title>
<meta name="date" content="2015-05-12"> <meta name="date" content="2015-05-12">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
@ -70,9 +70,9 @@
</a></div> </a></div>
<!-- ========= END OF TOP NAVBAR ========= --> <!-- ========= END OF TOP NAVBAR ========= -->
<div class="header"> <div class="header">
<h2 title="Uses of Class de.dhbwstuttgart.syntaxtree.statement.FloatLiteral" class="title">Uses of Class<br>de.dhbwstuttgart.syntaxtree.statement.FloatLiteral</h2> <h2 title="Uses of Class de.dhbwstuttgart.syntaxtree.statement.literal.FloatLiteral" class="title">Uses of Class<br>de.dhbwstuttgart.syntaxtree.statement.FloatLiteral</h2>
</div> </div>
<div class="classUseContainer">No usage of de.dhbwstuttgart.syntaxtree.statement.FloatLiteral</div> <div class="classUseContainer">No usage of de.dhbwstuttgart.syntaxtree.statement.literal.FloatLiteral</div>
<!-- ======= START OF BOTTOM NAVBAR ====== --> <!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom"> <div class="bottomNav"><a name="navbar.bottom">
<!-- --> <!-- -->

View File

@ -3,7 +3,7 @@
<html lang="de"> <html lang="de">
<head> <head>
<!-- Generated by javadoc (1.8.0_05) on Tue May 12 19:56:24 CEST 2015 --> <!-- Generated by javadoc (1.8.0_05) on Tue May 12 19:56:24 CEST 2015 -->
<title>Uses of Class de.dhbwstuttgart.syntaxtree.statement.IntLiteral</title> <title>Uses of Class de.dhbwstuttgart.syntaxtree.statement.literal.NumberLiteral</title>
<meta name="date" content="2015-05-12"> <meta name="date" content="2015-05-12">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
@ -70,9 +70,9 @@
</a></div> </a></div>
<!-- ========= END OF TOP NAVBAR ========= --> <!-- ========= END OF TOP NAVBAR ========= -->
<div class="header"> <div class="header">
<h2 title="Uses of Class de.dhbwstuttgart.syntaxtree.statement.IntLiteral" class="title">Uses of Class<br>de.dhbwstuttgart.syntaxtree.statement.IntLiteral</h2> <h2 title="Uses of Class de.dhbwstuttgart.syntaxtree.statement.literal.NumberLiteral" class="title">Uses of Class<br>de.dhbwstuttgart.syntaxtree.statement.IntLiteral</h2>
</div> </div>
<div class="classUseContainer">No usage of de.dhbwstuttgart.syntaxtree.statement.IntLiteral</div> <div class="classUseContainer">No usage of de.dhbwstuttgart.syntaxtree.statement.literal.NumberLiteral</div>
<!-- ======= START OF BOTTOM NAVBAR ====== --> <!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom"> <div class="bottomNav"><a name="navbar.bottom">
<!-- --> <!-- -->

View File

@ -3,7 +3,7 @@
<html lang="de"> <html lang="de">
<head> <head>
<!-- Generated by javadoc (1.8.0_05) on Tue May 12 19:56:24 CEST 2015 --> <!-- Generated by javadoc (1.8.0_05) on Tue May 12 19:56:24 CEST 2015 -->
<title>Uses of Class de.dhbwstuttgart.syntaxtree.statement.Literal</title> <title>Uses of Class de.dhbwstuttgart.syntaxtree.statement.literal.Literal</title>
<meta name="date" content="2015-05-12"> <meta name="date" content="2015-05-12">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
@ -70,7 +70,7 @@
</a></div> </a></div>
<!-- ========= END OF TOP NAVBAR ========= --> <!-- ========= END OF TOP NAVBAR ========= -->
<div class="header"> <div class="header">
<h2 title="Uses of Class de.dhbwstuttgart.syntaxtree.statement.Literal" class="title">Uses of Class<br>de.dhbwstuttgart.syntaxtree.statement.Literal</h2> <h2 title="Uses of Class de.dhbwstuttgart.syntaxtree.statement.literal.Literal" class="title">Uses of Class<br>de.dhbwstuttgart.syntaxtree.statement.Literal</h2>
</div> </div>
<div class="classUseContainer"> <div class="classUseContainer">
<ul class="blockList"> <ul class="blockList">

View File

@ -3,7 +3,7 @@
<html lang="de"> <html lang="de">
<head> <head>
<!-- Generated by javadoc (1.8.0_05) on Tue May 12 19:56:24 CEST 2015 --> <!-- Generated by javadoc (1.8.0_05) on Tue May 12 19:56:24 CEST 2015 -->
<title>Uses of Class de.dhbwstuttgart.syntaxtree.statement.Null</title> <title>Uses of Class de.dhbwstuttgart.syntaxtree.statement.literal.Null</title>
<meta name="date" content="2015-05-12"> <meta name="date" content="2015-05-12">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
@ -70,9 +70,9 @@
</a></div> </a></div>
<!-- ========= END OF TOP NAVBAR ========= --> <!-- ========= END OF TOP NAVBAR ========= -->
<div class="header"> <div class="header">
<h2 title="Uses of Class de.dhbwstuttgart.syntaxtree.statement.Null" class="title">Uses of Class<br>de.dhbwstuttgart.syntaxtree.statement.Null</h2> <h2 title="Uses of Class de.dhbwstuttgart.syntaxtree.statement.literal.Null" class="title">Uses of Class<br>de.dhbwstuttgart.syntaxtree.statement.Null</h2>
</div> </div>
<div class="classUseContainer">No usage of de.dhbwstuttgart.syntaxtree.statement.Null</div> <div class="classUseContainer">No usage of de.dhbwstuttgart.syntaxtree.statement.literal.Null</div>
<!-- ======= START OF BOTTOM NAVBAR ====== --> <!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom"> <div class="bottomNav"><a name="navbar.bottom">
<!-- --> <!-- -->

View File

@ -3,7 +3,7 @@
<html lang="de"> <html lang="de">
<head> <head>
<!-- Generated by javadoc (1.8.0_05) on Tue May 12 19:56:24 CEST 2015 --> <!-- Generated by javadoc (1.8.0_05) on Tue May 12 19:56:24 CEST 2015 -->
<title>Uses of Class de.dhbwstuttgart.syntaxtree.statement.StringLiteral</title> <title>Uses of Class de.dhbwstuttgart.syntaxtree.statement.literal.StringLiteral</title>
<meta name="date" content="2015-05-12"> <meta name="date" content="2015-05-12">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script> <script type="text/javascript" src="../../../../../script.js"></script>
@ -70,9 +70,9 @@
</a></div> </a></div>
<!-- ========= END OF TOP NAVBAR ========= --> <!-- ========= END OF TOP NAVBAR ========= -->
<div class="header"> <div class="header">
<h2 title="Uses of Class de.dhbwstuttgart.syntaxtree.statement.StringLiteral" class="title">Uses of Class<br>de.dhbwstuttgart.syntaxtree.statement.StringLiteral</h2> <h2 title="Uses of Class de.dhbwstuttgart.syntaxtree.statement.literal.StringLiteral" class="title">Uses of Class<br>de.dhbwstuttgart.syntaxtree.statement.StringLiteral</h2>
</div> </div>
<div class="classUseContainer">No usage of de.dhbwstuttgart.syntaxtree.statement.StringLiteral</div> <div class="classUseContainer">No usage of de.dhbwstuttgart.syntaxtree.statement.literal.StringLiteral</div>
<!-- ======= START OF BOTTOM NAVBAR ====== --> <!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom"> <div class="bottomNav"><a name="navbar.bottom">
<!-- --> <!-- -->

View File

@ -6,19 +6,18 @@ import de.dhbwstuttgart.syntaxtree.modifier.*;
import de.dhbwstuttgart.syntaxtree.modifier.fieldModifier.*; import de.dhbwstuttgart.syntaxtree.modifier.fieldModifier.*;
import de.dhbwstuttgart.syntaxtree.modifier.methodModifier.MethodModifier; import de.dhbwstuttgart.syntaxtree.modifier.methodModifier.MethodModifier;
import de.dhbwstuttgart.syntaxtree.operator.AndOp; import de.dhbwstuttgart.syntaxtree.operator.AndOp;
import de.dhbwstuttgart.syntaxtree.operator.Operator;
import de.dhbwstuttgart.syntaxtree.operator.OrOp; import de.dhbwstuttgart.syntaxtree.operator.OrOp;
import de.dhbwstuttgart.syntaxtree.statement.*; import de.dhbwstuttgart.syntaxtree.statement.*;
import de.dhbwstuttgart.syntaxtree.statement.Super;
import de.dhbwstuttgart.syntaxtree.statement.literal.*;
import de.dhbwstuttgart.syntaxtree.type.RefType; import de.dhbwstuttgart.syntaxtree.type.RefType;
import de.dhbwstuttgart.syntaxtree.type.RefTypeOrTPH; import de.dhbwstuttgart.syntaxtree.type.RefTypeOrTPH;
import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder; import de.dhbwstuttgart.syntaxtree.type.TypePlaceholder;
import de.dhbwstuttgart.typecheck.*; import de.dhbwstuttgart.typecheck.*;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator;
import java.util.List; import java.util.List;
import org.antlr.v4.runtime.Token; import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.atn.SemanticContext;
import org.antlr.v4.runtime.tree.TerminalNode; import org.antlr.v4.runtime.tree.TerminalNode;
import sun.reflect.generics.reflectiveObjects.NotImplementedException; import sun.reflect.generics.reflectiveObjects.NotImplementedException;
@ -512,21 +511,21 @@ public class SyntaxTreeGenerator{
return convert(declaration); return convert(declaration);
} }
private static Statement convert(Java8Parser.LabeledStatementContext labeledStatementContext) { private Statement convert(Java8Parser.LabeledStatementContext labeledStatementContext) {
throw new NotImplementedException(); throw new NotImplementedException();
//return convert(labeledStatementContext.statement()); //return convert(labeledStatementContext.statement());
} }
private static Statement convert(Java8Parser.LabeledStatementNoShortIfContext stmt){ private Statement convert(Java8Parser.LabeledStatementNoShortIfContext stmt){
throw new NotImplementedException(); throw new NotImplementedException();
//return convert(stmt.statementNoShortIf()); //return convert(stmt.statementNoShortIf());
} }
private static Statement convert(Java8Parser.ExpressionStatementContext stmt){ private Statement convert(Java8Parser.ExpressionStatementContext stmt){
return convert(stmt.statementExpression()); return convert(stmt.statementExpression());
} }
private static Statement convert(Java8Parser.StatementExpressionContext stmt) { private Statement convert(Java8Parser.StatementExpressionContext stmt) {
if(stmt.assignment() != null){ if(stmt.assignment() != null){
return convert(stmt.assignment()); return convert(stmt.assignment());
}else if(stmt.preIncrementExpression() != null){ }else if(stmt.preIncrementExpression() != null){
@ -544,23 +543,30 @@ public class SyntaxTreeGenerator{
}else throw new NotImplementedException(); }else throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.MethodInvocationContext methodInvocationContext) { private Statement convert(Java8Parser.MethodInvocationContext methodInvocationContext) {
String name = methodInvocationContext.methodName().Identifier().getText(); String name;
if(methodInvocationContext.methodName()!=null){
name = methodInvocationContext.methodName().Identifier().getText();
}else{// if(methodInvocationContext.Identifier() != null){
name = methodInvocationContext.Identifier().getText();
}
Expr receiver; Expr receiver;
if(methodInvocationContext.typeName() != null){ if(methodInvocationContext.typeName() != null){
receiver = new LocalOrFieldVarOrClassname(methodInvocationContext.typeName().getText(), methodInvocationContext.typeArguments().getStart()); receiver = new LocalOrFieldVarOrClassname(methodInvocationContext.typeName().getText(), methodInvocationContext.typeName().getStart());
}else if(methodInvocationContext.expressionName()!=null){ }else if(methodInvocationContext.expressionName()!=null){
receiver = convert(methodInvocationContext.expressionName()); receiver = convert(methodInvocationContext.expressionName());
}else{ }else if(methodInvocationContext.primary() != null){
receiver = new This(methodInvocationContext.getStart()); receiver = convert(methodInvocationContext.primary());
} }else if(methodInvocationContext.toString().startsWith("super")){
receiver = new Super(methodInvocationContext.getStart());
}else throw new NotImplementedException();
ArgumentList argumentList = null; ArgumentList argumentList = null;
MethodCall ret = new MethodCall(new Receiver(receiver), name, argumentList, methodInvocationContext.getStart()); MethodCall ret = new MethodCall(new Receiver(receiver), name, argumentList, methodInvocationContext.getStart());
return ret; return ret;
} }
private static Expr convert(Java8Parser.ExpressionNameContext expressionNameContext) { private Expr convert(Java8Parser.ExpressionNameContext expressionNameContext) {
/* /*
Der Parser könnte feststellen, ob es sich um einen Klassennamen, Der Parser könnte feststellen, ob es sich um einen Klassennamen,
eine lokale Variable oder einen Feldzugriff handelt. eine lokale Variable oder einen Feldzugriff handelt.
@ -572,88 +578,88 @@ public class SyntaxTreeGenerator{
} }
private static Statement convert(Java8Parser.ClassInstanceCreationExpressionContext stmt) { private Statement convert(Java8Parser.ClassInstanceCreationExpressionContext stmt) {
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static ExprStmt convert(Java8Parser.PreIncrementExpressionContext stmt) { private ExprStmt convert(Java8Parser.PreIncrementExpressionContext stmt) {
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static ExprStmt convert(Java8Parser.PreDecrementExpressionContext stmt) { private ExprStmt convert(Java8Parser.PreDecrementExpressionContext stmt) {
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.PostIncrementExpressionContext stmt) { private Statement convert(Java8Parser.PostIncrementExpressionContext stmt) {
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.PostDecrementExpressionContext stmt) { private Statement convert(Java8Parser.PostDecrementExpressionContext stmt) {
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static ExprStmt convert(Java8Parser.AssignmentContext stmt) { private ExprStmt convert(Java8Parser.AssignmentContext stmt) {
//TODO //TODO
//return new StatementReturn(new Assign()) //return new StatementReturn(new Assign())
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.IfThenStatementContext stmt){ private Statement convert(Java8Parser.IfThenStatementContext stmt){
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.IfThenElseStatementContext stmt){ private Statement convert(Java8Parser.IfThenElseStatementContext stmt){
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.IfThenElseStatementNoShortIfContext stmt){ private Statement convert(Java8Parser.IfThenElseStatementNoShortIfContext stmt){
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.AssertStatementContext stmt){ private Statement convert(Java8Parser.AssertStatementContext stmt){
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.SwitchStatementContext stmt){ private Statement convert(Java8Parser.SwitchStatementContext stmt){
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.SwitchBlockContext stmt){ private Statement convert(Java8Parser.SwitchBlockContext stmt){
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.SwitchBlockStatementGroupContext stmt){ private Statement convert(Java8Parser.SwitchBlockStatementGroupContext stmt){
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.WhileStatementContext stmt){ private Statement convert(Java8Parser.WhileStatementContext stmt){
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.WhileStatementNoShortIfContext stmt){ private Statement convert(Java8Parser.WhileStatementNoShortIfContext stmt){
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.DoStatementContext stmt){ private Statement convert(Java8Parser.DoStatementContext stmt){
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.ForStatementContext stmt){ private Statement convert(Java8Parser.ForStatementContext stmt){
if(stmt.basicForStatement() != null){ if(stmt.basicForStatement() != null){
return convert(stmt.basicForStatement()); return convert(stmt.basicForStatement());
}else if(stmt.enhancedForStatement() != null){ }else if(stmt.enhancedForStatement() != null){
@ -661,7 +667,7 @@ public class SyntaxTreeGenerator{
}else throw new NotImplementedException(); }else throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.ForStatementNoShortIfContext stmt){ private Statement convert(Java8Parser.ForStatementNoShortIfContext stmt){
if(stmt.basicForStatementNoShortIf() != null){ if(stmt.basicForStatementNoShortIf() != null){
return convert(stmt.basicForStatementNoShortIf()); return convert(stmt.basicForStatementNoShortIf());
}else if(stmt.enhancedForStatementNoShortIf() != null){ }else if(stmt.enhancedForStatementNoShortIf() != null){
@ -669,12 +675,12 @@ public class SyntaxTreeGenerator{
}else throw new NotImplementedException(); }else throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.BasicForStatementContext stmt){ private Statement convert(Java8Parser.BasicForStatementContext stmt){
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.BasicForStatementNoShortIfContext stmt){ private Statement convert(Java8Parser.BasicForStatementNoShortIfContext stmt){
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
@ -706,61 +712,61 @@ public class SyntaxTreeGenerator{
return new LocalVarBunchDeclaration(declarations, declaration.getStart()); return new LocalVarBunchDeclaration(declarations, declaration.getStart());
} }
private static Statement convert(Java8Parser.ForUpdateContext stmt){ private Statement convert(Java8Parser.ForUpdateContext stmt){
return convert(stmt.statementExpressionList()); return convert(stmt.statementExpressionList());
} }
private static Statement convert(Java8Parser.StatementExpressionListContext stmt){ private Statement convert(Java8Parser.StatementExpressionListContext stmt){
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.EnhancedForStatementContext stmt){ private Statement convert(Java8Parser.EnhancedForStatementContext stmt){
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.EnhancedForStatementNoShortIfContext stmt){ private Statement convert(Java8Parser.EnhancedForStatementNoShortIfContext stmt){
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.BreakStatementContext stmt){ private Statement convert(Java8Parser.BreakStatementContext stmt){
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.ContinueStatementContext stmt){ private Statement convert(Java8Parser.ContinueStatementContext stmt){
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.ReturnStatementContext stmt){ private Statement convert(Java8Parser.ReturnStatementContext stmt){
return new Return(convert(stmt.expression()),stmt.getStart()); return new Return(convert(stmt.expression()),stmt.getStart());
//throw new NotImplementedException(); //throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.ThrowStatementContext stmt){ private Statement convert(Java8Parser.ThrowStatementContext stmt){
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.SynchronizedStatementContext stmt){ private Statement convert(Java8Parser.SynchronizedStatementContext stmt){
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.TryStatementContext stmt){ private Statement convert(Java8Parser.TryStatementContext stmt){
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.CatchesContext stmt){ private Statement convert(Java8Parser.CatchesContext stmt){
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
private static Statement convert(Java8Parser.CatchClauseContext stmt){ private Statement convert(Java8Parser.CatchClauseContext stmt){
//TODO //TODO
throw new NotImplementedException(); throw new NotImplementedException();
} }
@ -769,7 +775,7 @@ public class SyntaxTreeGenerator{
***************+ Expression Conversions: ***************+ Expression Conversions:
*/ */
private static Expr convert(Java8Parser.ExpressionContext expression) { private Expr convert(Java8Parser.ExpressionContext expression) {
if(expression.lambdaExpression()!=null){ if(expression.lambdaExpression()!=null){
return convert(expression.lambdaExpression()); return convert(expression.lambdaExpression());
}else{ }else{
@ -777,7 +783,7 @@ public class SyntaxTreeGenerator{
} }
} }
private static Expr convert(Java8Parser.AssignmentExpressionContext expression) { private Expr convert(Java8Parser.AssignmentExpressionContext expression) {
if(expression.conditionalExpression() != null){ if(expression.conditionalExpression() != null){
return convert(expression.conditionalExpression()); return convert(expression.conditionalExpression());
}else{ }else{
@ -785,7 +791,7 @@ public class SyntaxTreeGenerator{
} }
} }
private static Expr convert(Java8Parser.ConditionalExpressionContext expression) { private Expr convert(Java8Parser.ConditionalExpressionContext expression) {
if(expression.conditionalOrExpression() != null){ if(expression.conditionalOrExpression() != null){
return convert(expression.conditionalOrExpression()); return convert(expression.conditionalOrExpression());
}else{ }else{
@ -793,7 +799,7 @@ public class SyntaxTreeGenerator{
} }
} }
private static Expr convert(Java8Parser.ConditionalOrExpressionContext expression) { private Expr convert(Java8Parser.ConditionalOrExpressionContext expression) {
if(expression.conditionalOrExpression() == null){ if(expression.conditionalOrExpression() == null){
return convert(expression.conditionalAndExpression()); return convert(expression.conditionalAndExpression());
}else{ }else{
@ -802,7 +808,7 @@ public class SyntaxTreeGenerator{
} }
} }
private static Expr convert(Java8Parser.ConditionalAndExpressionContext expression) { private Expr convert(Java8Parser.ConditionalAndExpressionContext expression) {
if(expression.conditionalAndExpression() == null){ if(expression.conditionalAndExpression() == null){
return convert(expression.inclusiveOrExpression()); return convert(expression.inclusiveOrExpression());
}else{ }else{
@ -811,7 +817,7 @@ public class SyntaxTreeGenerator{
} }
} }
private static Expr convert(Java8Parser.InclusiveOrExpressionContext expression) { private Expr convert(Java8Parser.InclusiveOrExpressionContext expression) {
if(expression.inclusiveOrExpression() == null){ if(expression.inclusiveOrExpression() == null){
return convert(expression.exclusiveOrExpression()); return convert(expression.exclusiveOrExpression());
}else{ }else{
@ -819,7 +825,7 @@ public class SyntaxTreeGenerator{
} }
} }
private static Expr convert(Java8Parser.ExclusiveOrExpressionContext expression) { private Expr convert(Java8Parser.ExclusiveOrExpressionContext expression) {
if(expression.exclusiveOrExpression() == null){ if(expression.exclusiveOrExpression() == null){
return convert(expression.andExpression()); return convert(expression.andExpression());
}else{ }else{
@ -827,7 +833,7 @@ public class SyntaxTreeGenerator{
} }
} }
private static Expr convert(Java8Parser.AndExpressionContext expression) { private Expr convert(Java8Parser.AndExpressionContext expression) {
if(expression.andExpression() == null){ if(expression.andExpression() == null){
return convert(expression.equalityExpression()); return convert(expression.equalityExpression());
}else{ }else{
@ -835,7 +841,7 @@ public class SyntaxTreeGenerator{
} }
} }
private static Expr convert(Java8Parser.EqualityExpressionContext expression) { private Expr convert(Java8Parser.EqualityExpressionContext expression) {
if(expression.equalityExpression() == null){ if(expression.equalityExpression() == null){
return convert(expression.relationalExpression()); return convert(expression.relationalExpression());
}else{ }else{
@ -843,7 +849,7 @@ public class SyntaxTreeGenerator{
} }
} }
private static Expr convert(Java8Parser.RelationalExpressionContext expression) { private Expr convert(Java8Parser.RelationalExpressionContext expression) {
if(expression.relationalExpression() == null){ if(expression.relationalExpression() == null){
return convert(expression.shiftExpression()); return convert(expression.shiftExpression());
}else{ }else{
@ -851,7 +857,7 @@ public class SyntaxTreeGenerator{
} }
} }
private static Expr convert(Java8Parser.ShiftExpressionContext expression) { private Expr convert(Java8Parser.ShiftExpressionContext expression) {
if(expression.shiftExpression() == null){ if(expression.shiftExpression() == null){
return convert(expression.additiveExpression()); return convert(expression.additiveExpression());
}else{ }else{
@ -859,7 +865,7 @@ public class SyntaxTreeGenerator{
} }
} }
private static Expr convert(Java8Parser.AdditiveExpressionContext expression) { private Expr convert(Java8Parser.AdditiveExpressionContext expression) {
if(expression.additiveExpression() == null){ if(expression.additiveExpression() == null){
return convert(expression.multiplicativeExpression()); return convert(expression.multiplicativeExpression());
}else{ }else{
@ -867,7 +873,7 @@ public class SyntaxTreeGenerator{
} }
} }
private static Expr convert(Java8Parser.MultiplicativeExpressionContext expression) { private Expr convert(Java8Parser.MultiplicativeExpressionContext expression) {
if(expression.multiplicativeExpression() == null){ if(expression.multiplicativeExpression() == null){
return convert(expression.unaryExpression()); return convert(expression.unaryExpression());
}else{ }else{
@ -875,7 +881,7 @@ public class SyntaxTreeGenerator{
} }
} }
private static Expr convert(Java8Parser.UnaryExpressionContext expression) { private Expr convert(Java8Parser.UnaryExpressionContext expression) {
if(expression.preIncrementExpression() != null){ if(expression.preIncrementExpression() != null){
return convert(expression.preIncrementExpression()); return convert(expression.preIncrementExpression());
}else if(expression.preDecrementExpression() != null){ }else if(expression.preDecrementExpression() != null){
@ -893,7 +899,7 @@ public class SyntaxTreeGenerator{
} }
} }
private static Expr convert(Java8Parser.UnaryExpressionNotPlusMinusContext expression) { private Expr convert(Java8Parser.UnaryExpressionNotPlusMinusContext expression) {
if(expression.postfixExpression() != null){ if(expression.postfixExpression() != null){
return convert(expression.postfixExpression()); return convert(expression.postfixExpression());
}else if(expression.castExpression() != null){ }else if(expression.castExpression() != null){
@ -903,7 +909,11 @@ public class SyntaxTreeGenerator{
} }
} }
private static Expr convert(Java8Parser.PostfixExpressionContext expression) { private Expr convert(Java8Parser.CastExpressionContext expressionContext) {
throw new NotImplementedException();
}
private Expr convert(Java8Parser.PostfixExpressionContext expression) {
Expr expr; Expr expr;
if(expression.primary() != null){ if(expression.primary() != null){
expr = convert(expression.primary()); expr = convert(expression.primary());
@ -925,7 +935,7 @@ public class SyntaxTreeGenerator{
return expr; return expr;
} }
private static Expr convert(Java8Parser.PrimaryContext primary) { private Expr convert(Java8Parser.PrimaryContext primary) {
Expr expr; Expr expr;
if(primary.primaryNoNewArray_lfno_primary()!=null){ if(primary.primaryNoNewArray_lfno_primary()!=null){
expr = convert(primary.primaryNoNewArray_lfno_primary()); expr = convert(primary.primaryNoNewArray_lfno_primary());
@ -941,7 +951,11 @@ public class SyntaxTreeGenerator{
return expr; return expr;
} }
private static Expr convert(Java8Parser.PrimaryNoNewArray_lfno_primaryContext expression) { private Expr convert(Java8Parser.ArrayCreationExpressionContext expression) {
throw new NotImplementedException();
}
private Expr convert(Java8Parser.PrimaryNoNewArray_lfno_primaryContext expression) {
if(expression.literal() != null){ if(expression.literal() != null){
return convert(expression.literal()); return convert(expression.literal());
}else if(expression.expression()!=null){ }else if(expression.expression()!=null){
@ -953,8 +967,63 @@ public class SyntaxTreeGenerator{
} }
} }
private static Expr convert(Java8Parser.MethodInvocation_lfno_primaryContext expression) { private Expr convert(Java8Parser.LiteralContext literal) {
throw new NotImplementedException(); /*if(literal.IntegerLiteral() != null){
RefType type = new RefType(reg.getName("java.lang.Integer"),literal.getStart());
return new IntLiteral(type,
Integer.parseInt(literal.toString()),
literal.getStart());
}else if(literal.FloatingPointLiteral() != null){
RefType type = new RefType(reg.getName("java.lang.Float"),literal.getStart());
return new FloatLiteral(type,
Float.parseFloat(literal.toString()),
literal.getStart());
*/
if(literal.IntegerLiteral() != null){
Number value = Double.parseDouble(literal.toString());
return new NumberLiteral(TypePlaceholder.fresh(literal.getStart()),
value, literal.getStart());
}else if(literal.BooleanLiteral() != null){
RefType type = new RefType(reg.getName("java.lang.Boolean"),literal.getStart());
return new BoolLiteral(type,
Boolean.parseBoolean(literal.toString()),
literal.getStart());
}else if(literal.CharacterLiteral() != null){
RefType type = new RefType(reg.getName("java.lang.Character"),literal.getStart());
return new CharLiteral(type,
literal.toString().charAt(0),
literal.getStart());
}else if(literal.StringLiteral()!=null){
RefType type = new RefType(reg.getName("java.lang.String"),literal.getStart());
return new StringLiteral(type,
literal.toString(),
literal.getStart());
}else {// if(literal.NullLiteral() != null){
return new Null(TypePlaceholder.fresh(literal.getStart()),
literal.getStart());
}
}
private Expr convert(Java8Parser.MethodInvocation_lfno_primaryContext methodInvocationContext) {
String name;
if(methodInvocationContext.methodName()!=null){
name = methodInvocationContext.methodName().Identifier().getText();
}else{// if(methodInvocationContext.Identifier() != null){
name = methodInvocationContext.Identifier().getText();
}
Expr receiver;
if(methodInvocationContext.typeName() != null){
receiver = new LocalOrFieldVarOrClassname(methodInvocationContext.typeName().getText(), methodInvocationContext.typeName().getStart());
}else if(methodInvocationContext.expressionName()!=null){
receiver = convert(methodInvocationContext.expressionName());
}else if(methodInvocationContext.toString().startsWith("super")){
receiver = new Super(methodInvocationContext.getStart());
}else throw new NotImplementedException();
ArgumentList argumentList = null;
MethodCall ret = new MethodCall(new Receiver(receiver), name, argumentList, methodInvocationContext.getStart());
return ret;
} }
private static Expr convert(Java8Parser.LambdaExpressionContext expression) { private static Expr convert(Java8Parser.LambdaExpressionContext expression) {

View File

@ -1,51 +0,0 @@
package de.dhbwstuttgart.syntaxtree.statement;
import java.util.Hashtable;
import org.apache.bcel.generic.ClassGen;
import org.apache.bcel.generic.InstructionConstants;
import org.apache.bcel.generic.InstructionFactory;
import org.apache.bcel.generic.InstructionList;
public class BoolLiteral extends Literal
{
private boolean Bool;
public BoolLiteral()
{
super(null,-1);
}
/*
public void sc_check(Menge<Class> classname, Hashtable ch, Hashtable<String, String> bh, boolean ext, Hashtable parach,Hashtable<String, Hashtable> parabh)
{
if(ext)
{
parserlog.debug(" ---BoolLiteral---");
}
}
*/
public void set_Bool(boolean b)
{
this.Bool = b;
}
public String get_Name()
{
return null;
}
}

View File

@ -1,39 +0,0 @@
package de.dhbwstuttgart.syntaxtree.statement;
import java.util.Hashtable;
public class CharLiteral extends Literal
{
private char Char;
public CharLiteral()
{
super(null,-1);
// ###########################################################
}
/*
public void sc_check(Menge<Class> classname, Hashtable ch, Hashtable<String, String> bh, boolean ext, Hashtable parach, Hashtable<String, Hashtable> parabh)
{
if(ext)
parserlog.debug(" ---CharLiteral---");
}
*/
public void set_Char( char c)
{
this.Char = c ;
}
public String get_Name()
{
return null;
}
}

View File

@ -1,39 +0,0 @@
package de.dhbwstuttgart.syntaxtree.statement;
public class DoubleLiteral extends Literal
{
private double Double;
public DoubleLiteral()
{
super(null,-1);
}
public void set_Double(double i)
{
this.Double = i;
}
public double get_Double()
{
return Double;
}
/*
public void sc_check(Menge<Class> classname, Hashtable ch, Hashtable<String, String> bh, boolean ext, Hashtable parach, Hashtable<String, Hashtable> parabh)
{
parserlog.debug("SC -> Semantik-Check f�r DoubleLiteral wurde aufgerufen --> nichts zu tun!");
}
*/
public String get_Name()
{
return null;
}
}

View File

@ -1,47 +0,0 @@
package de.dhbwstuttgart.syntaxtree.statement;
import java.util.Hashtable;
import org.apache.bcel.generic.ClassGen;
import org.apache.bcel.generic.ConstantPoolGen;
import org.apache.bcel.generic.InstructionList;
import org.apache.bcel.generic.LDC;
import org.apache.bcel.generic.LDC2_W;
public class FloatLiteral extends Literal
{
private float Float;
public FloatLiteral()
{
super(null,-1);
}
public void set_Float(float i)
{
this.Float = i;
}
public float get_Float()
{
return Float;
}
/*
public void sc_check(Menge<Class> classname, Hashtable ch, Hashtable<String, String> bh, boolean ext, Hashtable parach, Hashtable<String, Hashtable> parabh)
{
parserlog.debug("SC -> Semantik-Check f�r FloatLiteral wurde aufgerufen --> nichts zu tun!");
}
*/
public String get_Name()
{
return null;
}
}

View File

@ -1,48 +0,0 @@
package de.dhbwstuttgart.syntaxtree.statement;
import java.util.Hashtable;
import org.apache.bcel.Constants;
import org.apache.bcel.generic.BIPUSH;
import org.apache.bcel.generic.ClassGen;
import org.apache.bcel.generic.InstructionFactory;
import org.apache.bcel.generic.InstructionHandle;
import org.apache.bcel.generic.InstructionList;
import org.apache.bcel.generic.ObjectType;
public class IntLiteral extends Literal
{
private int Int;
public IntLiteral()
{
super(null,-1);
// #JB# 20.04.2005
}
public void set_Int(int i)
{
this.Int = i;
}
public int get_Int()
{
return Int;
}
/*
public void sc_check(Menge<Class> classname, Hashtable ch, Hashtable<String, String> bh, boolean ext, Hashtable parach, Hashtable<String, Hashtable> parabh)
{
parserlog.debug("SC -> Semantik-Check f�r IntLiteral wurde aufgerufen --> nichts zu tun!");
}
*/
public String get_Name()
{
return null;
}
}

View File

@ -1,26 +0,0 @@
package de.dhbwstuttgart.syntaxtree.statement;
import de.dhbwstuttgart.syntaxtree.type.RefTypeOrTPH;
public abstract class Literal extends Expression
{
// Gibt an, ob das Literal fuer einen Objekttyp oder
// als primitive Konstante generiert werden soll.
// Default: Konstanten werden als primitiver Typ generiert.
private boolean primitiveFlag=true;
public Literal(RefTypeOrTPH o, int i) {
super(null, null);
}
public void setPrimitiveFlag(boolean b)
{
this.primitiveFlag=b;
}
public boolean getPrimitiveFlag()
{
return(this.primitiveFlag);
}
}

View File

@ -25,21 +25,21 @@ import de.dhbwstuttgart.syntaxtree.SyntaxTreeNode;
public class LocalOrFieldVarOrClassname extends Expression public class LocalOrFieldVarOrClassname extends Expression
{ {
private final String name; private final String expression;
private boolean isFieldAccess = false; private boolean isFieldAccess = false;
private boolean isClassAccess = false; private boolean isClassAccess = false;
public LocalOrFieldVarOrClassname(String n, Token offset) public LocalOrFieldVarOrClassname(String n, Token offset)
{ {
super(TypePlaceholder.fresh(offset),offset); super(TypePlaceholder.fresh(offset),offset);
this.name = n; this.expression = n;
} }
public LocalOrFieldVarOrClassname(Expr e1, String access) public LocalOrFieldVarOrClassname(Expr e1, String access)
{ {
super(TypePlaceholder.fresh(null),null); super(TypePlaceholder.fresh(null),null);
this.name = n; this.expression = access;
} }

View File

@ -1,45 +0,0 @@
package de.dhbwstuttgart.syntaxtree.statement;
import java.util.Hashtable;
import org.apache.bcel.generic.ClassGen;
import org.apache.bcel.generic.ConstantPoolGen;
import org.apache.bcel.generic.InstructionList;
import org.apache.bcel.generic.LDC2_W;
public class LongLiteral extends Literal
{
private long Long;
public LongLiteral()
{
super(null,-1);
}
public void set_Long(long i)
{
this.Long = i;
}
public long get_Long()
{
return Long;
}
/*
public void sc_check(Menge<Class> classname, Hashtable ch, Hashtable<String, String> bh, boolean ext, Hashtable parach, Hashtable<String, Hashtable> parabh)
{
parserlog.debug("SC -> Semantik-Check f�r LongLiteral wurde aufgerufen --> nichts zu tun!");
}
*/
public String get_Name()
{
return null;
}
}

View File

@ -2,6 +2,7 @@ package de.dhbwstuttgart.syntaxtree.statement;
import java.util.Hashtable; import java.util.Hashtable;
import java.util.Iterator; import java.util.Iterator;
import org.antlr.v4.runtime.Token;
import org.apache.bcel.generic.ClassGen; import org.apache.bcel.generic.ClassGen;
import org.apache.bcel.generic.InstructionList; import org.apache.bcel.generic.InstructionList;
@ -9,9 +10,9 @@ import org.apache.bcel.generic.InstructionList;
public class NegativeExpr extends UnaryExpr public class NegativeExpr extends UnaryExpr
{ {
public NegativeExpr(int offset,int variableLength) public NegativeExpr(Token offset)
{ {
super(offset,variableLength); super(offset);
} }
private UnaryMinus neg; private UnaryMinus neg;
public Expr expr; public Expr expr;

View File

@ -1,11 +1,13 @@
package de.dhbwstuttgart.syntaxtree.statement; package de.dhbwstuttgart.syntaxtree.statement;
import org.antlr.v4.runtime.Token;
public class NotExpr extends UnaryExpr public class NotExpr extends UnaryExpr
{ {
public NotExpr(int offset,int variableLength) public NotExpr(Token offset)
{ {
super(offset,variableLength); super(offset);
} }
private UnaryNot not; private UnaryNot not;
public Expr expr; public Expr expr;

View File

@ -1,37 +0,0 @@
package de.dhbwstuttgart.syntaxtree.statement;
import java.util.Hashtable;
import org.apache.bcel.generic.ClassGen;
import org.apache.bcel.generic.InstructionConstants;
import org.apache.bcel.generic.InstructionFactory;
import org.apache.bcel.generic.InstructionList;
public class Null extends Literal
{
public Null()
{
super(null,-1);
//this.setType(new Type("__NULL__",this,getOffset()));
}
public String get_Name()
{
return null;
}
/*
public void sc_check(Menge<Class> classname, Hashtable ch, Hashtable<String, String> bh, boolean ext, Hashtable parach, Hashtable<String, Hashtable> parabh)
{
if(ext)
parserlog.debug(" ---Null---");
}
*/
}

View File

@ -1,11 +1,13 @@
package de.dhbwstuttgart.syntaxtree.statement; package de.dhbwstuttgart.syntaxtree.statement;
import org.antlr.v4.runtime.Token;
public class PositivExpr extends UnaryExpr public class PositivExpr extends UnaryExpr
{ {
public PositivExpr(int offset,int variableLength) public PositivExpr(Token offset)
{ {
super(offset,variableLength); super(offset);
} }
protected UnaryPlus plus; protected UnaryPlus plus;
public Expr expr; public Expr expr;

View File

@ -2,6 +2,7 @@ package de.dhbwstuttgart.syntaxtree.statement;
import java.util.Hashtable; import java.util.Hashtable;
import java.util.Iterator; import java.util.Iterator;
import org.antlr.v4.runtime.Token;
import org.apache.bcel.generic.ClassGen; import org.apache.bcel.generic.ClassGen;
import org.apache.bcel.generic.InstructionList; import org.apache.bcel.generic.InstructionList;
@ -11,9 +12,9 @@ import org.apache.bcel.generic.InstructionList;
public class PreDecExpr extends UnaryExpr public class PreDecExpr extends UnaryExpr
{ {
public PreDecExpr(int offset,int variableLength) public PreDecExpr(Token offset)
{ {
super(offset,variableLength); super(offset);
} }

View File

@ -1,11 +1,13 @@
package de.dhbwstuttgart.syntaxtree.statement; package de.dhbwstuttgart.syntaxtree.statement;
import org.antlr.v4.runtime.Token;
public class PreIncExpr extends UnaryExpr public class PreIncExpr extends UnaryExpr
{ {
public PreIncExpr(int offset,int variableLength) public PreIncExpr(Token offset)
{ {
super(offset,variableLength); super(offset);
} }

View File

@ -1,48 +0,0 @@
package de.dhbwstuttgart.syntaxtree.statement;
import java.util.Hashtable;
import org.apache.bcel.classfile.ConstantPool;
import org.apache.bcel.generic.ClassGen;
import org.apache.bcel.generic.ConstantPoolGen;
import org.apache.bcel.generic.InstructionFactory;
import org.apache.bcel.generic.InstructionList;
import org.apache.bcel.generic.LDC;
public class StringLiteral extends Literal
{
private String string;
public StringLiteral()
{
super(null,-1);
// #JB# 20.04.2005
}
/*
public void sc_check(Menge<Class> classname, Hashtable ch, Hashtable<String, String> bh, boolean ext, Hashtable parach, Hashtable<String, Hashtable> parabh)
{
if(ext)
parserlog.debug(" ---StringLiteral---");
}
*/
public void set_String( String s)
{
this.string = s;
}
public String get_Name()
{
return null;
}
}

View File

@ -0,0 +1,12 @@
package de.dhbwstuttgart.syntaxtree.statement;
import org.antlr.v4.runtime.Token;
public class Super extends Expression
{
public Super(Token offset)
{
super(null,null);
}
}

View File

@ -0,0 +1,22 @@
package de.dhbwstuttgart.syntaxtree.statement.literal;
import de.dhbwstuttgart.syntaxtree.statement.literal.Literal;
import de.dhbwstuttgart.syntaxtree.type.RefTypeOrTPH;
import org.antlr.v4.runtime.Token;
public class BoolLiteral extends Literal
{
private boolean value;
public BoolLiteral(RefTypeOrTPH type, boolean value, Token offset)
{
super(type,offset);
this.value = value;
}
}

View File

@ -0,0 +1,17 @@
package de.dhbwstuttgart.syntaxtree.statement.literal;
import de.dhbwstuttgart.syntaxtree.statement.literal.Literal;
import de.dhbwstuttgart.syntaxtree.type.RefTypeOrTPH;
import org.antlr.v4.runtime.Token;
public class CharLiteral extends Literal
{
private char value;
public CharLiteral(RefTypeOrTPH type, char value, Token offset)
{
super(type,offset);
this.value = value;
}
}

View File

@ -0,0 +1,13 @@
package de.dhbwstuttgart.syntaxtree.statement.literal;
import de.dhbwstuttgart.syntaxtree.statement.Expression;
import de.dhbwstuttgart.syntaxtree.type.RefTypeOrTPH;
import org.antlr.v4.runtime.Token;
public abstract class Literal extends Expression
{
public Literal(RefTypeOrTPH type, Token offset) {
super(type, offset);
}
}

View File

@ -0,0 +1,16 @@
package de.dhbwstuttgart.syntaxtree.statement.literal;
import de.dhbwstuttgart.syntaxtree.statement.literal.Literal;
import de.dhbwstuttgart.syntaxtree.type.RefTypeOrTPH;
import org.antlr.v4.runtime.Token;
public class Null extends Literal
{
public Null(RefTypeOrTPH type, Token offset)
{
super(type,offset);
}
}

View File

@ -0,0 +1,18 @@
package de.dhbwstuttgart.syntaxtree.statement.literal;
import de.dhbwstuttgart.syntaxtree.type.RefType;
import de.dhbwstuttgart.syntaxtree.type.RefTypeOrTPH;
import org.antlr.v4.runtime.Token;
public class NumberLiteral extends Literal
{
private Number value;
public NumberLiteral(RefTypeOrTPH type, Number value, Token offset)
{
super(type,offset);
this.value = value;
}
}

View File

@ -0,0 +1,19 @@
package de.dhbwstuttgart.syntaxtree.statement.literal;
import de.dhbwstuttgart.syntaxtree.type.RefType;
import de.dhbwstuttgart.syntaxtree.type.RefTypeOrTPH;
import org.antlr.v4.runtime.Token;
public class StringLiteral extends Literal
{
private String value;
public StringLiteral(RefType type, String value, Token offset)
{
super(type,offset);
this.value = value;
}
}