public class ImportDeclaration extends Object implements Externalizable
Constructor and Description |
---|
ImportDeclaration()
Creates an empty import declaration
|
ImportDeclaration(String target)
Creates an import declaration for the given target.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getTarget() |
int |
hashCode() |
boolean |
matches(Class<?> clazz)
Returns true if this ImportDeclaration correctly matches to
the given clazz
|
void |
readExternal(ObjectInput in) |
void |
setTarget(String target) |
void |
writeExternal(ObjectOutput out) |
public ImportDeclaration()
public ImportDeclaration(String target)
target
- public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public String getTarget()
public void setTarget(String target)
public boolean matches(Class<?> clazz)
name
- Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.