edu.umd.cs.findbugs.ba.bcp

Class Wild

public class Wild extends PatternElement

A wildcard PatternElement, which matches any kind of instruction indiscriminately.

Author: David Hovemeyer

See Also: PatternElement

Constructor Summary
Wild()
Default constructor.
Wild(int max)
Constructor.
Wild(int min, int max)
Constructor.
Method Summary
voidsetMinAndMax(int min, int max)
Set min and max values.

Constructor Detail

Wild

public Wild()
Default constructor. Creates a wildcard that matches from 0 to Integer.MAX_VALUE instructions.

Wild

public Wild(int max)
Constructor. Matches any number of instructions from 0 to the maximum specified.

Parameters: max the maximum number of instructions the wildcard may match

Wild

public Wild(int min, int max)
Constructor.

Parameters: min minimum number of times the wildcard must match max maximum number of times the wildcard may match

Method Detail

setMinAndMax

public void setMinAndMax(int min, int max)
Set min and max values.

Parameters: min minimum number of times the wildcard must match max maximum number of times the wildcard may match

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.