text
stringlengths
3
1.18M
package com.basteldroid.framework; public interface Audio { public Music createMusic(String file); public Sound createSound(String file); }
package com.basteldroid.framework; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import android.content.SharedPreferences; public interface FileIO { public InputStream readFile(String file) throws IOException; public OutputStream writeFile(String file) throws IOEx...
package com.basteldroid.framework; import com.basteldroid.framework.Graphics.ImageFormat; public interface Image { public int getWidth(); public int getHeight(); public ImageFormat getFormat(); public void dispose(); }
package com.basteldroid.framework.implementation; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Rect; import android.view.SurfaceHolder; import android.view.SurfaceView; public class AndroidFastRenderView extends SurfaceView implements Runnable { AndroidGame game; ...
package com.basteldroid.framework.implementation; import android.graphics.Bitmap; import com.basteldroid.framework.Image; import com.basteldroid.framework.Graphics.ImageFormat; public class AndroidImage implements Image { Bitmap bitmap; ImageFormat format; public AndroidImage(Bitmap bitmap, ImageForma...
package com.basteldroid.framework.implementation; import java.io.IOException; import android.content.res.AssetFileDescriptor; import android.media.MediaPlayer; import android.media.MediaPlayer.OnCompletionListener; import android.media.MediaPlayer.OnPreparedListener; import android.media.MediaPlayer.OnSeekCom...
package com.basteldroid.framework.implementation; import java.util.List; import android.view.View.OnTouchListener; import com.basteldroid.framework.Input.TouchEvent; public interface TouchHandler extends OnTouchListener { public boolean isTouchDown(int pointer); public int getTouchX(int pointer); ...
package com.basteldroid.framework.implementation; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import android.content.Context; import android.content.SharedPreferences; import andro...
package com.basteldroid.framework.implementation; import java.io.IOException; import android.app.Activity; import android.content.res.AssetFileDescriptor; import android.content.res.AssetManager; import android.media.AudioManager; import android.media.SoundPool; import com.basteldroid.framework.Audio; imp...
package com.basteldroid.framework.implementation; import android.media.SoundPool; import com.basteldroid.framework.Sound; public class AndroidSound implements Sound { int soundId; SoundPool soundPool; public AndroidSound(SoundPool soundPool, int soundId) { this.soundId = soundId; this.soundPool =...
package com.basteldroid.framework.implementation; import java.util.List; import android.content.Context; import android.os.Build.VERSION; import android.view.View; import com.basteldroid.framework.Input; public class AndroidInput implements Input { TouchHandler touchHandler; public AndroidInput(Cont...
package com.basteldroid.framework.implementation; import java.util.ArrayList; import java.util.List; import android.view.MotionEvent; import android.view.View; import com.basteldroid.framework.Pool; import com.basteldroid.framework.Input.TouchEvent; import com.basteldroid.framework.Pool.PoolObjectFactory; ...
package com.basteldroid.framework.implementation; import android.app.Activity; import android.content.Context; import android.content.res.Configuration; import android.graphics.Bitmap; import android.graphics.Bitmap.Config; import android.os.Bundle; import android.os.PowerManager; import android.os.PowerManag...
package com.basteldroid.framework.implementation; import java.io.IOException; import java.io.InputStream; import android.content.res.AssetManager; import android.graphics.Bitmap; import android.graphics.Bitmap.Config; import android.graphics.BitmapFactory; import android.graphics.BitmapFactory.Options; impo...
package com.basteldroid.framework.implementation; import java.util.ArrayList; import java.util.List; import android.view.MotionEvent; import android.view.View; import com.basteldroid.framework.Pool; import com.basteldroid.framework.Input.TouchEvent; import com.basteldroid.framework.Pool.PoolObjectFactory; ...
package com.basteldroid.framework; import java.util.List; public interface Input { public static class TouchEvent { public static final int TOUCH_DOWN = 0; public static final int TOUCH_UP = 1; public static final int TOUCH_DRAGGED = 2; public static final int TOUCH_HOLD = 3; public int type;...
package com.sunchis.activity; import android.content.Context; import android.util.AttributeSet; import android.view.KeyEvent; import android.view.MotionEvent; import android.widget.Gallery; /** * 重写Gallery,解决Gallery滑动太快的问题 * @author XuLiang * */ public class GalleryView extends Gallery { public Gal...
package com.sunchis.activity; import java.io.File; import java.util.ArrayList; import java.util.List; import com.sunchis.adapter.MyAdapter; import com.sunchis.util.MyHttpClientManager; import android.app.Activity; import android.graphics.Color; import android.os.Bundle; import android.view.View; import android.widge...
package com.sunchis.adapter; import java.util.List; import com.sunchis.activity.MainActivity; import com.sunchis.activity.R; import com.sunchis.util.MyHttpClientManager; import com.sunchis.util.MyHttpClientManager.ImageBitmapCallback; import android.content.Context; import android.graphics.Bitmap; import ...
package com.sunchis.util; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.lang.ref.SoftReference; import java.util.HashMap; import org.apache.http.HttpEntity; imp...
package com.sunchis.demo; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class PopMaskViewActivity extends Activity { /** Called when the activity is first created. */ @Override public void onC...
package com.sunchis.demo; import android.app.Activity; import android.app.Dialog; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.Window; import android.view.ViewGroup.LayoutParams; import android.widget.ImageView; import android.wid...
package com.br.smashv2; import android.content.Context; import android.graphics.Paint; import android.view.MotionEvent; import com.gdacarv.engine.androidgame.GameView; public class GameOverView extends GameView { private Context context; private Paint paint; public GameOverView(Context context) { ...
package com.br.smashv2; import java.util.Random; import android.graphics.Bitmap; import android.graphics.Paint; import com.gdacarv.engine.androidgame.Sprite; public class Pink extends Sprite { public int speed = 1; public byte direction = 0; @SuppressWarnings("unused") private boolean dying = fal...
package com.br.smashv2; import java.util.Random; import android.graphics.Bitmap; import com.gdacarv.engine.androidgame.Sprite; public class Gold extends Sprite { public int speedX, speedY; public Gold(int x, int y, Random random, Bitmap bitmap, int bmp_rows, int bmp_columns) { super(bitmap, b...
package com.br.smashv2; import android.os.Bundle; import android.app.Activity; import android.view.Menu; public class Principal extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(new MainGameView(this)); } ...
package com.br.smashv2; import java.util.Random; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Rect; import com.gdacarv.engine.androidgame.Sprite; public class Background extends Sprite { private Bitmap mBitmap; public Background(Random random, int stageWi...
package airOpen.droid.com; import android.app.Activity; import android.os.Bundle; public class AirOpenActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView...
/* * Copyright (C) 2008-2009 Google Inc. * * 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 ag...
/* * Copyright (C) 2008-2009 Google Inc. * * 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 ag...
/* * Copyright (C) 2008-2009 Google Inc. * * 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 ag...
/* * Copyright (C) 2008-2009 Google Inc. * * 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 ag...
/* * Copyright (C) 2007 The Android Open Source Project * * 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 app...
/* * Copyright (C) 2007 The Android Open Source Project * * 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 app...
package com.android.mic.specanalyzer; import java.util.List; import android.app.Activity; import android.content.Context; import android.opengl.GLSurfaceView; import android.os.Bundle; import android.util.Log; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.Se...
package android.jpsan.es; /** * Class modeling a TASK never really used, * should be ready to the rest of the deploying, though. * @author Azevedo * */ public class Task { private String title; private String date; private int date_i; private String notes; public Task(String t, String d, String...
/* * Copyright (C) 2008 Google Inc. * * 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 agree...
/* * Copyright (C) 2008 Google Inc. * * 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 ...
/* * Copyright (C) 2008 Google Inc. * * 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 agree...
/** * */ package com.lunevich.androidstyle; import com.lunevich.androidstyle.activity.BlueThemeActivity; import com.lunevich.androidstyle.activity.GreenThemeActivity; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickList...
/** * */ package com.lunevich.androidstyle.activity; import com.lunevich.androidstyle.R; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.ListView; /** ...
/** * */ package com.lunevich.androidstyle.activity; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.ListView; import com.lunevich.androidstyle.R; /** ...
/* * Copyright (C) 2008-2009 Google Inc. * * 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 agree...
/* * Copyright (C) 2008-2009 Google Inc. * * 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 agree...
/* * Copyright (C) 2008-2009 Google Inc. * * 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 agree...
/* * Copyright (C) 2008-2009 Google Inc. * * 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 agree...
package com.jason; import android.app.ListActivity; import android.content.Intent; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListAdapter; import android.widget....
package fi.game.Zoambie; import fi.game.Zoambie.R; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Paint; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEve...
package fi.game.Zoambie; import java.util.LinkedList; import android.graphics.*; public class Control { private static Paint p = new Paint(); public static void drawDpad(Canvas canvas, int screenWidth, int screenHeight) { p.setColor(Color.BLACK); p.setStrokeWidth(2f); can...
package fi.game.Zoambie; import android.graphics.*; public class Saw { private Bitmap bitmap; // Hahmon kuva private float x; // X-sijainti private float y; // Y-sijainti //private Rect sourceRect; // Animaatioissa tullaan tarvitsemaan ...
package fi.game.Zoambie; import android.app.Activity; import android.content.pm.ActivityInfo; import android.os.Bundle; import android.view.Window; import android.view.WindowManager; public class MainActivity extends Activity { @Override //Luodaan main.xml leiska, pakotetaan landscape ja fullscreen protect...
package fi.loo.VLCRemote; import java.io.BufferedInputStream; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URI; import java.net.URISyntaxException; import java.net.URL; import java.net.URLConnection; impor...
package org.pqsoft.fdemo.service; import java.util.List; import java.util.Map; import com.mframework.system.BaseDao; import com.mframework.system.PageTemplate; public class FDemoService { private BaseDao<?> dao = BaseDao.newInstance(); //查询方法 public PageTemplate selectbp(Map<String, Object> param) //PARAM=MA...
package org.pqsoft.fdemo.action; import java.util.Enumeration; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.velocity.VelocityContext; import org.pqsoft.fdemo.service.FDemoService; import com.mframework.annotation.aOperation; import com.mframework.annotation.aResource; impo...
package org.pqsoft.pledgecontract.service; import java.util.List; import java.util.Map; import com.mframework.system.BaseDao; import com.mframework.system.PageTemplate; public class ContractGeneral { BaseDao<?> dao = new BaseDao(); public PageTemplate list(Map<String, Object> param) { BaseDao<?> dao = BaseDao.n...
package org.pqsoft.pledgecontract.action; import java.util.Enumeration; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.velocity.VelocityContext; import org.pqsoft.pledgecontract.service.ContractGeneral; import com.mframework.annotation.aOperation; import com.mframework.excep...
package org.example.sudoku; import android.app.Activity; import android.os.Bundle; public class About extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.about); } }
package org.example.sudoku; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.vie...
package org.example.sudoku; import android.os.Bundle; import android.preference.PreferenceActivity; public class Prefs extends PreferenceActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.settings); } }
/** Automatically generated file. DO NOT MODIFY */ package com.example.demoworkspace; public final class BuildConfig { public final static boolean DEBUG = true; }
package com.example.demoworkspace; import android.os.Bundle; import android.app.Activity; import android.view.Menu; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_...
package org.kefirsf.bb; import java.util.Arrays; /** * Class for escape processing. For example, EscapeXmlProcessorFactory use this class for create EscapeXmlProcessor. * * @author Kefir */ public class EscapeProcessor extends TextProcessorAdapter { /** * Escape symbols with replacement. */ priv...
package org.kefirsf.bb; import java.util.Collections; import java.util.List; /** * Chain of text processors wich process text serially * * @author Kefir */ public class TextProcessorChain extends TextProcessorAdapter { /** * List of processors */ private final List<? extends TextProcessor> proce...
package org.kefirsf.bb; import org.kefirsf.bb.conf.Configuration; import org.kefirsf.bb.util.Exceptions; import org.kefirsf.bb.util.Utils; import org.w3c.dom.Document; import org.xml.sax.SAXException; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.P...
package org.kefirsf.bb; import org.kefirsf.bb.conf.Configuration; import java.io.File; import java.io.InputStream; /** * Factory for creating BBProcessor from Stream, File, Resource with configuration or default bb-processor. * * @author Kefir */ public class BBProcessorFactory implements TextProcessorFactory { ...
package org.kefirsf.bb; /** * The interface of text processors * * @author Kefir */ public interface TextProcessor { /** * Process the text. * <p/> * ATTENTION!!! Do not use java.nio.CharBuffer. * CharBuffer has invalid realization of subSequence methods from interface java.lang.CharSequenc...
package org.kefirsf.bb; import java.text.MessageFormat; /** * Throws if nesting is too large. * * @author Vitalii Samolovskikh aka Kefir */ public class TextProcessorNestingException extends TextProcessorException { public static final String MESSAGE_PATTERN = "Nesting is too big. Nesting limit is {0}."; ...
package org.kefirsf.bb; /** * Exception if TextProcessorFactory can't create the TextProcessor instance * * @author Kefir */ public class TextProcessorFactoryException extends TextProcessorException { public TextProcessorFactoryException() { super(); } public TextProcessorFactoryException(Stri...
package org.kefirsf.bb; /** * The class for creating the escape xml special symbols processor. It's processor change: * <p/> * &amp; to &amp;amp; * &apos; to &amp;apos; * &lt; to &amp;lt; * &gt; to &amp;gt; * &quot; to &amp;quot; * * @author Kefir */ public class EscapeXmlProcessorFactory implements TextProc...
package org.kefirsf.bb.proc; import java.io.IOException; import java.util.Collections; import java.util.List; /** * Code template * * @author Vitaliy Samolovskih aka Kefir */ public class ProcTemplate { /** * Empty template */ public static final ProcTemplate EMPTY = new ProcTemplate(Collections...
package org.kefirsf.bb.proc; /** * Pattern element for parse part of bbcode * * @author Kefir */ public interface ProcPatternElement { /** * Parse element * * @param context context * @param terminator teminator to stop text process * @return true - subsequence is valid to this patt...
package org.kefirsf.bb.proc; /** * @author Vitalii Samolovskikh aka Kefir */ public class PatternJunk implements ProcPatternElement { public boolean parse(Context context, ProcPatternElement terminator) { Source source = context.getSource(); int offset = source.getOffset(); int end; ...
package org.kefirsf.bb.proc; /** * Throws if nesting is too big. * * @author Vitalii Samolovskikh aka Kefir */ class NestingException extends Exception { }
package org.kefirsf.bb.proc; import java.util.Collections; import java.util.List; /** * Represents the pattern * * @author Vitaliy Samolovskih aka Kefir */ public class ProcPattern { /** * Pattern elements */ private final List<? extends ProcPatternElement> elements; // Performance optimiza...
package org.kefirsf.bb.proc; /** * The element of template to build target text */ public interface ProcTemplateElement { /** * Append template element to source of context * * @param context контекст * @return builded text */ public CharSequence generate(Context context); }
package org.kefirsf.bb.proc; import org.kefirsf.bb.util.ArrayCharSequence; import java.util.Arrays; import java.util.Set; import java.util.TreeSet; /** * Класс источник для парсинга BB-кодов * * @author Kefir */ public class Source { /** * Source text content */ private final char[] text; ...
package org.kefirsf.bb.proc; /** * Constant element of pattern or template * * @author Kefir */ public class PatternConstant implements ProcPatternElement { /** * Constant value */ private final String value; private final char[] chars; /** * Mark ignore case */ private fin...
package org.kefirsf.bb.proc; import java.io.IOException; /** * Класс текста, который подлежит парсингу * * @author Kefir */ public class ProcText extends ProcNamedElement implements ProcPatternElement { /** * Scope define the codeset for parsing this text */ private final ProcScope scope; /...
package org.kefirsf.bb.proc; import java.io.IOException; /** * The bbcode class * * @author Kefir */ public class ProcCode implements Comparable<ProcCode> { /** * template for build result char sequence */ private final ProcTemplate template; /** * Pattern for parsing code */ p...
package org.kefirsf.bb.proc; import org.kefirsf.bb.util.IntSet; import java.util.HashMap; import java.util.Map; /** * The bb-processing context * * @author Kefir */ public class Context { /** * Parent context */ private final Context parent; /** * source text */ private Sourc...
package org.kefirsf.bb.proc; import java.util.regex.Matcher; /** * Класс переменной * * @author Kefir */ public class ProcVariable extends ProcNamedElement implements ProcPatternElement { private final java.util.regex.Pattern regex; /** * Create named variable * * @param name variable nam...
package org.kefirsf.bb.proc; import org.kefirsf.bb.TextProcessorFactoryException; import java.io.IOException; import java.util.Arrays; import java.util.Comparator; import java.util.HashSet; import java.util.Set; /** * bb-code scope. Required for tables, for example. * Scope contains code set for parsing text. * ...
package org.kefirsf.bb.proc; import org.kefirsf.bb.TextProcessorAdapter; import org.kefirsf.bb.TextProcessorNestingException; import java.io.IOException; import java.util.Collections; import java.util.Map; import java.util.Set; /** * The bbcode processor. You can use the standard code set or define other. * * @au...
package org.kefirsf.bb.proc; /** * Named value to build target text */ public class ProcNamedValue extends ProcNamedElement implements ProcTemplateElement { public ProcNamedValue(String name) { super(name); } /** * Добавляет элемент в новую строку * * @param context контекст ...
package org.kefirsf.bb.proc; /** * Named element are variable and text ProcPatternElement or ProcTemplateElement */ public abstract class ProcNamedElement { /** * Variable name */ private final String name; /** * Create named element * * @param name name of element */ p...
package org.kefirsf.bb.proc; /** * @author kefir */ public class TemplateConstant implements ProcTemplateElement { private final String value; public TemplateConstant(String value) { this.value = value; } public CharSequence generate(Context context) { return value; } }
package org.kefirsf.bb.conf; import java.util.Collections; import java.util.List; /** * Base abstract class for pattern and template configuration classes. * * @author kefir */ abstract class ElementListOwner<T> { private List<? extends T> elements; /** * The default constructor. */ protect...
package org.kefirsf.bb.conf; import org.kefirsf.bb.util.Exceptions; import java.util.Collections; import java.util.HashMap; import java.util.Map; /** * Configuration of bbcode processor. * * @author Vitaliy Samolovskih aka Kefir */ public class Configuration { /** * Default nesting limit for processor. ...
package org.kefirsf.bb.conf; import java.util.List; /** * Pattern definition. For creating pattern for text parsing. * * @author Vitaliy Samolovskih aka Kefir */ public class Pattern extends ElementListOwner<PatternElement> { /** * Create pattern definition with empty pattern elements list. */ p...
package org.kefirsf.bb.conf; /** * Named template element. * * @author Vitaliy Samolovskih aka Kefir */ public class NamedValue extends NamedElement implements TemplateElement { public NamedValue() { super(); } public NamedValue(String name) { super(name); } }
package org.kefirsf.bb.conf; import org.kefirsf.bb.util.Exceptions; import org.kefirsf.bb.util.Utils; import java.util.Collections; import java.util.HashSet; import java.util.Set; /** * Scope definition. Scope is a set of codes which work in defined places. * * @author Vitaliy Samolovskih aka Kefir */ public cla...
package org.kefirsf.bb.conf; /** * Named element definition * * @author Vitaliy Samolovskih aka Kefir */ abstract class NamedElement { private String name; protected NamedElement() { } protected NamedElement(String name) { this.name = name; } public String getName() { ret...
package org.kefirsf.bb.conf; import java.util.regex.Pattern; /** * Variable pattern element. * * @author Vitaliy Samolovskih aka Kefir */ public class Variable extends NamedElement implements PatternElement { private java.util.regex.Pattern regex; public Variable(){ super(); this.regex = ...
package org.kefirsf.bb.conf; /** * Define constants. * * @author Vitaliy Samolovskih aka Kefir */ public class Constant implements TemplateElement, PatternElement { /** * Constant value. String for search. */ private String value; /** * If true, then uses search ignore case */ ...
package org.kefirsf.bb.conf; /** * @author Vitaliy Samolovskih aka Kefir */ public interface PatternElement { }
package org.kefirsf.bb.conf; import org.kefirsf.bb.util.Exceptions; import org.kefirsf.bb.util.Utils; /** * Code description. * * @author Vitaliy Samolovskih aka Kefir */ public class Code { public static final int DEFAULT_PRIORITY = 0; private String name; private int priority = DEFAULT_PRIORITY; ...
package org.kefirsf.bb.conf; /** * Pattern text element. The text will be parse by the processor. * * @author Vitaliy Samolovskih aka Kefir */ public class Text extends NamedElement implements PatternElement { private Scope scope; private boolean transparent; public Text() { super(); } ...
package org.kefirsf.bb.conf; /** * @author Vitaliy Samolovskih aka Kefir */ public interface TemplateElement { }
package org.kefirsf.bb.conf; import java.util.List; /** * Template definition * * @author Vitaliy Samolovskih aka Kefir */ public class Template extends ElementListOwner<TemplateElement> { /** * Create template with empty content */ public Template() { super(); } /** * Crea...
package org.kefirsf.bb.conf; /** * @author Vitalii Samolovskikh aka Kefir */ public class Junk implements PatternElement { }