Skip to content

Commit

Permalink
add MIT license and add author
Browse files Browse the repository at this point in the history
  • Loading branch information
Haehnchen committed Nov 30, 2014
1 parent 7283eaa commit f669fb9
Show file tree
Hide file tree
Showing 44 changed files with 147 additions and 347 deletions.
358 changes: 19 additions & 339 deletions LICENSE

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/de/espend/idea/php/annotation/AnnotationStubIndex.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@

import java.util.Map;


/**
* @author Daniel Espendiller <[email protected]>
*/
public class AnnotationStubIndex extends FileBasedIndexExtension<String, Void> {
public static final ID<String, Void> KEY = ID.create("espend.php.annotation.classes");
private final KeyDescriptor<String> myKeyDescriptor = new EnumeratorStringDescriptor();
Expand Down
3 changes: 3 additions & 0 deletions src/de/espend/idea/php/annotation/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
import com.intellij.util.xmlb.XmlSerializerUtil;
import org.jetbrains.annotations.Nullable;

/**
* @author Daniel Espendiller <[email protected]>
*/
@State(
name = "EspendPhpAnnotationSetting",
storages = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
import de.espend.idea.php.annotation.util.AnnotationUtil;
import org.jetbrains.annotations.NotNull;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class AnnotationDocTagAnnotator implements Annotator {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@

import java.util.Collection;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class AnnotationImportAnnotator implements PhpAnnotationDocTagAnnotator {
@Override
public void annotate(PhpAnnotationDocTagAnnotatorParameter parameter) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
import com.jetbrains.php.lang.psi.elements.impl.PhpPsiElementImpl;
import org.jetbrains.annotations.NotNull;


/**
* @author Daniel Espendiller <[email protected]>
*/
public class PhpAnnotationCompletionConfidence extends CompletionConfidence {
@NotNull
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;


/**
* @author Daniel Espendiller <[email protected]>
*/
public class PhpAnnotationTypeCompletionProvider implements PhpAnnotationCompletionProvider {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
import de.espend.idea.php.annotation.dict.AnnotationPropertyEnum;
import org.jetbrains.annotations.NotNull;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class AnnotationPropertyInsertHandler implements InsertHandler<LookupElement> {

private static final AnnotationPropertyInsertHandler instance = new AnnotationPropertyInsertHandler();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import com.jetbrains.php.completion.insert.PhpReferenceInsertHandler;
import org.jetbrains.annotations.NotNull;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class AnnotationTagInsertHandler implements InsertHandler<LookupElement> {

private static final AnnotationTagInsertHandler instance = new AnnotationTagInsertHandler();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
import de.espend.idea.php.annotation.dict.AnnotationProperty;
import org.jetbrains.annotations.NotNull;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class PhpAnnotationPropertyLookupElement extends LookupElement {

private AnnotationProperty annotationProperty;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class PhpClassAnnotationLookupElement extends LookupElement {

final private PhpClass phpClass;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package de.espend.idea.php.annotation.dict;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class AnnotationProperty {

private String propertyName;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package de.espend.idea.php.annotation.dict;

/**
* @author Daniel Espendiller <[email protected]>
*/
public enum AnnotationPropertyEnum {
ARRAY, STRING, INTEGER, BOOLEAN
}
3 changes: 3 additions & 0 deletions src/de/espend/idea/php/annotation/dict/AnnotationTarget.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package de.espend.idea.php.annotation.dict;

/**
* @author Daniel Espendiller <[email protected]>
*/
public enum AnnotationTarget {
CLASS, PROPERTY, ALL, ANNOTATION, METHOD, UNKNOWN, UNDEFINED
}
3 changes: 3 additions & 0 deletions src/de/espend/idea/php/annotation/dict/PhpAnnotation.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
import java.util.Arrays;
import java.util.List;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class PhpAnnotation {

private PhpClass phpClass;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

import java.util.Map;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class PhpDocCommentAnnotation {

final private Map<String, PhpDocTagAnnotation> annotationReferences;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class PhpDocTagAnnotation {

final private PhpClass phpClass;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
import org.apache.commons.lang.StringUtils;

/**
/**
* "Column(name="field_data2", type="integer")"
* private $FieldData2;
*
* @author Daniel Espendiller <[email protected]>
*/
public class ColumnNameCompletionProvider implements PhpAnnotationCompletionProvider {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

import java.util.Arrays;


/**
* @author Daniel Espendiller <[email protected]>
*/
public class DoctrineAnnotationStaticCompletionProvider implements PhpAnnotationCompletionProvider {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
import de.espend.idea.php.annotation.util.PhpElementsUtil;
import org.jetbrains.annotations.Nullable;


/**
* @author Daniel Espendiller <[email protected]>
*/
public class DoctrineAnnotationFieldProvider implements PhpAnnotationReferenceProvider {

@Nullable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
import de.espend.idea.php.annotation.doctrine.reference.references.DoctrineRepositoryReference;
import org.jetbrains.annotations.Nullable;


/**
* @author Daniel Espendiller <[email protected]>
*/
public class DoctrineAnnotationTypeProvider implements PhpAnnotationReferenceProvider {

@Nullable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
import java.util.ArrayList;
import java.util.List;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class DoctrinePhpClassFieldReference extends PsiPolyVariantReferenceBase<PsiElement> {

final PhpClass phpClass;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
import java.util.ArrayList;
import java.util.List;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class DoctrineRepositoryReference extends PsiPolyVariantReferenceBase<PsiElement> {

final private String content;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package de.espend.idea.php.annotation.doctrine.util;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class DoctrineUtil {

final public static String[] DOCTRINE_RELATION_FIELDS = new String[] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import de.espend.idea.php.annotation.extension.parameter.AnnotationCompletionProviderParameter;
import de.espend.idea.php.annotation.extension.parameter.AnnotationPropertyParameter;

/**
* @author Daniel Espendiller <[email protected]>
*/
public interface PhpAnnotationCompletionProvider {
public void getPropertyValueCompletions(AnnotationPropertyParameter annotationPropertyParameter, AnnotationCompletionProviderParameter completionParameter);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

import de.espend.idea.php.annotation.extension.parameter.PhpAnnotationDocTagAnnotatorParameter;

/**
* @author Daniel Espendiller <[email protected]>
*/
public interface PhpAnnotationDocTagAnnotator {
public void annotate(PhpAnnotationDocTagAnnotatorParameter docTagAnnotationAnnotatorParameter);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

import de.espend.idea.php.annotation.extension.parameter.AnnotationDocTagGotoHandlerParameter;

/**
* @author Daniel Espendiller <[email protected]>
*/
public interface PhpAnnotationDocTagGotoHandler {
public void getGotoDeclarationTargets(AnnotationDocTagGotoHandlerParameter parameter);
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
import de.espend.idea.php.annotation.extension.parameter.PhpAnnotationReferenceProviderParameter;
import org.jetbrains.annotations.Nullable;

/**
* @author Daniel Espendiller <[email protected]>
*/
public interface PhpAnnotationReferenceProvider {
@Nullable
public PsiReference[] getPropertyReferences(AnnotationPropertyParameter annotationPropertyParameter, PhpAnnotationReferenceProviderParameter referencesByElementParameter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
import com.intellij.util.ProcessingContext;
import org.jetbrains.annotations.NotNull;


/**
* @author Daniel Espendiller <[email protected]>
*/
public class AnnotationCompletionProviderParameter {

private CompletionParameters parameters;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
import java.util.Collection;
import java.util.List;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class AnnotationDocTagGotoHandlerParameter {

final private PhpDocTag phpDocTag;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class AnnotationPropertyParameter {

final private PsiElement element;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class PhpAnnotationDocTagAnnotatorParameter {

private final PhpDocTag phpDocTag;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
import com.intellij.util.ProcessingContext;
import org.jetbrains.annotations.NotNull;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class PhpAnnotationReferenceProviderParameter {

private PsiElement psiElement;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

import java.util.Collection;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class AnnotationMissingUseInspection extends LocalInspectionTool {

@NotNull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
import java.util.ArrayList;
import java.util.List;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class AnnotationGoToDeclarationHandler implements GotoDeclarationHandler {

@Nullable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
import com.jetbrains.php.lang.documentation.phpdoc.psi.PhpDocPsiElement;
import com.jetbrains.php.lang.psi.elements.StringLiteralExpression;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class AnnotationPattern {


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
import de.espend.idea.php.annotation.reference.references.PhpClassReference;
import org.jetbrains.annotations.Nullable;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class AnnotationClassProvider implements PhpAnnotationReferenceProvider {

@Nullable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
import java.util.ArrayList;
import java.util.Arrays;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class AnnotationPropertyValueReferenceContributor extends PsiReferenceContributor {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
import de.espend.idea.php.annotation.util.PluginUtil;
import org.jetbrains.annotations.NotNull;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class DocTagNameAnnotationReferenceContributor extends PsiReferenceContributor {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import de.espend.idea.php.annotation.util.PhpElementsUtil;
import org.jetbrains.annotations.NotNull;

/**
* @author Daniel Espendiller <[email protected]>
*/
public class PhpClassReference extends PsiPolyVariantReferenceBase<PsiElement> {

final private String content;
Expand Down
Loading

0 comments on commit f669fb9

Please sign in to comment.