All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sweble.wikitext.engine.log.UnhandledException Maven / Gradle / Ivy

Go to download

A minimal engine using the Sweble Wikitext Parser to process articles in the context of a MediaWiki-like configuration.

There is a newer version: 3.1.9
Show newest version
/* 
 * This file is auto-generated.
 * DO NOT MODIFY MANUALLY!
 * 
 * Generated by AstNodeGenerator.
 * Last generated: 2014-09-12 00:38:33.
 */

package org.sweble.wikitext.engine.log;

import de.fau.cs.osr.ptk.common.ast.*;




/**
 * 

Unhandled Exception

*/ public class UnhandledException extends LeafNode { private static final long serialVersionUID = 1L; // ========================================================================= public UnhandledException() { super(); } public UnhandledException(Throwable exception, String dump) { super(); setException(exception); setDump(dump); } // ========================================================================= // Properties private Throwable exception; public final Throwable getException() { return this.exception; } public final Throwable setException(Throwable exception) { Throwable old = this.exception; this.exception = exception; return old; } private String dump; public final String getDump() { return this.dump; } public final String setDump(String dump) { String old = this.dump; this.dump = dump; return old; } @Override public final int getPropertyCount() { return 2; } @Override public final AstNodePropertyIterator propertyIterator() { return new AstNodePropertyIterator() { @Override protected int getPropertyCount() { return 2; } @Override protected String getName(int index) { switch (index) { case 0: return "exception"; case 1: return "dump"; default: throw new IndexOutOfBoundsException(); } } @Override protected Object getValue(int index) { switch (index) { case 0: return UnhandledException.this.getException(); case 1: return UnhandledException.this.getDump(); default: throw new IndexOutOfBoundsException(); } } @Override protected Object setValue(int index, Object value) { switch (index) { case 0: return UnhandledException.this.setException((Throwable) value); case 1: return UnhandledException.this.setDump((String) value); default: throw new IndexOutOfBoundsException(); } } }; } // ========================================================================= // Children // ========================================================================= }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy