org.openide.compiler
Class ExternalCompiler.ErrorExpression

java.lang.Object
  |
  +--org.openide.compiler.ExternalCompiler.ErrorExpression
All Implemented Interfaces:
Cloneable, Serializable
Enclosing class:
ExternalCompiler

public static class ExternalCompiler.ErrorExpression
extends Object
implements Serializable, Cloneable

Encapsulates several properties needed for processing the error output of an external compiler.

See Also:
Serialized Form

Constructor Summary
ExternalCompiler.ErrorExpression(String name, String errordesc, int filepos, int linepos, int columnpos, int descpos)
          Create an error expression.
 
Method Summary
 Object clone()
           
 boolean equals(Object o)
           
 int getColumnPos()
          Get the column-number backreference.
 int getDescriptionPos()
          Get the description backreference.
 String getErrorExpression()
          Get the error regexp.
 int getFilePos()
          Get the filename backreference.
 int getLinePos()
          Get the line-number backreference.
 String getName()
          Get the display name.
 int hashCode()
           
 void setColumnPos(int i)
          Set the column-number backreference.
 void setDescriptionPos(int i)
          Set the description backreference.
 void setErrorExpression(String s)
          Set the error regexp.
 void setFilePos(int i)
          Set the filename backreference.
 void setLinePos(int i)
          Set the line-number backreference.
 void setName(String d)
          Set the display name.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalCompiler.ErrorExpression

public ExternalCompiler.ErrorExpression(String name,
                                        String errordesc,
                                        int filepos,
                                        int linepos,
                                        int columnpos,
                                        int descpos)
Create an error expression.
Parameters:
name - display name
errordesc - Perl5-style regular expression which should match lines containing error output
filepos - index of backreference containing the filename of the error, or -1 if none
linepos - index of backreference containing the line number of the error, or -1 if none
columnpos - index of backreference containing the column number of the error, or -1 if none
descpos - index of backreference containing the description of the error, or -1 if none
Method Detail

clone

public Object clone()
Overrides:
clone in class Object

getName

public String getName()
Get the display name.
Returns:
the display name

setName

public void setName(String d)
Set the display name.
Parameters:
d - the new name

getErrorExpression

public String getErrorExpression()
Get the error regexp.
Returns:
the error regexp

setErrorExpression

public void setErrorExpression(String s)
Set the error regexp.
Parameters:
d - the new regexp

getFilePos

public int getFilePos()
Get the filename backreference.
Returns:
the index, or -1 for none

setFilePos

public void setFilePos(int i)
Set the filename backreference.
Parameters:
d - the new index (-1 to disable)

getLinePos

public int getLinePos()
Get the line-number backreference.
Returns:
the index, or -1 for none

setLinePos

public void setLinePos(int i)
Set the line-number backreference.
Parameters:
d - the new index (-1 to disable)

getColumnPos

public int getColumnPos()
Get the column-number backreference.
Returns:
the index, or -1 for none

setColumnPos

public void setColumnPos(int i)
Set the column-number backreference.
Parameters:
d - the new index (-1 to disable)

getDescriptionPos

public int getDescriptionPos()
Get the description backreference.
Returns:
the index, or -1 for none

setDescriptionPos

public void setDescriptionPos(int i)
Set the description backreference.
Parameters:
d - the new index (-1 to disable)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.